[FFmpeg-user] Joining mp4 files did not yield the expected file

Brice brice at secretlab.net
Tue Dec 29 21:17:29 CET 2015


I think you're probably looking for concatenation

Something like this:

ffmpeg -i "concat:input1.mpg|input2.mpg|input3.mpg" -c copy output.mpg



On Tue, Dec 29, 2015 at 11:44 AM, jd1008 <jd1008 at gmail.com> wrote:

> Command:
>
> ffmpeg \
> -i Discourse_1_Part_1.mp4 \
> -i Discourse_1_Part_2.mp4 \
> -i Discourse_2_Part_1.mp4 \
> -i Discourse_2_Part_2.mp4 \
> -i Discourse_3_Part_1.mp4 \
> -i Discourse_3_Part_2.mp4 \
> -strict -2 -y All_Discourses.mp4
>
> Yielded a result much smaller than expected (in size) and
> when played, does not contain the contents of all the parts.
>
> $ ls -la
> -rw-r--r--. 1 jd jd 122410407 Dec 29 11:25 All_Discourses.mp4 <<<<<--- The
> output file
> -rw-r--r--. 1 jd jd 179667977 Dec  1 10:20 _Discourse_1_Part_1.mp4
> -rw-r--r--. 1 jd jd 269749812 Dec  6 14:38 _Discourse_1_Part_2.mp4
> -rw-r--r--. 1 jd jd  66092606 Dec 12 18:03 _Discourse_2_Part_1.mp4
> -rw-r--r--. 1 jd jd 113322556 Dec 12 18:17 _Discourse_2_Part_2.mp4
> -rw-r--r--. 1 jd jd  47993972 Dec 12 18:34 _Discourse_3_Part_1.mp4
> -rw-r--r--. 1 jd jd 157472297 Dec 12 18:25 _Discourse_3_Part_2.mp4
>
> What am I doing wrong?
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list