[Ffmpeg-devel] [BUG] Quicktime framerate

Founadi Kamel kfou
Mon Jan 9 23:44:32 CET 2006


While transcoding some quicktime files with the last CVS version of 
ffmpeg i've found tha the framerate is very high (600fps!),
and producing broken mpgs or with pixelated avi file.

The apple quicktime player give me the following information about my 
test file (test01.mov):
    Duration: 00:07:03.5
    FPS: 24.99
    Video Codec: SVQ3  
    Audio Codec: MP3

After some investigation it's seems that the modification made between 
the version 1.85 and the version 1.86
of the file mov.c in libavformat produced the problem.
http://www1.mplayerhq.hu/cgi-bin/cvsweb.cgi/ffmpeg/libavformat/mov.c.diff?r1=1.85&r2=1.86&cvsroot=FFMpeg


Here is the raw output of the ffmpeg cvs version of the 24 june 2005:
ffmpeg-24-6# ./ffmpeg -i  test01.mov -y -an -t 10 -r 25  out-2406.avi
ffmpeg version 0.4.9-pre1, build 4756, Copyright (c) 2000-2004 Fabrice 
Bellard
  configuration:  --prefix=/tmp --enable-mp3lame --disable-network 
--disable-ffserver --disable-debug --enable-gpl --disable-ffplay
  built on Jan  9 2006 04:08:54, gcc: 3.3.5 (Debian 1:3.3.5-13)
Input #0, mov,mp4,m4a,3gp,3g2, from 'test01.mov':
  Duration: 01:18:22.0, start: 0.000000, bitrate: 65 kb/s
  Stream #0.0: Video: svq3, yuv420p, 320x240, 24.99 fps
  Stream #0.1: Audio: mp2, 22050 Hz, stereo
Output #0, avi, to 'out-2406.avi':
  Stream #0.0: Video: mpeg4, yuv420p, 320x240, 25.00 fps, q=2-31, 200 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
[mpeg4 @ 0x83795d8]removing common factors from framerate
Press [q] to stop encoding
frame=  251 q=0.0 Lsize=     513kB time=10.0 bitrate= 418.5kbits/s
video:502kB audio:0kB global headers:0kB muxing overhead 2.092421%

Here is the raw output of the ffmpeg current cvs version:
ffmpeg-cvs# ./ffmpeg -i  test01.mov -y -an -t 10 out-cvs.avi
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --prefix=/tmp --enable-mp3lame --disable-network 
--disable-ffserver --disable-debug --enable-gpl --disable-ffplay
  libavcodec version: 51.0.0
  libavformat version: 50.0.0
  built on Jan  9 2006 22:56:23, gcc: 3.3.5 (Debian 1:3.3.5-13)
Input #0, mov,mp4,m4a,3gp,3g2, from 'test01.mov':
  Duration: 00:07:03.1, start: 0.000000, bitrate: 722 kb/s
  Stream #0.0(eng), 600.00 fps(r): Video: svq3, yuv420p, 320x240
  Stream #0.1(eng): Audio: mp2, 22050 Hz, stereo
Output #0, avi, to 'out-cvs.avi':
  Stream #0.0, 600.00 fps(c): Video: mpeg4, yuv420p, 320x240, q=2-31, 
200 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 6001 q=24.8 Lsize=    2368kB time=10.0 bitrate=1939.7kbits/s
video:15kB audio:0kB global headers:0kB muxing overhead 15250.449424%


You can find the file test01.mov at the the following url:  
http://kfou.free.fr/ffmpeg/test01.mov.
I've generated the following to show the problems:  (all avalaible at 
http://kfou.free.fr/ffmpeg/)

out-2406-25fps.avi: ffmpeg -i  test01.mov -y -an -t 10 -r 25  out-2406.avi
out-2406.jpg: ffmpeg -i out-2406-25fps.avi -f mjpeg -y -r 1 -t 1 -ss 1 
out-2406.jpg
out-2406.mpg: ffmpeg -i  test01.mov -y -an -t 10 out-2406.mpg
out-cvs-25fps.avi: ffmpeg -i  test01.mov -y -an -t 10 -t 25 
out-cvs-25fps.avi
out-cvs-25fps.mpg: ffmpeg -i  test01.mov -y -an -t 10 -t 25 
out-cvs-25fps.mpg
out-cvs.avi: ffmpeg -i  test01.mov -y -an -t 10 out-cvs.avi
out-cvs.jpg: ffmpeg -i out-cvs.avi -f mjpeg -y -r 1 -t 1 -ss 1 out-cvs.jpg
out-cvs.mpg: ffmpeg -i  test01.mov -y -an -t 10 out-cvs.mpg

Hope it can be fixed soon.

---
Kamel





More information about the ffmpeg-devel mailing list