Performance Tuning H264 [Was: Re: [MPlayer-users] howto play apples quicktime movie trailers (720p)]

Markus Schulz msc at tastatur-junkie.de
Mon Jan 9 21:16:38 CET 2006


Am Montag, 9. Januar 2006 06:25 schrieb RC:
> On Sun, 8 Jan 2006 14:34:43 +0100
>
> Markus Schulz <msc at tastatur-junkie.de> wrote:
> > Error while decoding frame!
> > Error while decoding frame!41 ct:  0.013   4/  4 ??% ??% ??,?% 3 0
> > 78% Error while decoding frame!66 ct:  0.021   6/  6 ??% ??% ??,?%
> > 4 0 77% Error while decoding frame!65 ct:  0.063  16/ 16 108% 212%
> > 15.1% 5 0 73%
>
> Use "-noframedrop".  That's also why it works with -nosound...
>
> There are a LOT of other ways to speed-up mplayer.  -nocache helps
> quite a bit.  -nortc surprisingly gives a big speed-up on my system. 
> And if you've got an NVidia videocard, I've found the fastest display
> method to be "-vo gl:yuv=1 -dr -vf format=bgr24".

this is significantly slower then -vo xv in my case (FX5900U with 
1.0-8178 CS Driver). -vf format=bgr24 requires a color conversion from 
yuv to rgb which will be done with software scaler. This results in 
approximately half of the speed.

msc at mach:~$ mplayer -osdlevel 0 -nortc -vo gl:yuv=1 -dr 
x-men_3-pre_teaser_h720p.mov  -cache 32000 -benchmark -nosound

runs perfect. similar speed to -vo xv. only brightness is to high and 
not changeable. But this will be better and changeable with yuv=2|3|4.

BENCHMARKs: VC:  26.523s VO:  35.242s A:   0.000s Sys:   0.768s =   
62.532s
BENCHMARK%: VC: 42.4153% VO: 56.3573% A:  0.0000% Sys:  1.2275% = 
100.0000%

can anybody explain me these -benchmark values in detail? 
VC -> time (seconds and percent) needed by video codec for whole movie?
VO -> time (seconds and percent) needed by video out driver to display?
A: -> Audio Driver Time?
Sys -> ?

> And finally, look through the -lavdopts and basically disable
> them until it's fast enough :-)

man page sounds like loss of quality, this is nothing i will accept ;)

> Even with all of this, my CPU (AMD XP) clocked at almost 2GHz, can
> still just barely playback h.264 in 1080p @24fps.  I really hope
> ffh264 gets a lot of optimization.


sounds crazy too me. my don't run 1080p smoothly
here are a benchmarking of king kong 1080p trailer with 

-vo gl:yuv=4
BENCHMARKs: VC: 101.870s VO:  95.676s A:   0.000s Sys:   0.583s =  
198.129s
BENCHMARK%: VC: 51.4161% VO: 48.2897% A:  0.0000% Sys:  0.2942% = 
100.0000%

-vo xv
BENCHMARKs: VC: 136.648s VO:  90.883s A:   0.000s Sys:   1.938s =  
229.468s
BENCHMARK%: VC: 59.5497% VO: 39.6058% A:  0.0000% Sys:  0.8445% = 
100.0000%


-- 
Markus Schulz




More information about the MPlayer-users mailing list