[FFmpeg-user] How can I concat a video and audio to a longvideo?

RDP gliese849b at gmail.com
Sun May 25 20:01:22 CEST 2014


On 25 May 2014 13:59, v <dferererer at qq.com> wrote:
> video play,when is completes,the image will pause at video's end,the the audio plays,till it ends,that all.I can concat a video.mpg with a audio in such way,but my video is .mp4,I don't trouble with mpg.
>
>  Any help is millon appreciated!

I'm at the experimentation stage with ffmpeg as well, so.. ;o)

In the interests of same, I tried the following command,

ffmpeg -i video_file1.mp4 -i audio_file.m4a -filter_complex '[0:0]
[0:1] [0:0]  concat=n=2:v=1:a=1' -strict -2 combined.mp4

During the conversion I received,

[output stream 0:0 @ 0x1b27dc0] 100 buffers queued in output stream
0:0, something may be wrong.

in the console output, just after completion of video section, though
the conversion itself appeared to complete successfully.

While the two files were indeed concatenated in the combined file, the
video section repeated itself while the appended audio file was being
played!  Is this what happened when you tried it?

The version of mmpeg used was,

ffmpeg version N-63064-gb372f67 Copyright (c) 2000-2014 the FFmpeg
developers  built on May  9 2014 22:34:36 with gcc 4.9.0 (GCC)
20140507 (prerelease)


Chris.


More information about the ffmpeg-user mailing list