Compile and install mplayer in linux

Source: Internet
Author: User
In linux, mplayer compilation and installation-general Linux technology-Linux technology and application information. The following is a detailed description. In linux, if you want to play audio and video files, most people have heard of mplayer, and there are also a lot of compilation and installation tutorials. Here, combined with the mplayer installation process, I would like to give you more suggestions.

The first is the compilation process. /After configure, there are several parameters that must be added. One is Chinese support -- language = zh_CN; the other is -- codecsdir = {release address of your decoding package file }, in, you release the decoder package named AllXXXXX downloaded from the official mplayer website to/usr/lib/win32, for example, this parameter is -- codecsdir =/usr/lib/win32. In addition, you do not need to install other decoding packages. The ALLxxxxxx package contains all the decoders; the third is -- enable-freetype. This parameter allows you to use freetype fonts. Otherwise, you can only use bitmap packages provided on the official website. Another important parameter is as follows: -- enable-smb: this parameter allows your mplayer player to play directly using the smb protocol, for example, a song file in a shared folder on a WINDOWS computer in your LAN. If you don't want to be disturbed by ipv6 protocol errors, it is recommended to add -- disable-inet6, because our domestic telecommunications or ipv4, This is a burden, however, IPV6 is always installed by default during linux installation. In this way, mplayer adds the IPV6 option during configure, and the solution is to uninstall the IPV6 protocol of LINUX, you must add this deny option. If you want to use the gui, you must add the -- enable-gui parameter. Otherwise, when you enter gmplayer in the console, the system will prompt that this command is unavailable. If you want to be more perfect, add -- disable -- lirc, which will disable mplayer from using infrared devices. Otherwise, a lirc error prompt will appear, but will not affect the use.

The second step is the compilation and installation process. Sometimes your compilation will go wrong and don't panic. Please take a look at the error message in detail, such as my compilation and prompt IVTV. o error. /configure -- help, found the -- disable-ivtv option, tried to disable the ivtv function, and then make clean & make, OK, everything went well!

The last step is after compilation and installation. If the graphic interface is used, the default folder must exist under the/usr/local/lib/mplayer Directory, which must contain a SKIN, all the files decompressed by the SKIN package you downloaded from the official website are directly stored in this directory. The default folder should contain files rather than subdirectories. As long as there is a default skin file, you must do this. Otherwise, when you use mplayer to play a file under X, it does not pop up any other skin files you set, it must be the skin in your default folder.

A problem that has not yet been solved: many people are asking why my player cannot display the Chinese song name. Is it wrong. This is not the case. This is a problem that mplayer has not yet solved. The explanation of Chinese subtitles on the internet is two different things. Chinese letters are the Chinese dialogue at the bottom of the screen when you watch a movie. Wait. I hope this problem can be solved one day, that is, the perfect mplayer! You can try other mplayer front-ends or solve the problem.
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.