[FFmpeg-devel] latest ffmpeg broke mp4 -> flv conversion ?

Frank Liu gfrankliu
Mon Nov 12 22:35:47 CET 2007


Hi there,

It seems the codes that were checked in lately has broken the mp4 to
flv conversion.

Here is a test file: http://timepassindia.com/08112007007.mp4

Using ffmpeg from today's svn:

ffmpeg -i 08112007007.mp4 -ar 11025 -f flv -y frank.flv
FFmpeg version SVN-r11004, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib
--mandir=/usr/share/man --incdir=/usr/include/ffmpeg
--enable-libmp3lame --enable-libvorbis --enable-libtheora
--enable-libfaad --enable-libfaac --enable-libgsm --enable-libxvid
--enable-libx264 --enable-liba52 --enable-liba52bin --enable-pp
--enable-shared --enable-pthreads --enable-gpl --enable-libamr-nb
--enable-libamr-wb --disable-strip
  libavutil version: 49.5.0
  libavcodec version: 51.48.0
  libavformat version: 51.19.0
  built on Nov 12 2007 13:12:59, gcc: 4.1.2 20070626 (Red Hat 4.1.2-13)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '08112007007.mp4':
  Duration: 00:00:07.2, start: 0.000000, bitrate: 2504 kb/s
    Stream #0.0(und): Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR
4:3], 30000.00 fps(r)
    Stream #0.1(und): Audio: mpeg4aac, 48000 Hz, stereo
Output #0, flv, to 'frank.flv':
    Stream #0.0(und): Video: flv, yuv420p, 640x480 [PAR 1:1 DAR 4:3],
q=2-31, 200 kb/s, 30000.00 fps(c)
    Stream #0.1(und): Audio: libmp3lame, 11025 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
error, non monotone timestamps 1 >= 1
av_interleaved_write_frame(): Error while opening file

So, no flv file is created (0 byte).

Now, if I use ffmpeg from last month's svn:

FFmpeg version SVN-r10693, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-libmp3lame --enable-libogg
--enable-libvorbis --enable-libfaad --enable-libfaac --enable-gpl
--enable-libamr-nb --enable-libamr-wb
  libavutil version: 49.5.0
  libavcodec version: 51.45.0
  libavformat version: 51.14.0
  built on Oct  9 2007 01:27:02, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '08112007007.mp4':
  Duration: 00:00:07.2, start: 0.000000, bitrate: 2504 kb/s
  Stream #0.0(und): Video: mpeg4, yuv420p, 640x480, 30000.00 fps(r)
  Stream #0.1(und): Audio: mpeg4aac, 48000 Hz, stereo
Output #0, flv, to 'frank.flv':
  Stream #0.0(und): Video: flv, yuv420p, 640x480, q=2-31, 200 kb/s,
30000.00 fps(c)
  Stream #0.1(und): Audio: libmp3lame, 22050 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
error, non monotone timestamps 1 >= 1
(those timestamps error keeps repeating ....)
....
frame=209070 fps=330 q=31.0 Lsize=    1327kB time=7.0 bitrate=1560.2kbits/s
video:227kB audio:57kB global headers:0kB muxing overhead 368.310104%

Any thoughts about those timestamps errors (which exists in both the
latest and old ffmpeg)? and what changes in the svn lately that could
make the latest ffmpeg generates 0 byte flv file?

Thanks!
Frank




More information about the ffmpeg-devel mailing list