[FFmpeg-user] Zeranoe Windows builds spiking CPU to 100% randomly

Jan Ehrhardt phpdev at ehrhardt.nl
Sat Jul 14 03:59:15 CEST 2012


Jan Ehrhardt in gmane.comp.video.ffmpeg.user (Fri, 13 Jul 2012 22:15:26 +0200):
>Roger Pack in gmane.comp.video.ffmpeg.user (Fri, 13 Jul 2012 12:57:55
>-0600):
>>It would be interesting to see if it shows the same speed difference
>>in linux that it does in windows.  But besides that, I don't know what
>>it is :)
>
>Try it.

To answer my own challenge: on *nix MEncoder is also faster on this
file as well. 71.7 versus 57 fps = 25% faster.

Centos 6, Mencoder r35020 with the same Git version of FFmpeg as
on my Windows 7 machine.

ffmpeg version git-2012-07-13-d3abbb1
ffmpeg -i 00005.MTS -vf scale=448:256 -aspect 16:9 -sws_flags bicubic
	-vcodec wmv2 -b 336k -r 25 -acodec wmav2 -ab 64k -threads 6
	-y 00005ff.wmv
fps= 57

MEncoder SVN-r35020-4.4.6
mencoder -mc 1 -vf scale=448:256,harddup,telecine
	-lavdopts fast:threads=6 -of lavf -lavfopts format=asf
	-ovc lavc -lavcopts vcodec=wmv2:vbitrate=335
	-oac lavc -lavcopts acodec=wmav2:abitrate=64
	-o 00005menc.wmv 00005.MTS
143.41fps (50i interlaced frames counting) = 71.7 fps

The really old MEncoder SVN-r31628-4.4.5 is somewhat slower than
the latest FFMpeg: 48fps. But it does not need the extra telecine
filter to produce correct encoded files.

MEncoder SVN-r31628-4.4.5 (C) 2000-2010 MPlayer Team
Note: this is a version before the MT merge!
mencoder -mc 1 -vf scale=448:256,harddup
	-lavdopts fast:threads=6 -of lavf -lavfopts format=asf
	-ovc lavc -lavcopts vcodec=wmv2:vbitrate=335
	-oac lavc -lavcopts acodec=wmav2:abitrate=64
	-o 00005menc.wmv 00005.MTS
95.83fps (50i interlaced frames counting) = 47.9 fps

Jan



# ./fftest.sh
ffmpeg version git-2012-07-13-d3abbb1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 14 2012 03:20:21 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
  configuration: --enable-static
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 35.100 / 54. 35.100
  libavformat    54. 16.104 / 54. 16.104
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  2.100 /  3.  2.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
[mpegts @ 0x1ea7120] max_analyze_duration 5000000 reached at 5000000
Input #0, mpegts, from '00005.MTS':
  Duration: 00:04:04.32, start: 0.820033, bitrate: 5333 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 256 kb/s
Please use -b:a or -b:v, -b is ambiguous
[graph 0 input from stream 0:0 @ 0x1eac7c0] w:1440 h:1080 pixfmt:yuv420p tb:1/90000 fr:50/1 sar:4/3 sws_param:flags=2
[Parsed_scale_0 @ 0x1eac320] w:1440 h:1080 fmt:yuv420p sar:4/3 -> w:448 h:256 fmt:yuv420p sar:64/63 flags:0x4
[graph 1 input from stream 0:1 @ 0x1f993e0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
Output #0, asf, to '00005ff.wmv':
  Metadata:
    WM/EncodingSettings: Lavf54.16.104
    Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 448x256 [SAR 64:63 DAR 16:9], q=2-31, 336 kb/s, 1k tbn, 25 tbc
    Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> wmv2)
  Stream #0:1 -> #0:1 (ac3 -> wmav2)
Press [q] to stop, [?] for help
frame= 6109 fps= 57 q=11.5 Lsize=   12630kB time=00:04:04.35 bitrate= 423.4kbits/s dup=1 drop=0
video:10308kB audio:1907kB subtitle:0 global headers:0kB muxing overhead 3.399911%



