[FFmpeg-user] Getting SWF frame count

Hans Guth hguth at listingsmagic.com
Thu Dec 8 21:18:45 CET 2011


Assuming you mean show outputs.  Again as reminder - trying to determine 
total number of frames for an swf movie.  Upon building - here is 
dumpFFmpeg version SVN-r18218, Copyright (c) 2000-2009 Fabrice Bellard, 
et al.

   configuration: --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-libx264 --enable-gpl --enable-pthreads --enable-libfaac --enable-shared
   libavutil     50. 2. 0 / 50. 2. 0
   libavcodec    52.22. 3 / 52.22. 3
   libavformat   52.32. 0 / 52.32. 0
   libavdevice   52. 1. 0 / 52. 1. 0
   libswscale     0. 7. 1 /  0. 7. 1
   built on Mar 29 2009 13:35:57, gcc: 3.4.6 20060404 (Red Hat 3.4.6-10)

Seems stream 0 codec frame rate differs from container frame rate: 48.00 (48/1) ->  24.00 (24/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/listingsmagic/public_html/photos/41/7993/53.mp4':
   Duration: 00:00:16.25, start: 0.000000, bitrate: 866 kb/s
     Stream #0.0(eng): Video: h264, yuv420p, 640x360 [PAR 1:1 DAR 16:9], 24 tbr, 24 tbn, 48 tbc
     Stream #0.1(und): Audio: aac, 44100 Hz, mono, s16
Output #0, swf, to '/home/listingsmagic/public_html/photos/41/7993/out.swf':
     Stream #0.0(eng): Video: flv, yuv420p, 640x360 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 24 tbc
     Stream #0.1(und): Audio: libmp3lame, 44100 Hz, mono, s16, 64 kb/s
Stream mapping:
   Stream #0.0 ->  #0.0
   Stream #0.1 ->  #0.1
Press [q] to stop encoding
frame=   24 fps=  0 q=0.0 size=     278kB time=0.89 bitrate=2563.4kbits/s
frame=   47 fps= 46 q=0.0 size=     429kB time=1.36 bitrate=2587.4kbits/s
frame=   70 fps= 45 q=0.0 size=     766kB time=2.32 bitrate=2699.1kbits/s
frame=   92 fps= 45 q=0.0 size=    1093kB time=3.29 bitrate=2719.4kbits/s
frame=  116 fps= 45 q=0.0 size=    1424kB time=4.28 bitrate=2722.9kbits/s
frame=  139 fps= 45 q=0.0 size=    1725kB time=5.25 bitrate=2690.7kbits/s
frame=  162 fps= 45 q=0.0 size=    2059kB time=6.22 bitrate=2713.2kbits/s
frame=  185 fps= 45 q=0.0 size=    2373kB time=7.21 bitrate=2696.8kbits/s
frame=  208 fps= 45 q=0.0 size=    2693kB time=8.18 bitrate=2698.3kbits/s
frame=  231 fps= 45 q=0.0 size=    3016kB time=9.14 bitrate=2702.0kbits/s
frame=  254 fps= 45 q=0.0 size=    3354kB time=10.14 bitrate=2710.8kbits/s
frame=  276 fps= 45 q=0.0 size=    3690kB time=11.10 bitrate=2723.0kbits/s
frame=  299 fps= 45 q=0.0 size=    4022kB time=12.07 bitrate=2729.8kbits/s
frame=  320 fps= 45 q=0.0 size=    4363kB time=13.06 bitrate=2736.6kbits/s
frame=  340 fps= 44 q=0.0 size=    4799kB time=14.03 bitrate=2802.3kbits/s
frame=  362 fps= 44 q=0.0 size=    4963kB time=14.52 bitrate=2799.1kbits/s
frame=  385 fps= 44 q=0.0 size=    5317kB time=15.49 bitrate=2811.7kbits/s
frame=  390 fps= 44 q=0.0 Lsize=    5571kB time=16.17 bitrate=2822.5kbits/s

Just getting information after build here is dump

FFmpeg version SVN-r18218, Copyright (c) 2000-2009 Fabrice Bellard, et al.
   configuration: --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-libx264 --enable-gpl --enable-pthreads --enable-libfaac --enable-shared
   libavutil     50. 2. 0 / 50. 2. 0
   libavcodec    52.22. 3 / 52.22. 3
   libavformat   52.32. 0 / 52.32. 0
   libavdevice   52. 1. 0 / 52. 1. 0
   libswscale     0. 7. 1 /  0. 7. 1
   built on Mar 29 2009 13:35:57, gcc: 3.4.6 20060404 (Red Hat 3.4.6-10)
Input #0, swf, from '53.swf':
   Duration: 00:11:53.12, start: 0.000000, bitrate: 63 kb/s
     Stream #0.0: Audio: mp3, 44100 Hz, mono, s16, 64 kb/s
     Stream #0.1: Video: flv, yuv420p, 640x360, 24 tbr, 24 tbn, 24 tbc
At least one output file must be specified

video:5434kB audio:126kB global headers:0kB muxing overhead 0.199330%



On 12/8/2011 12:58 PM, Carl Eugen Hoyos wrote:
> Hans Guth<hguth<at>  listingsmagic.com>  writes:
>
>> Also ffmpeg -i test.mp4 -sameq test.swf
>>
>> This shows the frames being built but I don't see where it outputs the
>> total?
> Complete, uncut console output missing.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

-- 
Hans Guth
President - ListingsMagic
866-831-8639 ext. 704
<http://www.listingsmagic.com>


More information about the ffmpeg-user mailing list