using ffmpeg put 2 videos side by side

Published: 04 March 2020
on channel: A Forum
1,568
9

ffmpeg -i left.mp4 -i right.mp4 -filter_complex hstack output.mp4

just found the command above from a comment here https://unix.stackexchange.com/questi...

I think this could come in handy sometime. I tried to get it working on 2 videos with different sizes and other things, but there was a whole bunch of errors. But if you are using 2 videos with same formats and size it works fine. Even if 1 video is of shorter length than the other. You can see the one on the right is shorter than the one on the left and so it just keeps the last frame while the other video keeps going. I'm not sure what is happening with the sound because both videos have similar background noise.


Watch video using ffmpeg put 2 videos side by side online without registration, duration hours minute second in high quality. This video was added by user A Forum 04 March 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,568 once and liked it 9 people.