Created
January 13, 2020 00:58
-
-
Save deomorxsy/e00976affc2783c754a7f2d499920585 to your computer and use it in GitHub Desktop.
splitting 2videos on the CLI with ffmpeg.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
further reading: