After mplayer is installed, there may be images but no sound. The/dev/dsp cannot be found according to the debug information, then I can see some online saying that it is a mknod/dev/dsp device file or something. It feels strange, because my CentOS, it is said that the sound data is no longer the/dev/dsp device file, so I tried some methods.
Steps:
1. Install the alsa package. Because the rhel6 and centos6 versions and later use the sound card configuration alsa, the sound may be related to the lack of this package.
Yum install-y * alsa *
2. all-xxxxx.tar.bz2 In the decoding package
Http://www.mplayerhq.hu/MPlayer/releases/codecs/
3.decompress all-xxxxx.tar.bz2
Tar-xf all-xxxxx.tar.bz2
4. Create a folder
Mkdir/usr/local/lib/codecs
5. Go to all-xxxx
Cd all-xxxxxx
6. Move all the files in the folder to the folder created in Part 1.
Mv-f/all-xxx/*/usr/local/lib/codecs
7. Re-./configure. Add the parameter -- codecsdir =/usr/local/lib/codecs this time.
./Configure -- codecsdir =/usr/local/lib/codecs
8. make
9. make install
After performing the preceding steps, mplayer will have a sound.
Linux player-install MPlayer and SMPlayer in RedHat
Install SMplayer 0.6.10-PPA source on Ubuntu
Install and use Mplayer in CentOS 5.5
Install Mplayer in Ubuntu 8.04 to watch wonderful movies.