Compilation and installation of mplayer for fedora

Source: Internet
Author: User
Tags rpmbuild

 

This text refer to http://fedora.linuxsir.org/main/src.spec.html

MPLAYER rpm can be downloaded here: http://rpmfusion.org/

========================================================== ==========

Four steps in total! <Br/> 1. Download the source RPM from: <br/> # wget http://download1.rpmfusion.org/free/fedora/releases/13/Everything/source/SRPMS/mplayer-1.0-0.116.20100424svn.fc13.src.rpm <br/> 2. Pre-installation, in fact, is to extract the package, this package is decompressed ~ /Rpmbulid. <br/> $ sudo rpm-IVH mplmplayer-1.0-0.116.20100424svn.fc13.src.rpm <br/> 3. use the installation script mplayer. spec automatically compiles the desired mplayer. rpm <br/> $ Cd ~ /Rpmbuild/specs/<br/> $ sudo rpmbuild-Ba mplayer. spec <br/> Note:-Ba build binary and source packages <br/> 4. the compiled rpm is in ~ /Rpmbuild/RPMS/i386. Now we will install it! <Br/> $ LS ~ /Rpmbuild/RPMS/i386/; Cd ~ /Rpmbuild/RPMS/i386/<br/> mencoder-1.0-0.116.20100424svn.fc13.i386.rpm <br/> mplayer-1.0-0.116.20100424svn.fc13.i386.rpm <br/> mplayer-common-1.0-0.116.20100424svn.fc13.i386.rpm <br/> mplayer-doc-1.0-0.116.20100424svn.fc13.i386.rpm <br/> mplayer-gui-1.0-0.116.20100424svn.fc13.i386.rpm <br/> mplayer-tools-1.0-0.116.20100424svn.fc13.i386.rpm <br/>/> $ sudo rpm-IVH mencoder-1.0-0.116.20100424svn.fc13.i386.rp M mplayer-1.0-0.116.20100424svn.fc13.i386.rpm mplayer-common-1.0-0.116.20100424svn.fc13.i386.rpm mplayer-doc-1.0-0.116.20100424svn.fc13.i386.rpm mplayer-gui-1.0-0.116.20100424svn.fc13.i386.rpm mplayer-tools-1.0-0.116.20100424svn.fc13.i386.rpm <br/> [Sudo] password for ahui: <br/> preparing... ######################################## ### [100%] <br/> 1: mplayer-common ################################## ######### [17%] <br/> 2: mplayer-Doc ##################################### ###### [33%] <br/> 3: mencoder ####################################### #### [50%] <br/> 4: mplayer ####################################### #### [67%] <br/> 5: mplayer-Gui ##################################### ###### [83%] <br/> 6: mplayer-tools ##################################### ###### [100%] <br/> ======================== = ====================< Br/> many dependency problems may occur during the installation process. Here I will explain my experience, for example, if you are prompted to depend on pulseaudio-libs-devel <br/> 1. use Yum install ***. We recommend that you first use this command to search for: Yum search *** <br/>. Search for the corresponding package through the network, for example, get *. rpm. We recommend that you use Yum to install the local RPM package, which will help you solve a lot of dependency problems: <br/> Yum localinstall VirtualBox-3.1-3.1.0_55467_fedora12-1.i686.rpm <br/> 2. 2. if the above command does not support GPG detection. <Br/> Yum localinstall VirtualBox-3.1-3.1.0_55467_fedora12-1.i686.rpm -- nogpgcheck <br/> 3. Sometimes we cannot find the corresponding package, such as no *. So. In this case, if you install certain rpm, this * is included *. so. then we will install this RPM directly. <br/> here are a few good places to search for RPM: <br/> http://rpm.pbone.net/http://fr2.rpmfind.net/Google <br/> 

========================================================== ==========================================

The following content is for reference only:

1. You may encounter a problem where you cannot play a video.

Modify: vim ~ /Mplayer/gui. conf # Use text editing tools such as gedit and nano.

Find the related candidate and set it

Vo_driver = "x11"

 

2 cocould not open required directshow codec wmvdmod. dll

This is because wmv9dmod. dll is missing. I have provided this file in the package and copied it to the following directory:

 

Sudo mv wmv9dmod. dll/usr/lib/codecs/

 

3 others:

Sudo cp drv43260.dll drvc. dll/usr/lib/codecs/

 

Finally, if you think the default Interface of mplayer is poor, you can download other skins or use kmplayer to indirectly call MPLAYER:

Sudo Yum install kmplayer

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.