Fedora10最佳多媒体播放解决方案

来源:软件水平考试    发布时间:2012-11-05    软件水平考试视频    评论

  好像Fedora 10在默认情况下播放多媒体不容乐观,所以找了一个文章来帮忙!
  只要安装我上面所说的做,基本上就可以播放所有的多媒体格式,包括对Real公司(rm等格式的支持)和Apple公司的和Microsoft公司的都能很好的支持,包括本地播放和网络在线播放。
  在安装前请先安装RPM Fusion源:
  Fedora 8, 9 or 10:
  su -c ’rpm -Uvh
  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
  http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm’
  Fedora 10 X86版
  1、音频播放:
  (1)、安装audacious
  su -c ’yum install audacious audacious-plugins
  audacious-plugins-freeworld audacious-plugins-freeworld-*’
  如果你想要当双击 mp3 文件的时候添加到播放队列,通过下面操作实现:
  su -c ’gedit /usr/share/applications/fedora-audacious.desktop’
  (2)、安装Rhythmbox
  su -c ’yum install gstreamer rhythmbox’
  添加 mp3和其他音频支持输入:
  su -c ’yum install gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly’
  2、DVD和视频播放:
  (1)、DVD 播放
  为了能播放dvd你应该现安装适当的解码器:
  su -c ’yum install libdvdread libdvdnav lsdvd’
  (2)、视频文件播放
  su -c ’yum install ffmpeg ffmpeg-libs gstreamer-ffmpeg libmatrosca xvidcore’
  (3)、Fedora10已经装了totem了,如果你想用它来放dvd的话,输入:
  su -c ’yum install totem-xine totem-gstreamer xine-lib-extras-freeworld’
  yum install -y xine-lib-extras-nonfree (如果没安装这个totem播放rm有图象没声音)
  yum install -y compat-libstdc++-33 (totem播放出现没图象与没声音)
  *要为整个系统将默认后端更改为 xine:(这样以后totem就可以使用以下第(5)安装解码器了)
  su -c ’totem-backend -b xine
  (4)、Mplayer/SMPlayer
  我比较喜欢这个播放器.它支持了几乎所有的视频格式,还有字幕,如果你已经安装了前面说的那些解码器了的话:
  su -c ’yum install mplayer smplayer’
  (5)、安装所有的多媒体解码器
  请大家到我上传的地址去下载(我把所有的多媒体解码器都打成一个包了)
  下载地址:http://hedongvip.qupan.com/928601.html
  或者:
  http://www1.mplayerhq.hu/MPlayer/releases/codecs/
  目前最新的是all-20071007.tar.bz2。
  把从上面下载回来的包解压出来,解压出来后进入进入终端
  输入su在输入root密码 //获得root
  cd /输入你所解压的目标 //进入你所解压的目标
  chmod u+x *
  cp * /usr/lib/codecs/
  运行ldconfig命令
  (6)、安装RealPlayer 11来支持在线播放rm rmvb等格式
  (注:安装RealPlayer11是只是为了支持在线播放rm,rmvb格式,如果你不在线播放rm那你可以不安装此播放器,因为只要做完第5步,在本机上播放rm,rmvb完全得行了)
  请点击:
  RealPlayer11
  下载,下载完成后请使用下面命令安装:
  cd /进入RealPlayer11GOLD.rpm下载目标
  su -c ’yum --nogpgcheck localinstall RealPlayer11GOLD.rpm’
  Fedora X86_64位版
  请做Fedora X86的:
  1、音频播放(全做)
  2、DVD和视频播放(第(5)的个请不要做,请使用下面的)
  3、X86_64位要解决totem播放rm播放格式,有声音没有图像:
  请点击
  essential-amd64-20071007.tar.bz2
  下载,解压后COPY到/usr/lib64/codecs;这样以后就可以使用 smplayer或是totem来播放rm)
  使用以下命令:
  cd /解压目录
  chmod u+x *
  cp * /usr/lib64/codecs //现在totem可以播放了rm了。
  totem播放列表乱码解决
  1、修改totem的配置(在终端输入以下命令)
  gedit ~/.gnome2/totem_config
  2 、加上以下两行点保存
  subtitles.separate.font:VeraSansYuanTi
  subtitles.separate.src_encoding:gb18030
  做完上面的这些步骤以后,rmvb还是不可以播放。
  提示说
  概述:
  SELinux is preventing totem from loading /usr/lib/codecs/drvc.so which requires
  text relocation.
  详细描述:
  The totem application attempted to load /usr/lib/codecs/drvc.so which requires
  text relocation. This is a potential security problem. Most libraries do not
  need this permission. Libraries are sometimes coded incorrectly and request this
  permission. The SELinux Memory Protection Tests
  (linux-mem.html">http://people.redhat.com/drepper/selinux-mem.html) web page explains how to
  remove this requirement. You can configure SELinux temporarily to allow
  /usr/lib/codecs/drvc.so to use relocation as a workaround, until the library is
  fixed. Please file a bug report
  (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.
  允许访问:
  If you trust /usr/lib/codecs/drvc.so to run correctly, you can change the file
  context to textrel_shlib_t. "chcon -t textrel_shlib_t ’/usr/lib/codecs/drvc.so’"
  You must also change the default file context files on the system in order to
  preserve them even on a full relabel. "semanage fcontext -a -t textrel_shlib_t
  ’/usr/lib/codecs/drvc.so’"
  Fix 命令:
  chcon -t textrel_shlib_t ’/usr/lib/codecs/drvc.so’
  附加信息:
  源上下文 unconfined_u:unconfined_r:unconfined_t:s0
  目标上下文 unconfined_u:object_r:lib_t:s0
  目标对象 /usr/lib/codecs/drvc.so [ file ]
  源 totem
  源路径 /usr/bin/totem
  端口 未知>
  主机 localhost.wbzhui
  源 RPM 软件包 totem-2.24.3-1.fc10
  目标 RPM 软件包
  策略 RPM selinux-policy-3.5.13-18.fc10
  启用 Selinux True
  策略类型 targeted
  启用 MLS True
  Enforcing 模式 Enforcing
  插件名称 allow_execmod
  主机名 localhost.wbzhui
  平台 Linux localhost.wbzhui 2.6.27.5-117.fc10.i686 #1
  SMP Tue Nov 18 12:19:59 EST 2008 i686 i686
  警报计数 3
  第一个 2008年12月29日 星期一 18时49分34秒
  最后一个 2008年12月29日 星期一 18时59分54秒
  本地 ID d1d48011-bed4-4480-ba42-c3e96e6f5ba5
  行号
  原始核查信息
  node=localhost.wbzhui type=AVC msg=audit(1230548394.517:179): avc: denied { execmod } for pid=2794 comm="totem" path="/usr/lib/codecs/drvc.so" dev=dm-0 ino=355663 scontext=unconfined_u:unconfined_r:unconfined_t:s0 tcontext=unconfined_u:object_r:lib_t:s0 tclass=file
  node=localhost.wbzhui type=SYSCALL msg=audit(1230548394.517:179): arch=40000003 syscall=125 success=no exit=-13 a0=7ad5000 a1=4d000 a2=5 a3=af007c90 items=0 ppid=1 pid=2794 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="totem" exe="/usr/bin/totem" subj=unconfined_u:unconfined_r:unconfined_t:s0 key=(null)
  根据上面的提示,再执行:
  su -c ’chcon -t textrel_shlib_t ’/usr/lib/codecs/drvc.so’’
  su -c ’semanage fcontext -a -t textrel_shlib_t ’/usr/lib/codecs/drvc.so’’
  这样Totem就可以播放rmvb了,不过速度好像不快。

视频学习

我考网版权与免责声明

① 凡本网注明稿件来源为"原创"的所有文字、图片和音视频稿件,版权均属本网所有。任何媒体、网站或个人转载、链接转贴或以其他方式复制发表时必须注明"稿件来源:我考网",违者本网将依法追究责任;

② 本网部分稿件来源于网络,任何单位或个人认为我考网发布的内容可能涉嫌侵犯其合法权益,应该及时向我考网书面反馈,并提供身份证明、权属证明及详细侵权情况证明,我考网在收到上述法律文件后,将会尽快移除被控侵权内容。

最近更新

社区交流

考试问答