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

Mike F paziu at yahoo.com
Sat Jul 14 04:32:39 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.


gentoo3 # time ./mencoder -mc 1 -vf scale=448:256,harddup,telecine -aspect 16:9 -lavcopts aspect=16/9 -sws 2 -lavdopts fast:threads=6 -of lavf -lavfopts format=asf -ovc lavc -lavcopts vcodec=wmv2:vbitrate=336:keyint=50 -oac lavc -lavcopts acodec=wmav2:abitrate=64:aglobal=1:turbo=1 -af volnorm -o wmvwma.wmv ../../../../encoder/00005.MTS 2>/dev/null
MEncoder SVN-r35022-4.5.2 (C) 2000-2012 MPlayer Team

Pos: 244.3s  12216f (100%) 253.38fps Trem:   0min  12mb  A-V:0.088 [350:64]

real    0m48.251s
user    1m52.929s
sys     0m0.880s

gentoo3 # time ffmpeg -i ../../../../encoder/00005.MTS -vf scale=448:256 -aspect 16:9 -sws_flags bicubic -vcodec wmv2 -b 336k -r 25 -acodec wmav2 -ab 64k -threads 6 wmvwmaff.wmv
ffmpeg version N-42344-g99622f6 Copyright (c) 2000-2012 the FFmpeg developers

frame= 6109 fps= 77 q=11.5 Lsize=   12630kB time=00:04:04.35 bitrate= 423.4kbits/s dup=1 drop=0 

real    1m21.452s
user    1m53.586s
sys     0m0.907s


mencoder with threads=16 same time ( again only 4 of all 8 physical cores used )
mencoder with threads=17 - Exiting... (error parsing command line) ?????? to many threads? :-]
ffmpeg with 6 or 12 "threads" same result - only 2 out of 8 cores used... 1m21s sec for both 6 and 12 :-( ( real time of course )

mencoder does a better job, but still far from perfect.... ( 50% H/W used )
ffmpeg only 20% of hardware or so...

( btw, I run -j12 when compiling any source on my twin xeon quad core 54xx )


More information about the ffmpeg-user mailing list