[MPlayer-users] can't use dual core

Vladimir Mosgalin mosgalin at VM10124.spb.edu
Thu Apr 19 23:20:35 CEST 2007


Hi Henry Garcia!

 On 2007.04.19 at 16:57:52 -0400, Henry Garcia wrote next:

> Maybe it's my imagination. I feel better though. Actually, using  the  table
> of processess  (top) from a console, I made a few comparisons, and it seems
> to cut down the processor usage about 5 - 6 % that's decoding an ffmpeg4
> file. But it shows up more on my system because I'm using 'slower' PIII 800
> Mhz processors.

Don't do that (top can show whatever it wants to when it comes to
mplayer). Instead, use
mplayer -vf-clr -vo null -nosound -lavdopts threads=x -benchmark -quiet

Run it a few times with threads=1 and threads=2, calculate RMS of total
time for both cases and compare them.

BENCHMARKs: VC:   4.013s VO:   0.652s A:   0.000s Sys:   0.081s = 4.747s
BENCHMARK%: VC: 84.3948% VO: 13.9252% A:  0.0000% Sys:  1.6800% = 100.0000%

4.747s is the number you want.

I picked a mpeg4 "DX50" 3-minute clip - 640x480, 2mbit/s, 50fps. I have
dualcore Core 2 Duo system.

threads=1 4.772s 4.759s 4.923s 4.748s 4.738s RMS=4.788
threads=2 4.747s 4.707s 4.846s 4.887s 4.790s RMS=4.796

I don't see any difference.. I probably should've picked up a longer
clip.

-- 

Vladimir



More information about the MPlayer-users mailing list