LinuxSir.cn,穿越时空的Linuxsir!

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

用 mplayer 播放 RMVB ,root能放但普通用户不能放

[复制链接]
发表于 2007-11-9 07:24:01 | 显示全部楼层 |阅读模式
装了ATI的驱动以后,用gl2方式放视频效果好多了,刚装完时普通用户还是可以放的,重启后就不行了,提示"ADecoder preinit failed",只有声音,没有图像,放AVI的可以。在终端下先用root测试,显示如下:
  1. cqj:/home/catman#  mplayer -vo gl2 test.rmvb
  2. MPlayer 1.0rc2-4.2.1-DFSG-free (C) 2000-2007 MPlayer Team
  3. CPU: AMD Sempron(tm)   2500+ (Family: 6, Model: 8, Stepping: 1)
  4. CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
  5. Compiled with runtime CPU detection.
  6. mplayer: could not connect to socket
  7. mplayer: No such file or directory
  8. Failed to open LIRC support. You will not be able to use your remote control.

  9. Playing test.rmvb.
  10. REAL file format detected.
  11. Stream description: Video Stream
  12. Stream mimetype: video/x-pn-realvideo
  13. [real] Video stream found, -vid 0
  14. Stream description: Audio Stream
  15. Stream mimetype: audio/x-pn-realaudio
  16. [real] Audio stream found, -aid 1
  17. Stream mimetype: logical-fileinfo
  18. VIDEO:  [RV40]  384x288  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
  19. Clip info:
  20. name: test
  21. author: PoonTszTao
  22. copyright: (C) 2005 TVB
  23. ==========================================================================
  24. Opening video decoder: [realvid] RealVideo decoder
  25. Selected video codec: [rv3040] vfm: realvid (Linux RealPlayer 10 RV30/40 decoder)
  26. ==========================================================================
  27. ==========================================================================
  28. Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
  29. FAAD: compressed input bitrate missing, assuming 128kbit/s!
  30. AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
  31. Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
  32. ==========================================================================
  33. AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
  34. Starting playback...
  35. VDec: vo config request - 384 x 288 (preferred colorspace: Planar I420)
  36. Could not find matching colorspace - retrying with -vf scale...
  37. Opening video filter: [scale]
  38. VDec: using Planar I420 as output csp (no 0)
  39. Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
  40. [swscaler @ 0x88d54b0]SwScaler: using unscaled yuv420p -> bgr24 special converter
  41. VO: [gl2] 384x288 => 384x288 BGR 24-bit
  42. [gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
  43. [gl2] antialiasing off
  44. [gl2] bilinear linear
  45. A:   1.4 V:   3.0 A-V: -1.630 ct: -0.132  34/ 34 33% 42%  1.2% 9 0
  46. Exiting... (Quit)
复制代码
可以正常播放,换了普通用户就不行了,结果是这样的:
  1. catman@cqj:~$ mplayer -vo gl2 test.rmvb
  2. MPlayer 1.0rc2-4.2.1-DFSG-free (C) 2000-2007 MPlayer Team
  3. CPU: AMD Sempron(tm)   2500+ (Family: 6, Model: 8, Stepping: 1)
  4. CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
  5. Compiled with runtime CPU detection.
  6. mplayer: could not connect to socket
  7. mplayer: No such file or directory
  8. Failed to open LIRC support. You will not be able to use your remote control.

  9. Playing test.rmvb.
  10. REAL file format detected.
  11. Stream description: Video Stream
  12. Stream mimetype: video/x-pn-realvideo
  13. [real] Video stream found, -vid 0
  14. Stream description: Audio Stream
  15. Stream mimetype: audio/x-pn-realaudio
  16. [real] Audio stream found, -aid 1
  17. Stream mimetype: logical-fileinfo
  18. VIDEO:  [RV40]  384x288  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
  19. Clip info:
  20. name: test
  21. author: PoonTszTao
  22. copyright: (C) 2005 TVB
  23. ==========================================================================
  24. Opening video decoder: [realvid] RealVideo decoder
  25. Error: /usr/lib/codecs/drvc.so: cannot open shared object file: Permission denied
  26. Win32 LoadLibrary failed to load: drvc.so, /usr/lib/codecs/drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
  27. Error loading dll
  28. ERROR: Could not open required DirectShow codec drvc.so.
  29. Read the RealVideo section of the DOCS!
  30. VDecoder init failed :(
  31. Opening video decoder: [realvid] RealVideo decoder
  32. Win32 LoadLibrary failed to load: drvc.dll, /usr/lib/codecs/drvc.dll, /usr/lib/win32/drvc.dll, /usr/local/lib/win32/drvc.dll
  33. Error loading dll
  34. ERROR: Could not open required DirectShow codec drvc.dll.
  35. Read the RealVideo section of the DOCS!
  36. VDecoder init failed :(
  37. Opening video decoder: [realvid] RealVideo decoder
  38. Error: /usr/lib/codecs/drv4.so.6.0: cannot open shared object file: Permission denied
  39. 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
  40. Error loading dll
  41. ERROR: Could not open required DirectShow codec drv4.so.6.0.
  42. Read the RealVideo section of the DOCS!
  43. VDecoder init failed :(
  44. Opening video decoder: [realvid] RealVideo decoder
  45. Win32 LoadLibrary failed to load: drv43260.dll, /usr/lib/codecs/drv43260.dll, /usr/lib/win32/drv43260.dll, /usr/local/lib/win32/drv43260.dll
  46. Error loading dll
  47. ERROR: Could not open required DirectShow codec drv43260.dll.
  48. Read the RealVideo section of the DOCS!
  49. VDecoder init failed :(
  50. Opening video decoder: [realvid] RealVideo decoder
  51. Error: /usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
  52. 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
  53. Error loading dll
  54. ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
  55. Read the RealVideo section of the DOCS!
  56. VDecoder init failed :(
  57. Cannot find codec matching selected -vo and video format 0x30345652.
  58. Read DOCS/HTML/en/codecs.html!
  59. ==========================================================================
  60. ==========================================================================
  61. Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
  62. FAAD: compressed input bitrate missing, assuming 128kbit/s!
  63. AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
  64. Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
  65. ==========================================================================
  66. AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
  67. Video: no video
  68. Starting playback...
  69. A:   1.5 (01.4) of 458.0 (07:38.0)  1.1%
  70. Exiting... (Quit)
复制代码

在网上找了一下,没搜索到有用的信息。是不是和我将codecs目录下所有的文件加上 x 权限有关呀?因为我用“/usr/share/mplayer/scripts/binary_codecs.sh”这个脚本重新安装解码器后又可以放了。
发表于 2007-11-9 08:58:56 | 显示全部楼层
和 x 权限的关系应该不大,我的很多 dll, so 都有 x 权限,没有问题

我觉得应该是 codecs 的可读权限和 x 权限问题, 注意,是 codecs 目录本身,不仅是它的内部目录


另,lfs/blfs 中推荐的方法是把用户加入 audio 和 video 组来解决这种问题的
祝楼上兄弟好运
回复 支持 反对

使用道具 举报

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

本版积分规则

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