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

Jan Ehrhardt phpdev at ehrhardt.nl
Sat Jul 14 06:12:20 CEST 2012


Jan Ehrhardt in gmane.comp.video.ffmpeg.user (Sat, 14 Jul 2012 03:59:15 +0200):
>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

Added my Mencoder-r33986/33883/34188 mixture to the comparison.
After compiling it on the same Centos 6 machine it proved to
be 8% faster than the latest FFmpeg (63 versus 58 fps).

And the quality of the encoded file is on par with what
FFmpeg produces.

Jan


# ./menc33986.sh
MEncoder SVN-r33986-mencoder-r33883-ffmpeg-r34118-stream-r34118-demux_lavf (C) 2000-2011 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)
==========================================================================
Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Unsupported PixelFormat 61
Unsupported PixelFormat 53

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 @ 0xcd6500]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 @ 0xce5e20]Codec for stream 0 does not use global headers but container format requires global headers
[asf @ 0xce5e20]Codec for stream 1 does not use global headers but container format requires global headers

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=1, last=5
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 200 >= 40
Error while writing frame.
Pos:   0.3s     10f ( 0%)  0.00fps Trem:   0min   7mb  A-V:0.023 [0:0]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=2, last=5
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 200 >= 80
Error while writing frame.
Pos:   0.4s     12f ( 0%)  0.00fps Trem:   0min   6mb  A-V:0.016 [0:0]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=3, last=5
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 200 >= 120
Error while writing frame.
Pos:   0.4s     13f ( 0%)  0.00fps Trem:   0min   6mb  A-V:0.028 [0:0]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=4, last=5
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 200 >= 160
Error while writing frame.
Pos:   0.7s     21f ( 0%)  0.00fps Trem:   0min  12mb  A-V:0.100 [0:64]

Skipping frame!
Pos:   0.7s     22f ( 0%)  0.00fps Trem:   0min  12mb  A-V:0.087 [0:64]

Skipping frame!
Pos:   1.5s     65f ( 0%)  0.00fps Trem:   0min  12mb  A-V:0.080 [562:63]

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

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

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

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

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

Skipping frame!
Pos: 243.7s  12188f (100%) 125.89fps Trem:   0min  12mb  A-V:0.021 [345:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6085, last=6093
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 243720 >= 243400
Error while writing frame.
Pos: 243.8s  12190f (100%) 125.89fps Trem:   0min  12mb  A-V:0.035 [345:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6087, last=6096
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 243840 >= 243480
Error while writing frame.
Pos: 244.0s  12192f (100%) 125.89fps Trem:   0min  12mb  A-V:0.025 [345:63]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6089, last=6099
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 243960 >= 243560
Error while writing frame.
Pos: 244.1s  12194f (100%) 125.87fps Trem:   0min  12mb  A-V:0.013 [345:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6091, last=6102
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244080 >= 243640
Error while writing frame.
Pos: 244.2s  12196f (100%) 125.87fps Trem:   0min  12mb  A-V:0.009 [345:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6093, last=6105
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244200 >= 243720
Error while writing frame.
Pos: 244.3s  12198f (100%) 125.87fps Trem:   0min  12mb  A-V:-0.015 [345:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6095, last=6108
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244320 >= 243800
Error while writing frame.
Pos: 244.4s  12200f (100%) 125.86fps Trem:   0min  12mb  A-V:-0.043 [345:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6097, last=6111
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244440 >= 243880
Error while writing frame.
Pos: 244.6s  12202f (100%) 125.86fps Trem:   0min  12mb  A-V:-0.063 [345:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6099, last=6114
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244560 >= 243960
Error while writing frame.
Pos: 244.7s  12204f (100%) 125.87fps Trem:   0min  12mb  A-V:-0.101 [344:64]

2 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6101, last=6117
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244680 >= 244040
Error while writing frame.
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6102, last=6117
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244680 >= 244080
Error while writing frame.
Pos: 244.7s  12205f (100%) 125.86fps Trem:   0min  12mb  A-V:-0.089 [344:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6103, last=6117
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244680 >= 244120
Error while writing frame.
Pos: 244.9s  12206f (100%) 125.87fps Trem:   0min  12mb  A-V:-0.067 [344:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6105, last=6124
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244960 >= 244200
Error while writing frame.
Pos: 245.0s  12207f (100%) 125.86fps Trem:   0min  12mb  A-V:-0.084 [344:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6106, last=6124
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 244960 >= 244240
Error while writing frame.
Pos: 245.1s  12208f (100%) 125.87fps Trem:   0min  12mb  A-V:-0.068 [344:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6108, last=6129
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245160 >= 244320
Error while writing frame.
Pos: 245.2s  12209f (100%) 125.86fps Trem:   0min  12mb  A-V:-0.091 [344:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6109, last=6129
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245160 >= 244360
Error while writing frame.
Pos: 245.3s  12210f (100%) 125.86fps Trem:   0min  12mb  A-V:-0.091 [344:64]

2 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6111, last=6134
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245360 >= 244440
Error while writing frame.
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6112, last=6134
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245360 >= 244480
Error while writing frame.
Pos: 245.4s  12211f (100%) 125.86fps Trem:   0min  12mb  A-V:-0.088 [344:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6113, last=6134
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245360 >= 244520
Error while writing frame.
Pos: 245.6s  12212f (100%) 125.86fps Trem:   0min  12mb  A-V:-0.079 [343:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6115, last=6141
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245640 >= 244600
Error while writing frame.
Pos: 245.7s  12213f (100%) 125.85fps Trem:   0min  12mb  A-V:-0.107 [343:64]

1 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6116, last=6141
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245640 >= 244640
Error while writing frame.
Pos: 245.8s  12214f (100%) 125.85fps Trem:   0min  12mb  A-V:-0.101 [343:64]

2 duplicate frame(s)!
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6118, last=6146
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245840 >= 244720
Error while writing frame.
[wmv2 @ 0xd5df40]Error, Invalid timestamp=6119, last=6146
[asf @ 0xce5e20]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 245840 >= 244760
Error while writing frame.
Pos: 245.9s  12215f (100%) 125.85fps Trem:   0min  12mb  A-V:-0.096 [343:64]

Flushing video frames.
Writing index...

Video stream:  343.381 kbit/s  (42922 B/s)  size: 10560684 bytes  246.040 secs  12215 frames

Audio stream:   64.000 kbit/s  (8000 B/s)  size: 1972344 bytes  246.543 secs



More information about the ffmpeg-user mailing list