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

Henry defsyn at gmail.com
Sat Mar 26 08:35:28 CET 2011


On Sat, Mar 26, 2011 at 2:04 AM, 陳鈞宇 <j1989_fool at yahoo.com.tw> wrote:

> 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"
>
You can leave out the --extra-cflags
the configure script usually sets mtune and march to native with the recent
GCC- 4.X  compilers

you need to check to see if pthreads was enabled during the configure stage
You need to have pthreads installed on your system. developer files

> # make -j 2
>
that just builds with 2 threads

> # make install
> # mplayer -lavdopts threads=2 -vf pp=lb /mnt/Video/HiHD.ts
>
Check the documentation to see which file formats support extra threads with
lavdopts


> ---------------------------
>


More information about the MPlayer-users mailing list