fedora 16 安装mplayer

来源:互联网 发布:代理服务器ip和端口 编辑:程序博客网 时间:2024/05/01 09:20

You will have to add RPM Fusion and Livna repositories if you want to install mplayer with tools like yum and PackageKit. Livna repository can be added with the following commands:

# install Livna repository with the yum command
yuminstalllivna
# or add Livna directly with the rpm command (use --httpproxy for proxy settings)
rpm -ivh http://rpm.livna.org/livna-release.rpm

I couldn't find proxy switch for yum command, but proxy settings can be written to the /etc/yum.conf file. If you sit behind proxy, please add few lines to the yum.conf

# add proxy settings for yum
proxy=http://your.proxy.name:1234
proxy_username=your_domain\your_username
proxy_password=your_password

Fedora Core 9 with Livna repository were enough to install mplayer or vlc, because Livna contained them. Recently Livna merged with RPM Fusion and almost all rpm packages moved from Livna to the RPM Fusion. To install mplayer in Fedora Core 10, you will have to add RPM Fusion repository too. You can find detailed instruction for RPM Fusion installation on http://rpmfusion.org/Configuration and there you will find the following commands:

# add RPM Fusion repository with the rpm command
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

If you have proxy problems, try with --httpproxy. If you still have problems, you can manually download freeand nonfree repositories to the local directory, and then start rpm like:

rpm -Uvh rpmfusion-free-release-stable.noarch.rpm rpmfusion-nonfree-release-stable.noarch.rpm

Now Fedora Core 10 should be able to install rpm packages from the RPM Fusion repository and Livna repository. Don't forget to add proxy settings to the /etc/yum.conf if needed.

And small issue before the end. Instead of playing AVI, mplayer gave me the following message:

Error opening/initializing the selected video_out (-vo) device

The solution was to change output video device in mplayer-gui to xv , gl , ... (depends on your video hardware but in general, xv should work):

view plain
  1. mplayer-gui -> Preferences -> Video -> xv  

Cheers!

我一般都是装smplayer,是mplayer的前端,比mplayer-gui好用多了
yum install smplayer


# install RPM packages
yuminstallmplayer-gui
yuminstallxine
yuminstallvlc
原创粉丝点击