[FFmpeg-user] Problem with mp4 and concat filter

Ingo Brückl ib at wupperonline.de
Tue Feb 9 13:02:57 CET 2016

Carl Eugen Hoyos wrote on Tue, 9 Feb 2016 06:59:13 +0000 (UTC):

> Ingo Brückl <ib <at> wupperonline.de> writes:

>> So how can I concatenate both files? ffmpeg is v2.8.6.

> But only current git head is supported here;-(
> Please provide the complete, uncut console output of
> both commands.

Carl Eugen,

I may have formally failed, but you should know me better.

Demanded information for ffmpeg head is at www.datafilehost.com/d/98c2f0aa
(too big for mailing list). I tried with different and shorter files this
time - same result. (The first command is to cut and to adjust video/audio
to the 1.mp4 file.)

In the meantime I've figured out that splitting up everything into video and
audio and rejoining it did the trick, but I doubt that is how it is supposed
to work:

ffmpeg -i 1.mp4 -vn -c:a copy a1.mp3
ffmpeg -i 1.mp4 -an -c:v copy v1.mp4

ffmpeg -i 2.mp4 -vn -c:a copy a2.mp3
ffmpeg -i 2.mp4 -an -c:v copy v2.mp4

ffmpeg -f concat -i <(printf "file '$PWD/%s'\n" ./a{1,2}.mp3) -c copy a12.mp3
ffmpeg -f concat -i <(printf "file '$PWD/%s'\n" ./v{1,2}.mp4) -c copy v12.mp4

ffmpeg -i a12.mp3 -i v12.mp4 -codec copy new.mp4

Am I missing an option for direct concatenation of 1.mp4 and 2.mp4, or is it
a bug?


More information about the ffmpeg-user mailing list