Solution for installing Mplayer in Linux without sound

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.