[MPlayer-users] How to build mplayer with multi-threaded video decoding

陳鈞宇 j1989_fool at yahoo.com.tw
Sat Mar 26 07:04:10 CET 2011


Hi there,

I followed the instructions below to build mplayer with multi-threaded video decoding but had been always getting one with only single-threaded  video decoding.

What can I do to fix this problem? Thanks in advance!

OS: Debian squeeze 6.0
CPU: Intel Pentium DC E2140
---------------------------
# cd /dev/shm
# apt-get install git subversion libxv-dev libclalsadrv-dev build-essential
# svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer
# git clone git://git.videolan.org/ffmpeg.git
# mv ffmpeg mplayer
# cd mplayer
# ./configure --disable-inet6 --disable-mencoder --extra-cflags="-mtune=core2"
# make -j 2
# make install
# mplayer -lavdopts threads=2 -vf pp=lb /mnt/Video/HiHD.ts
---------------------------


----output of comannd "top" while playing H264 video----
top - 15:47:40 up 4:22, 3 users, load average: 0.42, 1.00, 0.78
Tasks: 80 total, 4 running, 76 sleeping, 0 stopped, 0 zombie
Cpu0 : 7.9%us, 1.6%sy, 0.0%ni, 89.8%id, 0.0%wa, 0.7%hi, 0.0%si, 0.0%st
Cpu1 : 95.7%us, 0.7%sy, 0.0%ni, 3.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2066644k total, 1842924k used, 223720k free, 459580k buffers
Swap: 0k total, 0k used, 0k free, 1186428k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1804 jiunyu 20 0 83504 58m 11m R 97 2.9 0:56.57 mplayer
1046 root 20 0 54796 26m 9.9m R 9 1.3 8:54.67 Xorg
25264 jiunyu 20 0 18408 8432 3300 R 1 0.4 0:01.13 xterm
31409 root 20 0 4200 1152 636 S 1 0.1 0:12.13 mount.ntfs
1053 jiunyu 20 0 45736 7664 5600 S 0 0.4 0:21.28 icewm
1805 jiunyu 20 0 17220 7060 3164 S 0 0.3 0:00.07 xterm
1814 jiunyu 20 0 2332 1140 904 R 0 0.1 0:00.04 top 
-----------------------------------------------------------------------


      


More information about the MPlayer-users mailing list