Skip to content

Instantly share code, notes, and snippets.

@andrey-utkin
Created January 25, 2016 16:34
Show Gist options
  • Save andrey-utkin/1900b6098e09806dc1e0 to your computer and use it in GitHub Desktop.
Save andrey-utkin/1900b6098e09806dc1e0 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
rm 1.nut 2.nut || true
mkfifo 1.nut 2.nut
ffmpeg -loglevel debug -f lavfi -i testsrc -vcodec libx264 -t 1 -y 1.nut 2>1.log &
ffmpeg -loglevel debug -f lavfi -i testsrc -vcodec libx264 -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