歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Fedora 8中讓Mplayer播放rmvb格式文件

Fedora 8中讓Mplayer播放rmvb格式文件

日期:2017/2/28 17:11:16   编辑:Linux教程

適用平台:Fedora 8 64位系統驗證通過。

故障原因:yum方式安裝了mplayer。下載了all-codecs解碼包,解壓到readme中所說的/usr/local/lib/codecs/目錄仍然不能播放rmvb。只有聲音沒有圖像,提示Cannot find codec matching selected -vo and video format 0x30345652。其實mplayer官方的解碼包名稱模糊,all-codecs並不含有rmvb解碼所需的全部解碼器。另外由於非源碼安裝的mplayer路徑並不是/usr/local/lib/codecs/。


解決方法:正確安裝適用64位系統的解碼器

解決步驟:

1、從http://www.mplayerhq.hu/MPlayer/releases/codecs/下載下面四個文件

all-20071007.tar.bz2

essential-amd64-20071007.tar.bz2

windows-all-20071007.zip

windows-essential-20071007.zip


2、在命令行模式下用mplayer播放一個rmvb格式的文件,注意查看出錯信息,看mplayer是從哪兒讀取的插件。

我的出錯信息如下

Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib64/codecs/drvc.so:
cannot open shared object file: No such file or directory
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
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/lib64/codecs/drv4.so.6.0:
cannot open shared object file: No such file or directory
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
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/lib64/codecs/drvc.bundle/Contents/MacOS/drvc:
cannot open shared object file: No such file or directory
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!

所以我的mplayer解碼目錄是/usr/lib64/codecs

3、將上述4個文件解壓到你自己的mplayer提示目錄即可(例如,我的系統就將4個文件解壓到/usr/lib64/codecs目錄)。

注意事項:

1、實際上播放rmvb只要幾個文件,將所有的解碼器放在一起是防止播放其他文件出
現類似問題。

2、所有的文件直接在codecs目錄下,而不是在codecs/all-20071007等類似目錄下。

Copyright © Linux教程網 All Rights Reserved