# ./menctest.sh
MEncoder SVN-r35020-4.4.6 (C) 2000-2012 MPlayer Team
success: format: 0  data: 0x0 - 0x9b59800
libavformat version 54.16.104 (internal)
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)!  PROGRAM N. 1
FPS seems to be: 25.000000
[V] filefmt:29  fourcc:0x10000005  size:1440x1088  fps:25.000  ftime:=0.0400
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.35.100 (internal)
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [telecine]
Opening video filter: [harddup]
Opening video filter: [scale w=448 h=256]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81

1 duplicate frame(s)!
Pos:   0.0s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.007 [0:0]

1 duplicate frame(s)!
Pos:   0.0s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.017 [0:0]

1 duplicate frame(s)!
Pos:   0.1s      4f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.024 [0:0]

1 duplicate frame(s)!
Pos:   0.1s      5f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.037 [0:0]

1 duplicate frame(s)!
Pos:   0.2s      6f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.036 [0:0]
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0xf97f40]BICUBIC scaler, from yuv420p to yuv420p using MMX2
videocodec: libavcodec (448x256 fourcc=32564d57 [WMV2])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
VIDEO CODEC ID: 19
AUDIO CODEC ID: 15008, TAG: 0
Writing header...
[asf @ 0xe4c4a0]Codec for stream 0 does not use global headers but container format requires global headers
[asf @ 0xe4c4a0]Codec for stream 1 does not use global headers but container format requires global headers

1 duplicate frame(s)!
Pos:   0.3s      9f ( 0%)  0.00fps Trem:   0min   7mb  A-V:0.036 [0:0]

1 duplicate frame(s)!
Pos:   0.3s     11f ( 0%)  0.00fps Trem:   0min   9mb  A-V:0.031 [0:0]

1 duplicate frame(s)!
Pos:   0.3s     12f ( 0%)  0.00fps Trem:   0min  10mb  A-V:0.033 [0:0]

1 duplicate frame(s)!
Pos:   0.4s     14f ( 0%)  0.00fps Trem:   0min   9mb  A-V:0.023 [0:0]

1 duplicate frame(s)!
Pos:  40.5s   2015f (16%) 144.66fps Trem:   1min  11mb  A-V:0.080 [322:63]

Skipping frame!
Pos:  81.4s   4061f (33%) 145.22fps Trem:   0min  11mb  A-V:0.080 [332:64]

Skipping frame!
Pos: 121.9s   6089f (50%) 145.11fps Trem:   0min  12mb  A-V:0.080 [340:64]

Skipping frame!
Pos: 163.2s   8159f (66%) 144.46fps Trem:   0min  12mb  A-V:0.080 [346:64]

Skipping frame!
Pos: 204.1s  10205f (83%) 143.74fps Trem:   0min  12mb  A-V:0.080 [343:64]

Skipping frame!
Pos: 243.6s  12183f (100%) 143.40fps Trem:   0min  12mb  A-V:0.055 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.6s  12184f (100%) 143.41fps Trem:   0min  12mb  A-V:0.074 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.7s  12185f (100%) 143.41fps Trem:   0min  12mb  A-V:0.055 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.7s  12186f (100%) 143.42fps Trem:   0min  12mb  A-V:0.062 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.7s  12187f (100%) 143.41fps Trem:   0min  12mb  A-V:0.033 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.7s  12188f (100%) 143.42fps Trem:   0min  12mb  A-V:0.054 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.8s  12189f (100%) 143.41fps Trem:   0min  12mb  A-V:0.037 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.8s  12190f (100%) 143.42fps Trem:   0min  12mb  A-V:0.058 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.8s  12191f (100%) 143.41fps Trem:   0min  12mb  A-V:0.041 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.8s  12192f (100%) 143.42fps Trem:   0min  12mb  A-V:0.050 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.8s  12193f (100%) 143.41fps Trem:   0min  12mb  A-V:0.021 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.8s  12194f (100%) 143.40fps Trem:   0min  12mb  A-V:0.044 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.9s  12195f (100%) 143.39fps Trem:   0min  12mb  A-V:0.028 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.9s  12196f (100%) 143.40fps Trem:   0min  12mb  A-V:0.050 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.9s  12197f (100%) 143.39fps Trem:   0min  12mb  A-V:0.034 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 243.9s  12198f (100%) 143.40fps Trem:   0min  12mb  A-V:0.043 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.0s  12199f (100%) 143.39fps Trem:   0min  12mb  A-V:0.015 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.0s  12200f (100%) 143.40fps Trem:   0min  12mb  A-V:0.038 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341

