Skip to content

Instantly share code, notes, and snippets.

@WillsonSmith
Created March 21, 2017 14:56
Show Gist options
  • Save WillsonSmith/8ffe69a7107c2fb52ad75f5ddd6fe767 to your computer and use it in GitHub Desktop.
Save WillsonSmith/8ffe69a7107c2fb52ad75f5ddd6fe767 to your computer and use it in GitHub Desktop.
put two videos side by side with ffmpeg
ffmpeg -i input1 -i input2 -filter_complex \
"[0:v]setpts=PTS-STARTPTS, pad=iw*2:ih[bg]; \
[1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w" output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment