[FFmpeg-user] Speed differences, was: The Magic Microsecond

Jan Ehrhardt phpdev at ehrhardt.nl
Sun Jul 8 22:13:34 CEST 2012


Mike F in gmane.comp.video.ffmpeg.user (Sun, 8 Jul 2012 09:34:33 -0700 (PDT)):

>I see 5 fps difference.. ~ 1% slower

Closing in. On Windows 0.10.2, 0.10.4 & 0.11.1 all have more or less the
same speed.

ffmpeg version 0.10.4
  built on Jul  8 2012 21:26:30 with gcc 4.6.2
frame= 6012 fps=376 q=24.4 Lsize=   12813kB time=00:04:00.48
	bitrate= 436.5kbits/s    

ffmpeg version 0.11.1
  built on Jul  8 2012 21:48:15 with gcc 4.6.2
frame= 6012 fps=376 q=24.4 Lsize=   12813kB time=00:04:00.48
	bitrate= 436.5kbits/s    

ffmpeg version 0.11.1.git
  built on Jul  8 2012 20:43:35 with gcc 4.6.2
frame= 6012 fps=311 q=24.4 Lsize=   12813kB time=00:04:00.48
	bitrate= 436.5kbits/s    

376 fps versus 311 fps. The same 20% difference.
Are there any milestones in between 0.11.1 and the trunk, that
I can test?

Jan



ffmpeg -i %input% -vf scale=384:288 -aspect 4:3
	-sws_flags bicubic -vcodec flv -b:v 320k
	-strict -2 -acodec aac -ab 96k -ar 44100 output.flv

ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul  8 2012 21:26:30 with gcc 4.6.2
  configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg @ 0160e980] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD':
  Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s
[buffer @ 01643640] w:352 h:288 pixfmt:yuv420p tb:1/1000000 sar:12/11 sws_param:
[scale @ 016eff80] w:352 h:288 fmt:yuv420p -> w:384 h:288 fmt:yuv420p flags:0x4
Incompatible sample format 's16' for codec 'aac', auto-selecting format 'flt'
Output #0, flv, to 'output.flv':
  Metadata:
    encoder         : Lavf53.32.100
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc
    Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, flt, 96 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> flv)
  Stream #0:1 -> #0:1 (ac3 -> aac)
Press [q] to stop, [?] for help
[mpeg2video @ 0161f220] warning: first frame is no keyframe
    Last message repeated 1 times
frame=  178 fps=  0 q=12.3 size=     568kB time=00:00:06.92 bitrate= 672.5kbits/s    
frame=  375 fps=364 q=8.0 size=    1115kB time=00:00:14.83 bitrate= 615.4kbits/s    
frame=  567 fps=367 q=23.0 size=    1520kB time=00:00:22.50 bitrate= 553.6kbits/s    
frame=  749 fps=364 q=12.6 size=    1921kB time=00:00:29.81 bitrate= 527.9kbits/s    
frame=  930 fps=361 q=23.2 size=    2255kB time=00:00:37.01 bitrate= 499.2kbits/s    
frame= 1111 fps=360 q=26.3 size=    2648kB time=00:00:44.32 bitrate= 489.4kbits/s    
frame= 1282 fps=356 q=29.4 size=    3000kB time=00:00:51.03 bitrate= 481.6kbits/s    
frame= 1462 fps=355 q=8.6 size=    3375kB time=00:00:58.23 bitrate= 474.8kbits/s    
frame= 1658 fps=358 q=10.8 size=    3754kB time=00:01:06.10 bitrate= 465.3kbits/s    
frame= 1853 fps=360 q=24.6 size=    4197kB time=00:01:13.97 bitrate= 464.8kbits/s    
frame= 2054 fps=363 q=10.1 size=    4617kB time=00:01:21.99 bitrate= 461.3kbits/s    
frame= 2263 fps=366 q=10.9 size=    5051kB time=00:01:30.30 bitrate= 458.3kbits/s    
frame= 2471 fps=369 q=11.6 size=    5483kB time=00:01:38.70 bitrate= 455.1kbits/s    
frame= 2671 fps=371 q=31.0 size=    5899kB time=00:01:46.69 bitrate= 453.0kbits/s    
frame= 2877 fps=373 q=14.1 size=    6341kB time=00:01:54.86 bitrate= 452.2kbits/s    
frame= 3071 fps=373 q=9.4 size=    6743kB time=00:02:02.71 bitrate= 450.1kbits/s    
frame= 3247 fps=371 q=21.1 size=    7088kB time=00:02:09.75 bitrate= 447.5kbits/s    
frame= 3430 fps=370 q=10.1 size=    7474kB time=00:02:17.02 bitrate= 446.8kbits/s    
frame= 3628 fps=371 q=11.0 size=    7904kB time=00:02:24.91 bitrate= 446.8kbits/s    
frame= 3836 fps=373 q=12.5 size=    8339kB time=00:02:33.27 bitrate= 445.7kbits/s    
frame= 4040 fps=374 q=25.3 size=    8750kB time=00:02:41.44 bitrate= 444.0kbits/s    
frame= 4224 fps=373 q=11.0 size=    9110kB time=00:02:48.83 bitrate= 442.0kbits/s    
frame= 4411 fps=373 q=16.1 size=    9502kB time=00:02:56.28 bitrate= 441.5kbits/s    
frame= 4586 fps=371 q=9.0 size=    9852kB time=00:03:03.25 bitrate= 440.4kbits/s    
frame= 4789 fps=372 q=12.1 size=   10289kB time=00:03:11.37 bitrate= 440.4kbits/s    
frame= 4991 fps=373 q=12.9 size=   10689kB time=00:03:19.45 bitrate= 439.0kbits/s    
frame= 5189 fps=373 q=10.4 size=   11093kB time=00:03:27.33 bitrate= 438.3kbits/s    
frame= 5395 fps=374 q=13.4 size=   11565kB time=00:03:35.62 bitrate= 439.4kbits/s    
frame= 5597 fps=375 q=16.1 size=   11950kB time=00:03:43.67 bitrate= 437.6kbits/s    
frame= 5803 fps=376 q=11.8 size=   12384kB time=00:03:51.99 bitrate= 437.3kbits/s    
frame= 5995 fps=376 q=12.8 size=   12780kB time=00:03:59.65 bitrate= 436.9kbits/s    
frame= 6012 fps=376 q=24.4 Lsize=   12813kB time=00:04:00.48 bitrate= 436.5kbits/s    

video:9746kB audio:2801kB global headers:0kB muxing overhead 2.121696%



ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul  8 2012 21:48:15 with gcc 4.6.2
  configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame
  libavutil      51. 54.100 / 51. 54.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg @ 0318e860] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD':
  Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s
[buffer @ 03b23f80] w:352 h:288 pixfmt:yuv420p tb:1/90000 sar:12/11 sws_param:flags=2
[buffersink @ 03246a40] No opaque field provided
[scale @ 031cc000] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4
[aformat @ 0325e9e0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat'
[aresample @ 031a3660] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:44100Hz
Output #0, flv, to 'output.flv':
  Metadata:
    encoder         : Lavf54.6.100
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc
    Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, flt, 96 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> flv)
  Stream #0:1 -> #0:1 (ac3 -> aac)
Press [q] to stop, [?] for help
[mpeg2video @ 031a1e20] warning: first frame is no keyframe
frame=  175 fps=0.0 q=12.7 size=     563kB time=00:00:06.75 bitrate= 682.9kbits/s    
frame=  373 fps=362 q=6.0 size=    1113kB time=00:00:14.72 bitrate= 619.2kbits/s    
frame=  563 fps=365 q=23.3 size=    1519kB time=00:00:22.40 bitrate= 555.2kbits/s    
frame=  747 fps=363 q=12.5 size=    1902kB time=00:00:29.60 bitrate= 526.2kbits/s    
frame=  929 fps=361 q=21.7 size=    2246kB time=00:00:36.96 bitrate= 497.8kbits/s    
frame= 1111 fps=360 q=26.3 size=    2646kB time=00:00:44.25 bitrate= 489.8kbits/s    
frame= 1283 fps=356 q=28.2 size=    3003kB time=00:00:51.13 bitrate= 481.2kbits/s    
frame= 1462 fps=355 q=8.6 size=    3375kB time=00:00:58.21 bitrate= 475.0kbits/s    
frame= 1659 fps=358 q=10.7 size=    3756kB time=00:01:06.17 bitrate= 465.0kbits/s    
frame= 1858 fps=361 q=22.9 size=    4199kB time=00:01:14.04 bitrate= 464.6kbits/s    
frame= 2057 fps=363 q=9.6 size=    4618kB time=00:01:22.06 bitrate= 461.1kbits/s    
frame= 2266 fps=367 q=10.6 size=    5054kB time=00:01:30.44 bitrate= 457.8kbits/s    
frame= 2479 fps=370 q=10.8 size=    5504kB time=00:01:38.94 bitrate= 455.7kbits/s    
frame= 2679 fps=372 q=31.0 size=    5910kB time=00:01:46.97 bitrate= 452.6kbits/s    
frame= 2882 fps=373 q=15.8 size=    6346kB time=00:01:55.14 bitrate= 451.5kbits/s    
frame= 3079 fps=374 q=9.2 size=    6767kB time=00:02:02.94 bitrate= 450.9kbits/s    
frame= 3254 fps=372 q=22.6 size=    7096kB time=00:02:10.03 bitrate= 447.0kbits/s    
frame= 3439 fps=371 q=11.0 size=    7500kB time=00:02:17.41 bitrate= 447.1kbits/s    
frame= 3635 fps=372 q=10.9 size=    7928kB time=00:02:25.26 bitrate= 447.1kbits/s    
frame= 3845 fps=373 q=12.2 size=    8343kB time=00:02:33.53 bitrate= 445.2kbits/s    
frame= 4046 fps=374 q=23.6 size=    8754kB time=00:02:41.61 bitrate= 443.8kbits/s    
frame= 4232 fps=374 q=11.2 size=    9131kB time=00:02:49.08 bitrate= 442.4kbits/s    
frame= 4416 fps=373 q=15.8 size=    9507kB time=00:02:56.49 bitrate= 441.3kbits/s    
frame= 4594 fps=372 q=8.7 size=    9881kB time=00:03:03.55 bitrate= 441.0kbits/s    
frame= 4798 fps=373 q=16.3 size=   10310kB time=00:03:11.75 bitrate= 440.5kbits/s    
frame= 5003 fps=374 q=11.4 size=   10715kB time=00:03:19.97 bitrate= 438.9kbits/s    
frame= 5197 fps=374 q=8.1 size=   11119kB time=00:03:27.67 bitrate= 438.6kbits/s    
frame= 5407 fps=375 q=13.2 size=   11589kB time=00:03:36.10 bitrate= 439.3kbits/s    
frame= 5606 fps=376 q=22.1 size=   11976kB time=00:03:44.07 bitrate= 437.8kbits/s    
frame= 5813 fps=376 q=11.8 size=   12390kB time=00:03:52.26 bitrate= 437.0kbits/s    
frame= 6002 fps=376 q=25.8 size=   12785kB time=00:03:59.83 bitrate= 436.7kbits/s    
frame= 6012 fps=376 q=24.4 Lsize=   12813kB time=00:04:00.48 bitrate= 436.5kbits/s    

