ffmpeg -i left.mp4 -i right.mp4 -filter_complex "[0:v]pad=iw*2:ih[bg];[bg][1:v]overlay=w" output.mp4

Category: Media & Conversion

ffmpeg -i left.mp4 -i right.mp4 -filter_complex "[0:v]pad=iw*2:ih[bg];[bg][1:v]overlay=w" output.mp4

Join two videos side by side

Joins left.mp4 and right.mp4 into one video showing both side by side. The filter graph pads the first input to double width, then overlays the second at x=w, the middle. Both inputs should share height, frame rate, and pixel format.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.