[FFmpeg-user] Joining 2 m4v video files

Tom Evans tevans.uk at googlemail.com
Thu Mar 3 10:43:32 CET 2016


On Tue, Mar 1, 2016 at 9:49 PM, jd1008 <jd1008 at gmail.com> wrote:
> no way.
> $ ffmpeg -i 01.m4v -i 02.m4v -strict -2 03.m4v
>
> 2 input files. 01 and 02, and output to 03
>
> I want to join 01 and 02.
>
> Simple, no???
>

join could mean several things:

* you are trying to merge the two files, so you end up with 2 video
streams and 2 audio streams concurrently, with the length of the
output file being the maximum of the length of the two inputs

* you are trying to concatenate the files, so you have 1 video stream
and 1 audio stream, with the length of the output file being the sum
of the length of the two inputs

(as mentioned in the FAQ:
https://ffmpeg.org/faq.html#toc-How-can-I-join-video-files_003f )

I suspect the latter:

https://trac.ffmpeg.org/wiki/Concatenate

Your videos are of different sizes, so that may cause problems (or
maybe not, I don't rightly know).

Cheers

Tom


More information about the ffmpeg-user mailing list