video:9746kB audio:2802kB global headers:0kB muxing overhead 2.121781%



ffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul  8 2012 20:43:35 with gcc 4.6.2
  configuration: --prefix=/mingw --enable-static --disable-shared --enable-nonfree --enable-libfaac --enable-gpl --enable-libx264 --enable-libmp3lame
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  0.101 /  3.  0.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg @ 0167e860] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from '/SD_VIDEO/MOV001.MOD':
  Duration: 00:04:00.44, start: 0.919744, bitrate: 1732 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x288 [SAR 12:11 DAR 4:3], 3000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 128 kb/s
[graph 0 input from stream 0:0 @ 016bc8c0] w:352 h:288 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:12/11 sws_param:flags=2
[output stream 0:0 @ 01a9f580] No opaque field provided
[Parsed_scale_0 @ 017361a0] w:352 h:288 fmt:yuv420p sar:12/11 -> w:384 h:288 fmt:yuv420p sar:1/1 flags:0x4
[graph 1 input from stream 0:1 @ 01745d80] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[auto-inserted resampler 0 @ 01746020] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:44100Hz
Output #0, flv, to 'output.flv':
  Metadata:
    encoder         : Lavf54.15.102
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 384x288 [SAR 1:1 DAR 4:3], q=2-31, 320 kb/s, 1k tbn, 25 tbc
    Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, flt, 96 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> flv)
  Stream #0:1 -> #0:1 (ac3 -> aac)
