mapesdhs wrote:
Code:
Select all
V: 189.3 1894/1894 70% 19% 0.0% 0 0 0%
- current video position: 189.3 seconds
- 1894 of 1894 frames played
- 70% CPU usage for decode
- 19% CPU usage for display
- 0% CPU usage for audio playback
- 0 frames dropped
- no automatic post processing done
- 0% cache fill
if audio is enabled, even more information is shown. Here is the full list:
http://www.mplayerhq.hu/DOCS/HTML/en/faq.html#id2811815
The CPU usage for display with vo_null is because by adding -vf format=rgb24 you enforced colorspace conversion even without displaying anything.
If you really want to benchmark the codec only, skip that one.
These percentage scores are momentary values, the -benchmark output gives overall results instead:
Code:
Select all
BENCHMARKs: VC: 132.943s VO: 36.990s A: 0.000s Sys: 1.198s = 171.131s
BENCHMARK%: VC: 77.6848% VO: 21.6152% A: 0.0000% Sys: 0.7000% = 100.0000%
- 132.943s for decode
- 36.990s for display
- 0.000s for audio playback
- 1.198s used by the OS
- 171.131s total
i.e. 1894 frames / 171 seconds = 11 fps for decoding and colorspace conversion but without video and audio playback.
The second line gives percentage scores of the same.
The command I used to play the file was:
Code:
Select all
mplayer -vo gl2 -vf format=RGB24 -osdlevel 0 -benchmark -nosound -vo null speeder_teaser.mp4
The -vo gl2 is overridden by the -vo null, the -vf format=rgb24 enforces the extra colorspace conversion (with gl2 this shouldn't be needed anyway. I just mentioned it as a workaround for the display problem with vo_sgi mentioned above). For comparison, here are the numbers from my Fuel:
- decode only (-osdlevel 0 -benchmark -nosound -vo null):
Code:
Select all
BENCHMARKs: VC: 193.406s VO: 0.041s A: 0.000s Sys: 0.989s = 194.435s
BENCHMARK%: VC: 99.4706% VO: 0.0210% A: 0.0000% Sys: 0.5084% = 100.0000%
= 9.7 fps. As you can see, without the -vf format=rgb24 filter, nearly no time is spent for VO.
- decode + colorspace conversion (added -vf format=rgb24, same as you did):
Code:
Select all
BENCHMARKs: VC: 195.205s VO: 56.811s A: 0.000s Sys: 1.071s = 253.086s
BENCHMARK%: VC: 77.1297% VO: 22.4473% A: 0.0000% Sys: 0.4230% = 100.0000%
= 7.5 fps. So I assume you tested on a 700MHz machine?
- decode + gl2 display (-vo gl2 -osdlevel 0 -nosound -benchmark):
Code:
Select all
BENCHMARKs: VC: 194.845s VO: 258.793s A: 0.000s Sys: 1.383s = 455.021s
BENCHMARK%: VC: 42.8210% VO: 56.8750% A: 0.0000% Sys: 0.3040% = 100.0000%
= 4.2 fps..
And the inevitable comparison.. decode only on a 1.8GHz Core2Duo (Linux):
Code:
Select all
BENCHMARKs: VC: 17.044s VO: 0.007s A: 0.000s Sys: 0.290s = 17.341s
BENCHMARK%: VC: 98.2833% VO: 0.0417% A: 0.0000% Sys: 1.6750% = 100.0000%
= 109 fps
H.264 is really not the stuff to feed the irix mplayer with..