Skip to content

Instantly share code, notes, and snippets.

@andrey-utkin
Created January 25, 2016 11:25
Show Gist options
  • Save andrey-utkin/d1d204884d49b8f1a9c3 to your computer and use it in GitHub Desktop.
Save andrey-utkin/d1d204884d49b8f1a9c3 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
rm 1.nut 2.nut || true
mkfifo 1.nut
ffmpeg -loglevel debug -f lavfi -i testsrc -t 10 -y 1.nut 2>1.log &
mkfifo 2.nut
( sleep 10; ffmpeg -loglevel debug -f lavfi -i testsrc -t 10 -y 2.nut 2>2.log ) &
echo "ffconcat version 1.0
file 1.nut
file 2.nut
" > clips.concat
ffmpeg -loglevel debug -f concat -i clips.concat -c copy -y concat.nut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment