Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a command line tool to join 2 video files, however I want the videos joined split screen frame by frame instead of one after another.

Any ideas? Seems this is not possible with ffmpeg.

share|improve this question
up vote 1 down vote accepted

With a recent version of ffmpeg (assuming both videos are the same resolution):

ffmpeg -i input1.mp4 -i input2.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 -preset veryfast output.mp4

This essentially doubles the size of input1.mp4 by padding the right side with black the same size as the original video, and then places input2.mp4 over the top of that black area with the overlay filter.

share|improve this answer

What is the source format of your video? If it is AVCHD files in .mts or .m2ts, you can use tsmuxer command line version to join clips. You can get .ts or .m2ts as final format.

I am not sure what you mean by saying you want the videos joined split screen frame by frame.

share|improve this answer
by split screen I mean the frames from each video joined side by side – hoju Oct 26 '12 at 3:04

this can be done with the SOC version of libavfilter and some ingenuity

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .