您的位置:首页 > 运维架构 > Linux

解决CentOS系统下浏览器不能在线听歌的问题

2012-10-18 06:39 411 查看
问题:

CentOS 6的Linux操作系统,其自带的firefox或者google chrome都不能在线听歌,会提示:

A Advanced Streaming Format (ASF) demuxer plugin is required,然后选择search后显示查找失败。

解决方案:

Step 1. Install RPMforge
for CentOS 6

http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01

The default RPMforge repository does not replace any CentOS base packages. In the past it used to, but those packages are now in a separate repository (rpmforge-extras) which is disabled by default.

You can find a complete listing of the RPMforge package packages at http://packages.sw.be/

Download the rpmforge-release package. Choose one of the two links below, selecting to match your host's architecture. If you are unsure of which one to use you can
check your architecture with the command uname -i

i686 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

x86_64 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

The preferred rpmforge-release package to retrieve and to install in order to enable that repository is one of the two listed above.

Install DAG's GPG key
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt[/code] 
If you get an error message like the following the key has already been imported:
error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: key 1 import failed.


Verify the package you have downloaded
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm



Security
warning: The rpmforge-release package imports GPG keys into your RPM database. As long as you have verified the md5sum of
the key injection package, and trust Dag, et al., then it should be as safe as your trust of them extends.

Install the package
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm


This will add a yum repository config file and import the appropriate GPG keys.

Then try to install something like this
yum install htop


Step 2. Install the multimedia applications.
http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS

The following steps will use yum to install all the packages needed to have full multimedia support. Note there will be a lot of dependencies.
yum install compat-libstdc++-33 libdvdcss libdvdread libdvdplay libdvdnav lsdvd libquicktime
yum install flash-plugin mplayerplug-in mplayer mplayer-gui gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly


Step 3: Install the w32Codecs. (Required for xvid and other proprietary formats.)
wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.i386.rpm
rpm -ivh mplayer-codecs-20061022-1.i386.rpm
wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.i386.rpm
rpm -ivh mplayer-codecs-extra-20061022-1.i386.rpm


You should now have full multimedia and video support for most popular formats.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: