故障原因: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/。
我的出錯信息如下 複製內容到剪貼板 代碼: 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等類似目錄下。
錯誤2:Could not open required DirectShow codec drv4..so.6.0 解決: 詳見: http://www.linuxdiyf.com/bbs/thread-72529-1-2.html
ERROR:Could not open required DirectShow codec drvc.so Linux Fedora8 環境下運行Mplayer出現提示: ERROR:Could not open required DirectShow codec drvc.so.」錯誤 運行: ldd /usr/lib/codecs/drvc.so 得到
ldd /usr/lib/codecs/drvc.so linux-gate.so.1 => (0x00110000) libstdc++.so.5 => not found libc.so.6 => /lib/libc.so.6 (0x00162000) /lib/ld-linux.so.2 (0x008ea000)