[FFmpeg-devel] fix for multiplexing avi with mp3

Robert Bacs robert.bacs
Fri Oct 24 19:07:34 CEST 2008


I'm using ffmpeg to multiplex an avi file (only video stream) and an mp3
into an avi file, they have the same length, but after some time I've got
the following error:

[NULL @ 02512E70]error, non monotone timestamps 57600 >= 57600
av_interleaved_write_frame(): Error while opening file

The source avi file is encoded with ffmpeg and the mp3 is encoded using lame
encoder from the same source file and here is the command line:

ffmpeg.exe -i video.avi -i audio.mp3 -acodec copy -vcodec copy -y out.avi

Also I've made some changes in libavformat/utils.c, see attached patch file.
I'm wondering if someone can confirm that this patch is ok, or suggest
another solution to solve this issue ?

Best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.patch
Type: application/octet-stream
Size: 522 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081024/8e158c4c/attachment.obj>

More information about the ffmpeg-devel mailing list