Skip to content

Instantly share code, notes, and snippets.

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