Press [q] to stop, [?] for help
[mpeg2video @ 01691e20] warning: first frame is no keyframe
frame=  150 fps=0.0 q=10.4 size=     502kB time=00:00:05.80 bitrate= 708.5kbits/s    
frame=  313 fps=304 q=5.2 size=     948kB time=00:00:12.33 bitrate= 630.1kbits/s    
frame=  478 fps=310 q=12.3 size=    1351kB time=00:00:18.94 bitrate= 584.0kbits/s    
frame=  629 fps=305 q=12.1 size=    1629kB time=00:00:24.89 bitrate= 536.1kbits/s    
frame=  781 fps=303 q=12.0 size=    1975kB time=00:00:31.04 bitrate= 521.1kbits/s    
frame=  929 fps=301 q=21.7 size=    2244kB time=00:00:36.89 bitrate= 498.3kbits/s    
frame= 1083 fps=301 q=24.0 size=    2592kB time=00:00:43.14 bitrate= 492.2kbits/s    
frame= 1223 fps=297 q=21.3 size=    2881kB time=00:00:48.78 bitrate= 483.8kbits/s    
frame= 1373 fps=296 q=17.5 size=    3172kB time=00:00:54.68 bitrate= 475.2kbits/s    
frame= 1529 fps=297 q=17.5 size=    3507kB time=00:01:00.92 bitrate= 471.5kbits/s    
frame= 1693 fps=299 q=6.8 size=    3838kB time=00:01:07.52 bitrate= 465.6kbits/s    
frame= 1853 fps=300 q=24.6 size=    4197kB time=00:01:13.95 bitrate= 464.9kbits/s    
frame= 2015 fps=301 q=8.5 size=    4534kB time=00:01:20.45 bitrate= 461.6kbits/s    
frame= 2182 fps=303 q=9.8 size=    4872kB time=00:01:27.07 bitrate= 458.4kbits/s    
frame= 2357 fps=305 q=10.8 size=    5236kB time=00:01:34.01 bitrate= 456.3kbits/s    
frame= 2526 fps=307 q=11.4 size=    5607kB time=00:01:40.84 bitrate= 455.5kbits/s    
frame= 2690 fps=307 q=30.3 size=    5929kB time=00:01:47.36 bitrate= 452.4kbits/s    
frame= 2858 fps=308 q=12.3 size=    6295kB time=00:01:54.07 bitrate= 452.0kbits/s    
frame= 3023 fps=309 q=10.2 size=    6632kB time=00:02:00.74 bitrate= 450.0kbits/s    
frame= 3175 fps=308 q=17.6 size=    6953kB time=00:02:06.82 bitrate= 449.1kbits/s    
frame= 3321 fps=307 q=10.2 size=    7226kB time=00:02:12.60 bitrate= 446.4kbits/s    
frame= 3479 fps=307 q=9.1 size=    7584kB time=00:02:19.04 bitrate= 446.9kbits/s    
frame= 3646 fps=308 q=12.3 size=    7950kB time=00:02:25.61 bitrate= 447.3kbits/s    
frame= 3818 fps=309 q=12.3 size=    8294kB time=00:02:32.48 bitrate= 445.6kbits/s    
frame= 3986 fps=310 q=10.6 size=    8638kB time=00:02:39.26 bitrate= 444.3kbits/s    
frame= 4138 fps=309 q=25.3 size=    8944kB time=00:02:45.35 bitrate= 443.1kbits/s    
frame= 4301 fps=309 q=9.9 size=    9287kB time=00:02:51.87 bitrate= 442.7kbits/s    
frame= 4447 fps=309 q=22.1 size=    9570kB time=00:02:57.67 bitrate= 441.2kbits/s    
frame= 4597 fps=308 q=6.7 size=    9883kB time=00:03:03.69 bitrate= 440.8kbits/s    
frame= 4763 fps=308 q=13.4 size=   10241kB time=00:03:10.31 bitrate= 440.8kbits/s    
frame= 4930 fps=309 q=14.9 size=   10565kB time=00:03:16.99 bitrate= 439.3kbits/s    
frame= 5093 fps=309 q=10.5 size=   10905kB time=00:03:23.49 bitrate= 439.0kbits/s    
frame= 5256 fps=309 q=8.6 size=   11252kB time=00:03:30.09 bitrate= 438.8kbits/s    
frame= 5428 fps=310 q=13.3 size=   11619kB time=00:03:36.89 bitrate= 438.9kbits/s    
frame= 5594 fps=310 q=12.1 size=   11947kB time=00:03:43.51 bitrate= 437.9kbits/s    
frame= 5759 fps=311 q=11.9 size=   12285kB time=00:03:50.15 bitrate= 437.3kbits/s    
frame= 5914 fps=310 q=11.1 size=   12604kB time=00:03:56.35 bitrate= 436.8kbits/s    
frame= 6012 fps=311 q=24.4 Lsize=   12813kB time=00:04:00.48 bitrate= 436.5kbits/s    

video:9746kB audio:2802kB subtitle:0 global headers:0kB muxing overhead 2.121789%



More information about the ffmpeg-user mailing list