1 duplicate frame(s)!
Pos: 244.0s  12201f (100%) 143.39fps Trem:   0min  12mb  A-V:0.059 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.0s  12202f (100%) 143.40fps Trem:   0min  12mb  A-V:0.082 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.1s  12203f (100%) 143.39fps Trem:   0min  12mb  A-V:0.066 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.1s  12204f (100%) 143.40fps Trem:   0min  12mb  A-V:0.076 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.1s  12205f (100%) 143.40fps Trem:   0min  12mb  A-V:0.049 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.1s  12206f (100%) 143.40fps Trem:   0min  12mb  A-V:0.073 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.2s  12207f (100%) 143.39fps Trem:   0min  12mb  A-V:0.059 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.2s  12208f (100%) 143.40fps Trem:   0min  12mb  A-V:0.081 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.2s  12209f (100%) 143.40fps Trem:   0min  12mb  A-V:0.066 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.2s  12210f (100%) 143.41fps Trem:   0min  12mb  A-V:0.076 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.2s  12211f (100%) 143.40fps Trem:   0min  12mb  A-V:0.049 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.2s  12212f (100%) 143.40fps Trem:   0min  12mb  A-V:0.073 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.3s  12213f (100%) 143.39fps Trem:   0min  12mb  A-V:0.058 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.3s  12214f (100%) 143.40fps Trem:   0min  12mb  A-V:0.081 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341
Pos: 244.3s  12215f (100%) 143.40fps Trem:   0min  12mb  A-V:0.066 [346:64]
[wmav2 @ 0xecd840]Provided packet is too small, needs to be 341

Skipping frame!
Pos: 244.3s  12216f (100%) 143.41fps Trem:   0min  12mb  A-V:0.088 [346:64]

Flushing video frames.
Writing index...

Video stream:  346.158 kbit/s  (43269 B/s)  size: 10571668 bytes  244.320 secs  12216 frames

Audio stream:   64.000 kbit/s  (8000 B/s)  size: 1952907 bytes  244.113 secs




# ./mencold.sh
mencoder: /usr/local/lib/libpng12.so.0: no version information available (required by mencoder)
MEncoder SVN-r31628-4.4.5 (C) 2000-2010 MPlayer Team
success: format: 0  data: 0x0 - 0x9b59800
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)!  PROGRAM N. 1
FPS seems to be: 25.000000
[V] filefmt:29  fourcc:0x10000005  size:4x3  fps:25.000  ftime:=0.0400
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=448 h=256]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect..000 [0:0]
[swscaler @ 0x27a0d30] BICUBIC scaler, from yuv420p to yuv420p using MMX2
videocodec: libavcodec (448x256 fourcc=32564d57 [WMV2])
VIDEO CODEC ID: 19
AUDIO CODEC ID: 15008, TAG: 0
Writing header...
[asf @ 0x279a710] Codec for stream 0 does not use global headers but container format requires global headers
[asf @ 0x279a710] Codec for stream 1 does not use global headers but container format requires global headers

