1.到rpmfusion下载以下几个rpm包,由于本人教育网更新源无法连接到freshrpm之类的源,所以只能自行下载安装,对于更新源好的用户,直接#yum install *mplayer*,一键就可以搞定了。
没有办法,教育网,只能一步一步来。
mencoder-1.0-0.109.20090329svn.fc11.x86_64.rpm (解码器,支持更多的多媒体格式)
mplayer-1.0-0.109.20090329svn.fc11.x86_64.rpm (主安装文件)
mplayer-doc-1.0-0.109.20090329svn.fc11.x86_64.rpm
mplayer-gui-1.0-0.109.20090329svn.fc11.x86_64.rpm (图形接口,安装过后直接在应用程序--影音那里就有显示了)
smplayer-0.6.7-1.fc11.x86_64.rpm (基于Mplayer的另一款播放器,顺便下载了)
vdr-mplayer-0.10.1-7.fc11.x86_64.rpm
2.开始安装:
# rpm -ivh mplayer-1.0-0.109.20090329svn.fc11.x86_64.rpm #先安装其主程序
warning: mplayer-1.0-0.109.20090329svn.fc11.x86_64.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 8fcff4da
error: Failed dependencies:
faad2-libs >= 1:2.6.1 is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
libBasicUsageEnvironment.so.0()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
libUsageEnvironment.so.0()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
libdca.so.0()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
libdvdnavmini.so.4()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
libenca.so.0()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
libfaad.so.2()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
libfribidi.so.0()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
libgroupsock.so.0()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
libliveMedia.so.0()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
liblzo2.so.2()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
libxvidcore.so.4()(64bit) is needed by mplayer-1.0-0.109.20090329svn.fc11.x86_64
又出现了RPM特有的依赖关系,只能到google或者rpmfind,rpmfresh之类的地方搜索。对应一个一个下载。继续rpm -ivh XXX.rpm,反正碰到诸如此类的rpm依赖关系首先就是 yum install XXX,其次再到其它地方寻找。
......
#rpm -ivh faad2-libs-2.7-1.fc11.x86_64.rpm
# rpm -ivh libdca-0.0.5-4.fc11.x86_64.rpm
# rpm -ivh enca-1.9-4.37.x86_64.rpm
# rpm -ivh recode-3.6-639.1.x86_64.rpm
# rpm -ivh enca-1.9-4.37.x86_64.rpm
# rpm -ivh live555-0-0.23.2009.04.07.fc11.x86_64.rpm
# rpm -ivh fribidi-0.10.9-57.15.x86_64.rpm
# rpm -ivh xvidcore-1.2.1-3.fc11.x86_64.rpm
# rpm -ivh libdvdnav4-4.1.3-1.32.x86_64.rpm
......
不同的运行环境,可能情况不尽相同。在这里只是举例供参考。
3.解决了主程序的依赖关系后其它的就很好解决了。可能在安装解码器的时候碰到比较多的问题,或者可以选择不安装解码器。现在Mplayer已经可以运行了,只是支持的多媒体格式不够多,比如我们中国人看的电影的主要格式.rmvb
可以到网上下载解码器包,比如我下载的是这个essential-amd64-20071007.tar.bz2。接下来就是解压缩复制到
/usr/lib64/codecs下面,对于32位,应该在/usr/lib/codecs下面。
#tar -jxvf essential-amd64-20071007.tar.bz2
#cd essential-amd64-20071007
#cp *so /usr/lib64/codecs
到此Mplayer就完全安装完毕,看了一下,它支持的多媒体格式确实是非常多,不愧是linux下的万能播放器。
阅读(2119) | 评论(0) | 转发(0) |