totem成爲萬能播放器

只要安裝我上面所說的做,基本上就可以播放所有的多媒體格式,包括對Real公司(rm等格式的支持)和Apple公司的和Microsoft公司的都能很好的支持,包括本地播放和網絡在線播放。
在安裝前請先安裝RPM Fusion源:
Fedora 8, 9 or 10:
su -c 'rpm -Uvh
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'
#P#
(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)、安裝所有的多媒體解碼器
請大家到我上傳的地址去下載(我把所有的多媒體解碼器都打成一個包了)
或者:
目前最新的是all-20071007.tar.bz2。
把從上面下載回來的包解壓出來,解壓出來後進入進入終端
輸入su在輸入root密碼 //獲得root
cd /輸入你所解壓的目標 //進入你所解壓的目標
chmod u+x *
cp * /usr/lib/codecs/
運行ldconfig命令
#P#
(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還是不可以播放。
#P#
提示說
概述:
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
允許訪問:
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 軟件包
#P#
策略 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了,不過速度好像不快。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章