[Ffmpeg-devel] bug. swf files have wrong number of totalframes

David Colquhoun me
Sun Feb 5 03:41:57 CET 2006


Transcoding from any format to SWF.

The output SWF files always have totalframes=7200.

So if you have a 5 second video, at 12 fps,  it should be 60frames.  And the 
video is in the first 60 frames, but then there's 7200 totalframes in the 
file?

d,


/usr/bin/ffmpeg -i './tests/P1000191.MOV' -f flv -y -padtop 0 -padbottom 
0 -padleft 0 -padright 0 -padcolor 000000 -acodec mp3 -ab 96 -ar 44100 -ac 
1 -s 320x240 -r 12 './new/P1000191.MOV.flv'

FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --extra-cflags=-O2 
 -march=i386 -mcpu=i686 --enable-mp3lame --enable-gpl --disable-ffserver --disable-ffplay
  libavutil version: 49.0.0
  libavcodec version: 51.1.0
  libavformat version: 50.0.0
  built on Feb  4 2006 19:53:11, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2)
Input #0, mov,mp4,m4a,3gp,3g2, from './tests/P1000191.MOV':
  Duration: 00:00:16.5, start: 0.000000, bitrate: 3999 kb/s
  Stream #0.0(eng), 30.00 fps(r): Video: mjpeg, yuvj422p, 320x240
  Stream #0.1(eng): Audio: pcm_u8, 8000 Hz, mono, 64 kb/s
Output #0, flv, to './new/P1000191.MOV.flv':
  Stream #0.0, 12.00 fps(c): Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s
  Stream #0.1: Audio: mp3, 44100 Hz, mono, 96 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[flv @ 0x82d8da8]removing common factors from framerate
Press [q] to stop encoding
frame=   48 q=8.4 size=     229kB time=4.0 bitrate= 468.1kbits/s
frame=   97 q=10.8 size=     408kB time=8.1 bitrate= 413.2kbits/s
frame=  145 q=6.8 size=     562kB time=12.1 bitrate= 380.8kbits/s
frame=  194 q=8.1 size=     714kB time=16.2 bitrate= 362.0kbits/s
frame=  199 q=8.1 Lsize=     727kB time=16.5 bitrate= 360.4kbits/s
video:521kB audio:194kB global headers:0kB muxing overhead 1.821420%





More information about the ffmpeg-devel mailing list