LinuxSir.cn,穿越时空的Linuxsir!

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

mplayer有图像了,chcon -t textrel_shlib_t /usr/lib/codecs/drv* 何解?

[复制链接]
发表于 2007-3-15 13:14:32 | 显示全部楼层 |阅读模式
没运行 [root@localhost bin]# chcon -t textrel_shlib_t /usr/lib/codecs/drv* 时,只有声音没有图像:
  1. [root@localhost bin]# ./mplayer /media/Movies_cd1/爱在哈佛/5.rmvb
  2. MPlayer 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team
  3. CPU:               Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 3, Stepping: 4)
  4. CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
  5. Opening joystick device /dev/input/js0
  6. Can't open joystick device /dev/input/js0: No such file or directory
  7. Can't init input joystick
  8. Setting up LIRC support...
  9. mplayer: could not connect to socket
  10. mplayer: No such file or directory
  11. Failed to open LIRC support.
  12. You will not be able to use your remote control.
  13. Playing /media/Movies_cd1/爱在哈佛/5.rmvb.
  14. REAL file format detected.
  15. Stream description: Audio Stream
  16. Stream mimetype: audio/x-pn-realaudio
  17. Stream description: Video Stream
  18. Stream mimetype: video/x-pn-realvideo
  19. Stream mimetype: logical-fileinfo
  20. VIDEO:  [RV40]  640x480  24bpp  23.000 fps    0.0 kbps ( 0.0 kbyte/s)
  21. Clip info:
  22. name: Love Story In Harvard 05
  23. author: �����ڹ�������Ӱ��YYcAFС�鷭������ ��ӭ�����ַ�����������  ��ϵjorw7984@163.net
  24. copyright: (C) 2004
  25. ==========================================================================
  26. Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
  27. AUDIO: 22050 Hz, 2 ch, s16le, 32.0 kbit/4.54% (ratio: 4005->88200)
  28. Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
  29. ==========================================================================
  30. Xv: could not grab port 65
  31. Could not find free Xvideo port - maybe another process is already using it.
  32. Close all video applications, and try again. If that does not help,
  33. see 'mplayer -vo help' for other (non-xv) video out drivers.
  34. ==========================================================================
  35. Opening video decoder: [realvid] RealVideo decoder
  36. Error: /usr/lib/codecs/drvc.so: cannot open shared object file: No such file or directory
  37. Win32 LoadLibrary failed to load: drvc.so, /usr/lib/codecs/drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
  38. Error loading dll
  39. ERROR: Could not open required DirectShow codec drvc.so.
  40. Read the RealVideo section of the DOCS!
  41. VDecoder init failed :(
  42. Opening video decoder: [realvid] RealVideo decoder
  43. Error: /usr/lib/codecs/drv4.so.6.0: cannot open shared object file: No such file or directory
  44. 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
  45. Error loading dll
  46. ERROR: Could not open required DirectShow codec drv4.so.6.0.
  47. Read the RealVideo section of the DOCS!
  48. VDecoder init failed :(
  49. Opening video decoder: [realvid] RealVideo decoder
  50. Win32 LoadLibrary failed to load: drv43260.dll, /usr/lib/codecs/drv43260.dll, /usr/lib/win32/drv43260.dll, /usr/local/lib/win32/drv43260.dll
  51. Error loading dll
  52. ERROR: Could not open required DirectShow codec drv43260.dll.
  53. Read the RealVideo section of the DOCS!
  54. VDecoder init failed :(
  55. Opening video decoder: [realvid] RealVideo decoder
  56. Error: /usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
  57. 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
  58. Error loading dll
  59. ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
  60. Read the RealVideo section of the DOCS!
  61. VDecoder init failed :(
  62. Cannot find codec matching selected -vo and video format 0x30345652.
  63. Read DOCS/HTML/en/codecs.html!
  64. ==========================================================================
  65. AO: [oss] 22050Hz 2ch s16le (2 bytes per sample)
  66. Video: no video
  67. Starting playback...
  68. A: 307.4 (05:07.4) of 3844.0 ( 1:04:04.0)  0.5%
复制代码
运行 [root@localhost bin]# chcon -t textrel_shlib_t /usr/lib/codecs/drv* 后,有图像了 ,但还是报了错:
  1. [root@localhost bin]# ./mplayer /media/Movies_cd1/爱在哈佛/5.rmvb
  2. MPlayer 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team
  3. CPU:               Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 3, Stepping: 4)
  4. CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
  5. Opening joystick device /dev/input/js0
  6. Can't open joystick device /dev/input/js0: No such file or directory
  7. Can't init input joystick
  8. Setting up LIRC support...
  9. mplayer: could not connect to socket
  10. mplayer: No such file or directory
  11. Failed to open LIRC support.
  12. You will not be able to use your remote control.
  13. Playing /media/Movies_cd1/爱在哈佛/5.rmvb.
  14. REAL file format detected.
  15. Stream description: Audio Stream
  16. Stream mimetype: audio/x-pn-realaudio
  17. Stream description: Video Stream
  18. Stream mimetype: video/x-pn-realvideo
  19. Stream mimetype: logical-fileinfo
  20. VIDEO:  [RV40]  640x480  24bpp  23.000 fps    0.0 kbps ( 0.0 kbyte/s)
  21. Clip info:
  22. name: Love Story In Harvard 05
  23. author: �����ڹ�������Ӱ��YYcAFС�鷭������ ��ӭ�����ַ�����������  ��ϵjorw7984@163.net
  24. copyright: (C) 2004
  25. ==========================================================================
  26. Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
  27. AUDIO: 22050 Hz, 2 ch, s16le, 32.0 kbit/4.54% (ratio: 4005->88200)
  28. Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
  29. ==========================================================================
  30. ==========================================================================
  31. Opening video decoder: [realvid] RealVideo decoder
  32. Error: libstdc++.so.5: cannot open shared object file: No such file or directory
  33. Win32 LoadLibrary failed to load: drvc.so, /usr/lib/codecs/drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
  34. Error loading dll
  35. ERROR: Could not open required DirectShow codec drvc.so.
  36. Read the RealVideo section of the DOCS!
  37. VDecoder init failed :(
  38. Opening video decoder: [realvid] RealVideo decoder
  39. Selected video codec: [rv40] vfm: realvid (Linux RealPlayer 9 RV40 decoder)
  40. ==========================================================================
  41. AO: [oss] 22050Hz 2ch s16le (2 bytes per sample)
  42. Starting playback...
  43. VDec: vo config request - 640 x 480 (preferred colorspace: Planar I420)
  44. VDec: using Planar I420 as output csp (no 0)
  45. Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
  46. VO: [xv] 640x480 => 640x480 Planar I420
  47. A: 103.5 V: 103.5 A-V:  0.005 ct: -0.000 3103/3103 28%  1%  0.6% 1 0
复制代码
请教高手chcon -t textrel_shlib_t /usr/lib/codecs/drv*这行代码是什么意思呀 ?
 楼主| 发表于 2007-3-15 13:51:05 | 显示全部楼层
为什么明明 /usr/lib/codecs/ 下有 drvc.so 还会报错呢?
回复 支持 反对

使用道具 举报

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

本版积分规则

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