The following procedures will help you setup multimedia support under CentOS 5. After completing the steps below, you should be able to play dvds on your computer. You'll also be able to view different media formats, for example Xvid, dvix, quicktime etc. You will also have mplayer integrated as a browser plugin which will allow you to view streaming video/audio content from within Firefox.
Some recommendations should be mentioned pertaining to the yum priorities plug-in. This will prevent accidentally overwriting packages from the base repositories. Also note the following needs to be performed as root user in a command line or terminal.
Please consider following the wiki document to assist in setting up the priorities plug-in, due to the fact that we are adding some third party repositories.
http://wiki.centos.org/PackageManagement/Yum/Priorities
Step 1: Add the Rpmforge Repo (needed for majority of multimedia files)
rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
" src="http://wiki.centos.org/wiki/modern-CentOS/img/attention.png" title="" height="15" width="15"> If you are running CentOS 4, you should use the el4 package. See CentOS Repositories
Step 2: Add the Macromedia Repo (needed for flash)
rpm -Uhv http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
Step 3: Install Multimedia Applications (command line to install required packages)
The following steps will use the yum package manager to install all the binaries needed to have full multimedia support. Note there will be a lot of dependencies
yum install libdvdcss libdvdread libdvdplay livdvdnav lsdvd mplayerplug-in mplayer mplayer-gui compat-libstdc++-33 flash-plugin gstreamer-plugins-bad gstreamer-plugins-ugly libquicktime
Step 4: Installing 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.rpmYou should now have full multimedia and video support for most popular formats.
wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.i386.rpm; rpm -ivh mplayer-codecs-extra-20061022-1.i386.rpm
mplayer 播放rmvb,rm没有图像只有声音
把selinux设置一下就好了
chcon -t textrel_shlib_t /usr/lib/codecs/drvc.so
chcon -t textrel_shlib_t /usr/lib/codecs/drv4.so.6.0
......
等等的都设置一下
mplayer播放rm、rmvb都没有问题,
没有评论:
发表评论