红联Linux门户
Linux帮助

安装mplayer很简单

发布时间:2008-01-03 00:48:36来源:红联作者:Dazkj
原创:dl59

安装livna 源
#rpm -ivh http://rpm.livna.org/livna-release-8.rpm

安装 mplayer
#yum install mplayer mplayer-gui mplayer-fonts mplayerplug-in mencoder compat-libstdc++-33

安装 codecs
http://www.mplayerhq.hu/MPlayer/releases/codecs/ 下载 all-20071007.tar.bz2
#mkdir -p /usr/lib/codecs
#tar -jxvf all-20071007.tar.bz2 --strip-components 1 -C /usr/lib/codecs/

解决RMVB解码文件与selinux类型与调用类型不一致。
#chcon -t textrel_shlib_t /usr/lib/codecs/drvc.so
#chcon -t textrel_shlib_t /usr/lib/codecs/drv2.so.6.0
#chcon -t textrel_shlib_t /usr/lib/codecs/drv3.so.6.0
#chcon -t textrel_shlib_t /usr/lib/codecs/drv4.so.6.0

使mplayerplug-in (mozilla插件) 生效
#/usr/bin/mozilla-plugin-config -i -f

mplayer-1.0rc2无法播放中文名文件
修改/usr/share/applications/livna-mplayer.desktop中,将exec=gmplayer %U改为gmplayer %f即可。

mplayer的audio问题
[AO_ALSA] Unable to find simple control 'PCM',0.
把audio输出设置为pulse或其他

这样应该没什么问题了
文章评论

共有 7 条评论

  1. qianyou 于 2008-01-05 21:13:14发表:

    #/usr/bin/mozilla-plugin-config -i -f 是否可用以下代替:
    打开/etc/mplayerplug-in.conf
    把下面的选项都设置为1,
    代码:
    use-mimetypes=1
    enable-real=1
    enable-wm=1
    enable-qt=1
    enable-mpeg=1
    enable-ogg=1
    enable-smil=1

  2. qianyou 于 2008-01-05 21:11:50发表:

    #/usr/bin/mozilla-plugin-config -i -f
    这一步时出错
    *** NSPlugin Viewer *** ERROR: libxpcom.so: cannot open shared object file: No such file or directory
    怎么回事啊?

  3. wstxws.001 于 2008-01-05 15:52:55发表:

    使mplayerplug-in (mozilla插件) 生效
    #/usr/bin/mozilla-plugin-config -i -f
    这一步时出错
    *** NSPlugin Viewer *** ERROR: libxpcom.so: cannot open shared object file: No such file or directory
    怎么回事啊?该怎么办呢?

  4. 奶茶dsk 于 2008-01-04 09:59:22发表:

    引用:
    原帖由 catman001 于 2008-1-4 09:50 发表
    问个弱问题:
    livna 是什么?
    安装 mplayer yum后面怎么跟那么多软件包?
    为什么安装完mplay后还需要安装codes?

    (6)m:b

    -----一个源站点。。
    -----需要安装字体,界面,或者还有一些库文件。。
    -----安装完后当然要安装解码器。。

  5. catman001 于 2008-01-04 09:50:55发表:

    问个弱问题:
    livna 是什么?
    安装 mplayer yum后面怎么跟那么多软件包?
    为什么安装完mplay后还需要安装codes?

    (6)m:b

  6. 笨小孩 于 2008-01-03 23:12:47发表:

    学习.....

  7. relaaxx 于 2008-01-03 10:56:28发表:

    自己实践过吗?要不然可能会有问题.