Skip to content

Instantly share code, notes, and snippets.

@andrey-utkin
Created January 25, 2016 17:10
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/208b18869e68cc83cc4d to your computer and use it in GitHub Desktop.
Save andrey-utkin/208b18869e68cc83cc4d to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
rm 1.ts || true
ffmpeg -loglevel debug -f lavfi -i testsrc -vcodec libx264 -t 1 -f mpegts -y - >1.ts 2>1.log
echo "ffconcat version 1.0
file 1.ts
file 1.ts
" > 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