[Ffmpeg-devel] [BUG] Incorrect duration and bitrate reported for input movie

Todd Kirby ffmpeg.php
Fri Jun 17 08:19:13 CEST 2005


Below is two runs of the same options on the same movie file using
different cvs versions of ffmpeg. The first was done with cvs dated
04/29/05 and the second is the current cvs. Notice that the stats for
the input movie are way off with the latest cvs. Specifically duration
shows as 9.2 seconds for 4/30/05 and 1:43 for the current and the
bitrate is 70kb/s vs 6kb/s. In both cases the older cvs is correct. I
can send the movie I used if you want.  I've had similar results on
some other .avi and .mov files I've tested.

This seems like it might be related to the native time base stuff that
was checked in on 5/30.

http://www1.mplayerhq.hu/cgi-bin/cvsweb.cgi/ffmpeg/libavformat/avformat.h.diff?r1=1.118&r2=1.119&cvsroot=FFMpeg


-Todd


CVS 04/29/05

./ffmpeg -an -vstats -i vid424fb1b9d63f2.3gp out.avi
ffmpeg version 0.4.9-pre1, build 4753, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:
  built on Jun 16 2005 22:36:47, gcc: 3.3.4 20040623 (Gentoo Linux
3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
Input #0, mov,mp4,m4a,3gp,3g2, from
'../php-5.0.3/ext/ffmpeg-php/tests/test_media/vid424fb1b9d63f2.3gp':
  Duration: 00:00:09.2, start: 0.000000, bitrate: 70 kb/s
  Stream #0.0: Audio: 0x726d6173, 8000 Hz, mono
  Stream #0.1: Video: mpeg4, yuv420p, 176x144, 10.02 fps
File 'out.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'out.avi':
  Stream #0.0: Video: mpeg4, yuv420p, 176x144, 10.02 fps, q=2-31, 200 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
frame=   93 q=0.0 Lsize=     228kB time=9.3 bitrate= 201.6kbits/s
video:222kB audio:0kB global headers:0kB muxing overhead 3.044860%


CURRENT CVS

./ffmpeg -an -vstats -i vid424fb1b9d63f2.3gp out.avi
ffmpeg version 0.4.9-pre1, build 4756, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-shared --prefix=/usr --enable-mp3lame --disable-strip
  built on Jun 16 2005 23:10:45, gcc: 3.3.4 20040623 (Gentoo Linux
3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
Input #0, mov,mp4,m4a,3gp,3g2, from
'../php-5.0.3/ext/ffmpeg-php/tests/test_media/vid424fb1b9d63f2.3gp':
  Duration: 00:01:43.0, start: 0.000000, bitrate: 6 kb/s
  Stream #0.0: Audio: 0x726d6173, 8000 Hz, mono
  Stream #0.1: Video: mpeg4, yuv420p, 176x144, 10.02 fps
File 'out.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'out.avi':
  Stream #0.0: Video: mpeg4, yuv420p, 176x144, 10.02 fps, q=2-31, 200 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
frame=   93 q=0.0 Lsize=     228kB time=9.3 bitrate= 201.6kbits/s
video:222kB audio:0kB global headers:0kB muxing overhead 3.044860%





More information about the ffmpeg-devel mailing list