Example Description: solves common Mplayer Problems

Source: Internet
Author: User

I think a lot of people have had trouble installing mplayer to solve video files in different formats. Whether it is installed with the source code or after the Mplayer player is successfully installed using yum or apt-get, when you play a video file in rm or rmvb format using the Mplayer player, the following two problems may occur.
(My environment is FC6)
I am too lazy to install the Mplayer player. I will use the following command to install it.
[Root @ localhost ~] # Yum-y install mplayer *
There are a total of 7 packages, including fonts, skins, and graphic interfaces.
Problem 1: After installation is complete, video files in avi format can be played, but video files in RM or RMVB format cannot be played.
The error message is:
Cannot find codec matching selected-vo and video format 0x30345652
Decoding problem.
Solution:
Step 1: Download the decoding package.
Download all-20061022.tar.bz2
Http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2
Download windows-all-20061022.zip
Http://www.mplayerhq.hu/MPlayer/releases/codecs/windows-all-20061022.zip
Step 2: Decompress the package and copy the content in the all-20061022 folder to the/usr/lib/codecs directory, copy the content in the windows-all-20061022 directory to the/usr/lib/win32 Directory. Generally, win32 is created by yourself.
[Root @ localhost mplayer_install] # tar jxvf all-20061022.tar.bz2
[Root @ localhost mplayer_install] # unzip windows-all-20061022.zip
[Root @ localhost mplayer_install] # cp-rf all-20061022/*/usr/lib/codecs
[Root @ localhost mplayer_install] # mkdir/usr/lib/win32
[Root @ localhost mplayer_install] # cp-rf windows-all-20061022/*/usr/lib/win32
So far, problem 1 is resolved.
Problem 2: After problem 1 is solved, the player can play RM or RMVB at this time. However, the following message is displayed during playback. Although the following information does not affect playback, the problem must be solved.
The error message is as follows:
ERROR: cocould not open required DirectShow codec drv4.so. 6.0
Solution:
[Root @ localhost ~] # Ldd/usr/lib/codecs/drvc. so
Linux-gate.so.1 => (0x00898000)
Libstdc ++. so.5 => not found
Libc. so.6 =>/lib/libc. so.6 (0x00268000)
/Lib/ld-linux.so.2 (0x49153000)
[Root @ localhost ~] # Yum-y install compat-libstdc ++ *
Or find the compat-libstdc ++-33. i386.rpm

The problem persists, but the following message is displayed:
Cocould not open required directshow codec drvc. dll
Note: This prompt is prompted when the terminal runs gmplayer to start the graphic interface.
Use the following command:
[Root @ localhost ~] # Chcon-t textrel_shlib_t/usr/lib/codecs/drv *
Now, your mplayer can run normally.
Problem 2 is also resolved.

Note that the chcon command is equivalent to allowing all the database files of the drv * to be loaded.
Play the CD and DVD on the terminal:
Mplayer vcd: // 2-cdrom-device/dev/hdc
Mplayer dvd: // 1-alang en-slang hu-dvd-device/dev/hdd

  1. How to install Mplayer on Linux
  2. Install the player mplayer and realplayer in FC6
  3. Strongest player in Linux MPlayer

Related Article

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.