1 duplicate frame(s)!
Pos:   0.1s      3f ( 0%)  0.00fps Trem:   0min   9mb  A-V:0.023 [0:0]
1 duplicate frame(s)!
Pos:   0.1s      4f ( 0%)  0.00fps Trem:   0min  11mb  A-V:0.034 [0:0]
1 duplicate frame(s)!
Pos:   0.2s      6f ( 0%)  0.00fps Trem:   0min  11mb  A-V:0.011 [0:0]
1 duplicate frame(s)!
Pos:   0.2s      7f ( 0%)  0.00fps Trem:   0min  11mb  A-V:0.016 [0:0]
1 duplicate frame(s)!
Pos:   0.2s      8f ( 0%)  0.00fps Trem:   0min  12mb  A-V:0.032 [0:0]
1 duplicate frame(s)!
Pos:   0.4s     13f ( 0%)  0.00fps Trem:   0min  13mb  A-V:0.022 [0:0]
1 duplicate frame(s)!
Pos:   0.6s     25f ( 0%)  0.00fps Trem:   0min  15mb  A-V:0.034 [0:63]
1 duplicate frame(s)!
Pos:  24.9s   1234f (10%) 95.73fps Trem:   1min  11mb  A-V:0.080 [333:64]
Skipping frame!
Pos:  65.4s   3262f (27%) 94.94fps Trem:   1min  12mb  A-V:0.080 [343:63]
Skipping frame!
Pos: 106.2s   5302f (43%) 95.67fps Trem:   1min  12mb  A-V:0.080 [354:64]
Skipping frame!
Pos: 147.6s   7378f (60%) 96.13fps Trem:   0min  12mb  A-V:0.080 [348:64]
Skipping frame!
Pos: 188.2s   9406f (77%) 96.05fps Trem:   0min  12mb  A-V:0.080 [345:64]
Skipping frame!
Pos: 228.9s  11446f (94%) 96.08fps Trem:   0min  12mb  A-V:0.080 [344:64]
Skipping frame!
Pos: 243.7s  12187f (100%) 95.87fps Trem:   0min  12mb  A-V:0.020 [345:64]
1 duplicate frame(s)!
Pos: 243.8s  12191f (100%) 95.87fps Trem:   0min  12mb  A-V:0.016 [345:64]
1 duplicate frame(s)!
Pos: 243.9s  12193f (100%) 95.86fps Trem:   0min  12mb  A-V:-0.001 [345:64]
1 duplicate frame(s)!
Pos: 244.0s  12195f (100%) 95.86fps Trem:   0min  12mb  A-V:0.000 [345:63]
1 duplicate frame(s)!
Pos: 244.0s  12197f (100%) 95.86fps Trem:   0min  12mb  A-V:-0.007 [345:64]
1 duplicate frame(s)!
Pos: 244.1s  12199f (100%) 95.85fps Trem:   0min  12mb  A-V:-0.041 [345:64]
1 duplicate frame(s)!
Pos: 244.2s  12201f (100%) 95.85fps Trem:   0min  12mb  A-V:-0.050 [345:64]
1 duplicate frame(s)!
Pos: 244.3s  12203f (100%) 95.85fps Trem:   0min  12mb  A-V:-0.066 [345:64]
1 duplicate frame(s)!
Pos: 244.4s  12204f (100%) 95.85fps Trem:   0min  12mb  A-V:-0.087 [345:64]
1 duplicate frame(s)!
Pos: 244.4s  12205f (100%) 95.85fps Trem:   0min  12mb  A-V:-0.070 [345:64]
1 duplicate frame(s)!
Pos: 244.5s  12206f (100%) 95.84fps Trem:   0min  12mb  A-V:-0.084 [345:64]
1 duplicate frame(s)!
Pos: 244.5s  12207f (100%) 95.84fps Trem:   0min  12mb  A-V:-0.060 [345:64]
1 duplicate frame(s)!
Pos: 244.6s  12209f (100%) 95.84fps Trem:   0min  12mb  A-V:-0.101 [345:64]
2 duplicate frame(s)!
Pos: 244.7s  12210f (100%) 95.84fps Trem:   0min  12mb  A-V:-0.092 [345:64]
1 duplicate frame(s)!
Pos: 244.8s  12211f (100%) 95.84fps Trem:   0min  12mb  A-V:-0.085 [345:64]
2 duplicate frame(s)!
Pos: 244.9s  12213f (100%) 95.83fps Trem:   0min  12mb  A-V:-0.096 [345:64]
2 duplicate frame(s)!
Pos: 245.0s  12214f (100%) 95.83fps Trem:   0min  12mb  A-V:-0.081 [345:64]
1 duplicate frame(s)!
Pos: 245.0s  12215f (100%) 95.83fps Trem:   0min  12mb  A-V:-0.073 [345:64]
Flushing video frames.
Writing index...

Video stream:  345.637 kbit/s  (43204 B/s)  size: 10586847 bytes  245.040 secs  12215 frames

Audio stream:   64.000 kbit/s  (8000 B/s)  size: 1964501 bytes  245.563 secs



More information about the ffmpeg-user mailing list