LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1760|回复: 14

如何讓mplayer撥rm檔? 如何移除軟體才乾淨?

[复制链接]
发表于 2007-6-19 19:48:55 | 显示全部楼层 |阅读模式
你好! 我的系統是fedora 6, 因為不懂所以不大會問問題, 請多包含:
在用 #yum remove mplayer 移除mplayer後, root資料夾裡還留有隱藏的.mplayer資料夾,
我可以直接將.mplayer資料夾砍掉嗎?
系統留下,mplayer, 表示yum remove移除不乾淨嗎?
那麼, 往後軟體要怎樣才能"乾淨移除"?

另外, /usr/local/lib/codecs資料夾是mplayer專屬的嗎? 還是其他播放軟體也會用到/usr/local/lib/codecs裡的資料?

我照網路上的作法, 將 http://www.mplayerhq.hu/MPlayer/releases/codecs/ 裡的all-20061022.tar.bz2和windows-all-20061022.zip拷貝到/usr/local/lib/codecs裡, 但mplayer還是不能播放rm檔. 誰能教教我?

還有, 我在拷貝20061022.tar.bz2和windows-all-20061022.zip到/usr/local/lib/codecs裡的時候, 有數十個檔案codecs資料夾裡本來就有了, 但我不知道哪個新哪個舊, 所以我把20061022.tar.bz2和windows-all-20061022.zip的所有檔案都覆蓋到codecs上, 這樣對嗎?
发表于 2007-6-19 20:31:50 | 显示全部楼层
楼主是台湾的朋友吗?
.mplayer文件夹保存了你的mplayer配置,你可以删掉没什么影响

另外win32codec解码器可以从fedora-cn直接yum安装,这个论坛里面有讲,请看置顶贴!

或者在http://www.mplayerhq.hu/MPlayer/ ... 下载下列rpm包:
mplayer-codecs-20061022-1.i386.rpm 和mplayer-codecs-extra-20061022-1.i386.rpm 可可以达到同样的效果!
回复 支持 反对

使用道具 举报

发表于 2007-6-19 21:15:20 | 显示全部楼层
目前看来,没法那么完全的清除干净

无法播放rm,应该是SElinux的问题,个人使用的话,目前看来,禁用之可也
回复 支持 反对

使用道具 举报

发表于 2007-6-19 21:31:35 | 显示全部楼层

用户目录下的.mplayer是运行mplayer后自动生成的,
包括一些用户配置文件,
有它存在是正常的,不能说mplayer没移除掉。

从MPlayer网站下载的解码文件包需要解压缩,
然后加其下的解码文件复制到/usr/local/lib/codecs下,
这个目录是mplayer寻找codec文件的默认路径,
统统放在这里没问题。

原则上还是新的codec文件好用,
因为你是自己编译所以当然要用新一点的,
覆盖原有的codec文件没问题。
回复 支持 反对

使用道具 举报

发表于 2007-6-19 22:45:50 | 显示全部楼层
在终端模式下面利用mplayer打开rm文件,看看具体的提示是什么。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-21 17:32:56 | 显示全部楼层
你好, 我是台灣來的, 很高興認識你.
root底下所有.XXX資料夾, 都和.mplayer一樣, 是用來存放各個應用軟體使用者配置?
/usr/local/lib/codecs資料夾, 只有mplayer會用到?
我將 http://www.mplayerhq.hu/MPlayer/releases/codecs/ 裡的win32codecs-20040703.tar.bz2檔, 解壓縮放到/usr/local/lib/codecs裡.
在gui mode下播放rm檔, 但mplayer沒影像也沒聲音.
在終端機下運行有聲音但沒影像, 顯示結果:
[Desktop]# mplayer rmtest.rmvb
MPlayer SVN-r23545 rpm.livna.org (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) D CPU 3.06GHz (Family: 15, Model: 6, Stepping: 5)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rmtest.rmvb.
REAL file format detected.
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
[real] Audio stream found, -aid 0
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
[real] Video stream found, -vid 1
Stream mimetype: logical-fileinfo
VIDEO:  [RV40]  560x420  24bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
author: YDY_tokeda
copyright: www.ydy.com
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
Error: libstdc++.so.5: cannot open shared object file: No such file or directory
Win32 LoadLibrary failed to load: drvc.so, /usr/lib/codecs/drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
Error loading dll
ERROR: Could not open required DirectShow codec drvc.so.
Read the RealVideo section of the DOCS!
VDecoder init failed
Opening video decoder: [realvid] RealVideo decoder
Win32 LoadLibrary failed to load: drvc.dll, /usr/lib/codecs/drvc.dll, /usr/lib/win32/drvc.dll, /usr/local/lib/win32/drvc.dll
Error loading dll
ERROR: Could not open required DirectShow codec drvc.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib/codecs/drv4.so.6.0: cannot restore segment prot after reloc: Permission denied
Win32 LoadLibrary failed to load: drv4.so.6.0, /usr/lib/codecs/drv4.so.6.0, /usr/lib/win32/drv4.so.6.0, /usr/local/lib/win32/drv4.so.6.0
Error loading dll
ERROR: Could not open required DirectShow codec drv4.so.6.0.
Read the RealVideo section of the DOCS!
VDecoder init failed
Opening video decoder: [realvid] RealVideo decoder
Win32 LoadLibrary failed to load: drv43260.dll, /usr/lib/codecs/drv43260.dll, /usr/lib/win32/drv43260.dll, /usr/local/lib/win32/drv43260.dll
Error loading dll
ERROR: Could not open required DirectShow codec drv43260.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
Win32 LoadLibrary failed to load: drvc.bundle/Contents/MacOS/drvc, /usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc, /usr/lib/win32/drvc.bundle/Contents/MacOS/drvc, /usr/local/lib/win32/drvc.bundle/Contents/MacOS/drvc
Error loading dll
ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
Read the RealVideo section of the DOCS!
VDecoder init failed
Cannot find codec matching selected -vo and video format 0x30345652.
Read DOCS/HTML/en/codecs.html!
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 32.0 kbit/2.27% (ratio: 4005->176400)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   4.9 (04.9) of 1325.0 (22:05.0)  1.3%                                                                                                                    

MPlayer interrupted by signal 2 in module: play_audio
[root@210-244-15-113 Desktop]#



我之前複蓋過很多codecs, 程式會不會被我弄亂了? 要重灌mplayer嗎? 怎麼重灌yum remove mplayer?
any solutions?   thank for your help!
回复 支持 反对

使用道具 举报

发表于 2007-6-21 18:26:38 | 显示全部楼层
SELinux的问题。。。禁用之
回复 支持 反对

使用道具 举报

发表于 2007-6-22 01:43:53 | 显示全部楼层
no need to remove/reinstall mplayer, what you need is just to set proper security context for those codec files. run command:

  1. chcon -t textrel_shlib_t /usr/local/lib/drv*so*
复制代码

and remember you should always use the latest codec files, whether you compile and install mplayer youself, or install rpm packages from yum repos. the codecs package all-20061022.tar.bz2 and windows-all-20061022.zip are all you need.
good luck
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-22 02:41:31 | 显示全部楼层
你好, 我再次解開all-20061022.tar.bz2和windows-all-20061022.zip裡的檔案, 覆蓋到/usr/local/lib/codecs資料夾裡.
接著在/usr/local/lib/codecs路徑下執行#chcon -t textrel_shlib_t /usr/local/lib/codecs/drv*so*
還是不能播放rm或rmvb.
我在mplayer/preference/video裡, 選:
xv     X11/Xv
x11  X11 (Xlmage/Shm )
gl     X11 (OpenGL)
播放時都出現: cannot find codec matching selected -vo and video format 0x30345652.
選:
gl2        X11 (OpenGL) - multiple texturse version
dxr3     DXR3/H+ video out
xvidix   X11(VIDIX)
xvmc    XVideo Motion Compensation
播放時都出現: Error opening/initializing the selected video_out (-vo) device.


還有辦法嗎? 再不行就暫時放棄, 先玩別的!
回复 支持 反对

使用道具 举报

发表于 2007-6-22 11:00:23 | 显示全部楼层
我在mplayer/preference/video裡, 選:
xv     X11/Xv
x11  X11 (Xlmage/Shm )
gl     X11 (OpenGL)
播放時都出現: cannot find codec matching selected -vo and video format 0x30345652.
選:
gl2        X11 (OpenGL) - multiple texturse version
dxr3     DXR3/H+ video out
xvidix   X11(VIDIX)
xvmc    XVideo Motion Compensation
播放時都出現: Error opening/initializing the selected video_out (-vo) device.


我的也是出现这种问题,不知道要怎么解决?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表