First to mplayer website download source Package
ftp://ftp.mplayerhq.hu/MPlayer/releases/
Need to use main file Mplayer-1.1.1.tar.xz
Ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.1.tar.xz
Decoder all-20100303.tar.bz2 under Linux
ftp://ftp.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
Please download the skin on your own installation, not introduced here
Many students in the Ubuntu installation MPlayer no sound, because linux2.4 after the kernel gradually discard OSS audio architecture and turn to ALSA (for more information please refer to http://blog.csdn.net/meizum10/article/ details/17437959), and Ubuntu lacks the ALSA library, so we can add it.
alsa-lib-1.0.27.2.tar.bz2
ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.27.2.tar.bz2
Gather the Dragon beads and summon the dragon.
Extract Files
Tar xvf mplayer-1.1.1.tar.xz
tar xvf all-20110131.tar.bz2
tar xvf alsa-lib-1.0.27.2.tar.bz2
Copy Decoder to/usr/lib/codecs/
sudo mkdir/usr/lib/codecs/
sudo cp all-20110131/*/usr/lib/codecs/
Compile and install Alsa-lib
CD alsa-lib-1.0.27.2/
./configure
Make&&make Install
Install Ysam and Libgtk2.0-dev, otherwise the Configure in MPlayer will be prompted for missing files
sudo apt-get install yasm
sudo apt-get install Libgtk2.0-dev
Compile and install MPlayer
CD MPLAYER-1.1.1/
/configure need to be aware that because Ubuntu discards the OSS audio architecture, you need to add parameter--disable-ossaudio. And the new version of MPlayer also discarded--win32codecsdir parameters, there is a need to add win32codecs students can try to copy the file to the above/usr/lib/codecs/, the specific effect I did not verify, please discretion
./configure--prefix=/usr/local/mplayer--enable-gui--enable-freetype--disable-ossaudio--codecsdir=/usr/lib/ codecs/--LANGUAGE=ZH_CN
Command Option NOTE:--prefix=/usr/local/mplayer/Specifies the MPlayer installation path--enable-gui enables the GUI interface--enable-freetype to support FreeType font engine--CODECS dir=/usr/lib/codecs/specifies mplayer Linux decoder directory--win32codecsdir=/usr/lib/win32codecs/specify mplayer Win32 decoder directory--language=zh_ CN Specifies that the language used for MPlayer is Simplified Chinese
Make it last.
Make&&make Install
Try the effect
cd/usr/local/mplayer/bin/
./mplayer/home/tom/mplayer/legend. flv
If you feel the sound is too small, modify the MPlayer profile:/usr/local/mplayer/etc/mplayer/mplayer.conf or under the home folder. Mplayer/config, no new one.
Just add the following line to the mplayer.conf:
Af=volnorm,volume=5
The value of the volume can be set according to the implementation, and the value is too general to cause a broken sound.