Skip to content

Instantly share code, notes, and snippets.

@andrey-utkin
Created January 25, 2016 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrey-utkin/d24f2fa744bd18a2067a to your computer and use it in GitHub Desktop.
Save andrey-utkin/d24f2fa744bd18a2067a to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
rm 1.mkv 2.mkv
ffmpeg -loglevel debug -f lavfi -i testsrc -t 1 -vcodec libx264 -f matroska - >1.mkv
ffmpeg -loglevel debug -f lavfi -i testsrc -t 1 -vcodec libx264 -f matroska - >2.mkv
echo "ffconcat version 1.0
file 1.mkv
file 2.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