Skip to content

Instantly share code, notes, and snippets.

@deomorxsy
Created January 13, 2020 00:58
Show Gist options
  • Save deomorxsy/e00976affc2783c754a7f2d499920585 to your computer and use it in GitHub Desktop.
Save deomorxsy/e00976affc2783c754a7f2d499920585 to your computer and use it in GitHub Desktop.
splitting 2videos on the CLI with ffmpeg.
ffmpeg -i video1.mp4 -i video2.mp4 \
-filter_complex \
"[0:v]pad=iw*2:ih[int]; \
[int][1:v]overlay=W/2:0[vid]" \
-map "[vid]" \
-c:v libx264 -crf 23 \
video3.mp4
@deomorxsy
Copy link
Author

deomorxsy commented Jan 13, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment