Skip to content

Instantly share code, notes, and snippets.

@jessetan
Created December 29, 2015 13:25
Show Gist options
  • Save jessetan/5aa5e87da4185ab4365e to your computer and use it in GitHub Desktop.
Save jessetan/5aa5e87da4185ab4365e to your computer and use it in GitHub Desktop.
Place two videos side by side in new video using ffmpeg
#!/bin/bash
ffmpeg -i test1.mp4 -vf "[in] scale=iw/2:ih/2, pad=2*iw:ih [left]; movie=test2.mp4, scale=iw/2:ih/2 [right]; [left][right] overlay=main_w/2:0 [out]" Output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment