正在加载...

CentOS 为采用不同格式压缩的音效档提供基本的支持,包括 .wav 及 .ogg 文件。当中所提供的 alsa-utils 及 sox 音效播放器是为 cron 或文字界面的环境而设;xmms 则可以轻松地用 SRPM 重建。这个受欢迎且功能齐备的 xmms 的播放器很可能是由于所谓的 Fraunhofer 限制及满足非免费的专利条件而被上游删去。

对于那些不受以上司法权所管辖的用户,下列的步骤会解释如何在 CentOS 5 设置多媒体的支持。当你完成以下步骤,便应该可以在你的计算机上播放 DVD。你亦会能够观赏不同媒体格式,例如:Xvid、dvix、quicktime 等。你更会整合 mplayer 作为浏览器的插件,藉此在 Firefox 内观赏流视频/音频。

值得在此一提的是推荐使用 yum 的 priorities 插件。它能防止意外地取替了来自 base 软件库的组件。另外请注意以下的指令必须以 root 的身份在命令行或终端機内执行。

请参考文章RHEL/CentOS 5.5使用第三方软件库(EPEL与RPMForge软件库)

来设置 priorities 插件,因为我们将会加入某些第三方软件库。

第一步:加入 RPMforge 软件库(是大多数的多媒体文件所需的)

# rpm -Uhv http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

假若你采用 CentOS 4,你应该使用 el4 组件。

第二步:加入 Macromedia 软件库(选择性提供 flash 支持)

# rpm -Uhv http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm

就算你没有加入 Macromedia 软件库,下面仍能从 RPMforge 安装 flash。

第三步:安装多媒体应用程序(用命令行安装所需组件)

下列步骤会使用 yum 组件管理员来安装所有提供支持的软件。请注意当中会有很多依赖组件

# yum install libdvdcss libdvdread libdvdplay libdvdnav lsdvd mplayerplug-in mplayer mplayer-gui compat-libstdc++-33 flash-plugin gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg libquicktime

第四步:安装 w32Codecs(是 xvid 及其它专用格式所需的)

# wget www.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.i386.rpm
# rpm -ivh mplayer-codecs-20061022-1.i386.rpm

# wget www.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.i386.rpm
# rpm -ivh mplayer-codecs-extra-20061022-1.i386.rpm

你现在的系统拥有了针对常用的多媒体及视频格式的全面支持。

假若你在播放视频时遇到问题(例如播放器关掉或你看不到影像),请尝试停用 系统 > 首选项> 桌面效果(Compiz),看看这样能否解决你的问题。

参考文档:http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS

http://www.mplayerhq.hu/MPlayer/releases/codecs/

: http://www.ha97.com/2627.html

本文相关评论 - 才 2 条评论
ads
2011-03-02 21:16:53
Firefox 3.6.13 Firefox 3.6.13 CentOS 5 CentOS 5

我用的是CentOS 5.2升级到5.5的。
我按照上边地方法安装时出现了依赖错误:

gstreamer-plugins-ugly-0.10.11-2.el5.rf.i386 from rpmforge has depsolving problems
–> Missing Dependency: libdvdread.so.3 is needed by package gstreamer-plugins-ugly-0.10.11-2.el5.rf.i386 (rpmforge)
mjpegtools-1.9.0-1.el5.rf.i386 from rpmforge has depsolving problems
–> Missing Dependency: libSDL_gfx.so.13 is needed by package mjpegtools-1.9.0-1.el5.rf.i386 (rpmforge)
Error: Missing Dependency: libSDL_gfx.so.13 is needed by package mjpegtools-1.9.0-1.el5.rf.i386 (rpmforge)
Error: Missing Dependency: libdvdread.so.3 is needed by package gstreamer-plugins-ugly-0.10.11-2.el5.rf.i386 (rpmforge)
You could try using –skip-broken to work around the problem
You could try running: package-cleanup –problems
package-cleanup –dupes
rpm -Va –nofiles –nodigest
The program package-cleanup is found in the yum-utils package.

请问怎么解决

2011-03-03 10:32:29
Google Chrome 9.0.597.107 Google Chrome 9.0.597.107 Windows 7 Windows 7

这个是你升级之后一些软件包依赖关系出错了,在后面加–skip-broken参数就可以了。
如 yum install xxx –skip-broken