[FFmpeg-devel] Copying mp3 to FLV container Broken Since Haloween (SVN 10891)

Michael Niedermayer michaelni
Wed Dec 12 13:01:10 CET 2007


On Wed, Dec 12, 2007 at 09:21:53AM +0100, Stefano Sabatini wrote:
> On date Tuesday 2007-12-11 12:12:59 -0800, Scott Manley encoded:
> > Ok so I've traced this down to a check in on Haloween, it used to be 
> > possible to copy mp3 audio into an flv wrapper without transcoding, but 
> > this appears to have broken with SVN 10891
> > 
> > So I have a clean mp3 file - no wierd bitrates, id3 tags or wierd vbr 
> > stuff in frames, just standard mp3 data, and I can pack it into a flash 
> > video container using this command line, there's a 'non monotone 
> > timestamp' warning, but that happens for any mp3 I throw at it, and the 
> > file still plays without a glitch in flash.
> > 
> > $ ffmpeg -i test.mp3 -acodec copy test.flv
> > FFmpeg version SVN-r10890, Copyright (c) 2000-2007 Fabrice Bellard, et al.
> >   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 
> > --mandir=/usr/share/man --incdir=/usr/include/ffmpeg 
> > --extra-cflags=-fPIC --enable-libmp3lame --enable-libfaad 
> > --enable-libx264 --enable-libxvid --enable-libfaac --enable-libgsm 
> > --enable-liba52 --enable-liba52bin --enable-libvorbis --enable-libtheora 
> > --enable-pp --enable-shared --enable-pthreads --enable-gpl 
> > --enable-libamr-wb --enable-libamr-nb --enable-qcelp --enable-swscaler 
> > --enable-libogg --disable-strip
> >   libavutil version: 49.5.0
> >   libavcodec version: 51.47.2
> >   libavformat version: 51.17.0
> >   built on Dec 11 2007 11:50:50, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
> > Input #0, mp3, from 'test.mp3':
> >   Duration: 00:01:13.9, start: 0.000000, bitrate: 128 kb/s
> >     Stream #0.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
> > File 'test.flv' already exists. Overwrite ? [y/N] y
> > Output #0, flv, to 'test.flv':
> >     Stream #0.0: Audio: libmp3lame, 44100 Hz, stereo, 128 kb/s
> > Stream mapping:
> >   Stream #0.0 -> #0.0
> > Press [q] to stop encoding
> > error, non monotone timestamps 13 >= 0
> > size=    1199kB time=73.9 bitrate= 132.9kbits/s
> > video:0kB audio:1156kB global headers:0kB muxing overhead 3.805984%
> > 
> > But I update to 10891 and this starts failing
> > 
> > $ ffmpeg -i test.mp3 -acodec copy test.flv
> > FFmpeg version SVN-r10891, Copyright (c) 2000-2007 Fabrice Bellard, et al.
> >   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 
> > --mandir=/usr/share/man --incdir=/usr/include/ffmpeg 
> > --extra-cflags=-fPIC --enable-libmp3lame --enable-libfaad 
> > --enable-libx264 --enable-libxvid --enable-libfaac --enable-libgsm 
> > --enable-liba52 --enable-liba52bin --enable-libvorbis --enable-libtheora 
> > --enable-pp --enable-shared --enable-pthreads --enable-gpl 
> > --enable-libamr-wb --enable-libamr-nb --enable-qcelp --enable-swscaler 
> > --enable-libogg --disable-strip
> >   libavutil version: 49.5.0
> >   libavcodec version: 51.47.2
> >   libavformat version: 51.17.0
> >   built on Dec 11 2007 11:59:39, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
> > Input #0, mp3, from 'test.mp3':
> >   Duration: 00:01:13.9, start: 0.000000, bitrate: 128 kb/s
> >     Stream #0.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
> > File 'test.flv' already exists. Overwrite ? [y/N] y
> > Output #0, flv, to 'test.flv':
> >     Stream #0.0: Audio: libmp3lame, 44100 Hz, stereo, 128 kb/s
> > Stream mapping:
> >   Stream #0.0 -> #0.0
> > Press [q] to stop encoding
> > error, non monotone timestamps 13 >= 0
> > av_interleaved_write_frame(): Error while opening file
[...]
> A gdb dive into av_interleaved_write_frame should help to solve the
> problem.

no it will just tell you what the error message already did that
the timestamps feeded into av_interleaved_write_frame() are invalid

if the original author wants to debug this
find out why the timestamps feeded from ffmpeg.c into
av_interleaved_write_frame() are non monotone because they shouldnt be

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071212/6d830e83/attachment.pgp>



More information about the ffmpeg-devel mailing list