Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

3 Answers 3

up vote 0 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
add comment

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.