|
|
装了ATI的驱动以后,用gl2方式放视频效果好多了,刚装完时普通用户还是可以放的,重启后就不行了,提示"ADecoder preinit failed ",只有声音,没有图像,放AVI的可以。在终端下先用root测试,显示如下:- cqj:/home/catman# mplayer -vo gl2 test.rmvb
- MPlayer 1.0rc2-4.2.1-DFSG-free (C) 2000-2007 MPlayer Team
- CPU: AMD Sempron(tm) 2500+ (Family: 6, Model: 8, Stepping: 1)
- CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
- 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 test.rmvb.
- REAL file format detected.
- Stream description: Video Stream
- Stream mimetype: video/x-pn-realvideo
- [real] Video stream found, -vid 0
- Stream description: Audio Stream
- Stream mimetype: audio/x-pn-realaudio
- [real] Audio stream found, -aid 1
- Stream mimetype: logical-fileinfo
- VIDEO: [RV40] 384x288 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
- Clip info:
- name: test
- author: PoonTszTao
- copyright: (C) 2005 TVB
- ==========================================================================
- Opening video decoder: [realvid] RealVideo decoder
- Selected video codec: [rv3040] vfm: realvid (Linux RealPlayer 10 RV30/40 decoder)
- ==========================================================================
- ==========================================================================
- Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
- FAAD: compressed input bitrate missing, assuming 128kbit/s!
- AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
- Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
- ==========================================================================
- AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
- Starting playback...
- VDec: vo config request - 384 x 288 (preferred colorspace: Planar I420)
- Could not find matching colorspace - retrying with -vf scale...
- Opening video filter: [scale]
- VDec: using Planar I420 as output csp (no 0)
- Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
- [swscaler @ 0x88d54b0]SwScaler: using unscaled yuv420p -> bgr24 special converter
- VO: [gl2] 384x288 => 384x288 BGR 24-bit
- [gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
- [gl2] antialiasing off
- [gl2] bilinear linear
- A: 1.4 V: 3.0 A-V: -1.630 ct: -0.132 34/ 34 33% 42% 1.2% 9 0
- Exiting... (Quit)
复制代码 可以正常播放,换了普通用户就不行了,结果是这样的:- catman@cqj:~$ mplayer -vo gl2 test.rmvb
- MPlayer 1.0rc2-4.2.1-DFSG-free (C) 2000-2007 MPlayer Team
- CPU: AMD Sempron(tm) 2500+ (Family: 6, Model: 8, Stepping: 1)
- CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
- 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 test.rmvb.
- REAL file format detected.
- Stream description: Video Stream
- Stream mimetype: video/x-pn-realvideo
- [real] Video stream found, -vid 0
- Stream description: Audio Stream
- Stream mimetype: audio/x-pn-realaudio
- [real] Audio stream found, -aid 1
- Stream mimetype: logical-fileinfo
- VIDEO: [RV40] 384x288 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
- Clip info:
- name: test
- author: PoonTszTao
- copyright: (C) 2005 TVB
- ==========================================================================
- Opening video decoder: [realvid] RealVideo decoder
- Error: /usr/lib/codecs/drvc.so: cannot open shared object file: Permission denied
- 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 open shared object file: 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: [faad] AAC (MPEG2/4 Advanced Audio Coding)
- FAAD: compressed input bitrate missing, assuming 128kbit/s!
- AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
- Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
- ==========================================================================
- AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
- Video: no video
- Starting playback...
- A: 1.5 (01.4) of 458.0 (07:38.0) 1.1%
- Exiting... (Quit)
复制代码
在网上找了一下,没搜索到有用的信息。是不是和我将codecs目录下所有的文件加上 x 权限有关呀?因为我用“/usr/share/mplayer/scripts/binary_codecs.sh”这个脚本重新安装解码器后又可以放了。 |
|