Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.