Skip to content

Instantly share code, notes, and snippets.

@xarimanx
Created December 17, 2015 08:57
Show Gist options
  • Save xarimanx/d882ef1753fbe0277849 to your computer and use it in GitHub Desktop.
Save xarimanx/d882ef1753fbe0277849 to your computer and use it in GitHub Desktop.
ffmpeg video join
mkfifo intermediate1.mpg
mkfifo intermediate2.mpg
ffmpeg -i vv1.mp4 -qscale:v 1 -y intermediate1.mpg < /dev/null &
ffmpeg -i vv2.mp4 -qscale:v 1 -y intermediate2.mpg < /dev/null &
cat intermediate1.mpg intermediate2.mpg |\
ffmpeg -f mpeg -i - -c:v mpeg4 -acodec libmp3lame output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment