LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mplayer unable to locate the existing file "drv4.so.6.0" (https://www.linuxquestions.org/questions/linux-software-2/mplayer-unable-to-locate-the-existing-file-drv4-so-6-0-a-561176/)

nissen 06-12-2007 09:28 AM

mplayer unable to locate the existing file "drv4.so.6.0"
 
hi,

i'v install mplayer on FC5 and other media decoder such as real,win32codecs. when i open a rmvb file, mplayer can play it correctly but complain "ERROR: Couldn't open required directshow codec drv4.so.6.0". well, i really hate that annoying windows.

bellow is some of the output info when playing rmvb files in command line:

[luc@localhost ~]$ mplayer -v dynastyQ
MPlayer SVN-r22817 rpm.livna.org (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1400MHz (Family: 6, Model: 9, Stepping: 5)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/luc/.mplayer/codecs.conf'
Reading /home/luc/.mplayer/codecs.conf: Can't open '/home/luc/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.

..........
..........
..........lines omitted

==========================================================================
Opening video decoder: [realvid] RealVideo decoder
realvideo codec id: 0x40002000 sub-id: 0x01081020
opening shared obj '/usr/lib/codecs/drvc.so'
Error: /usr/lib/codecs/drvc.so: cannot restore segment prot after reloc: Permission denied
opening win32 dll 'drvc.so'
Win32 LoadLibrary failed to load: drvc.so, /usr/lib/codecs/drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
win32 real codec handle=(nil)
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
realvideo codec id: 0x40002000 sub-id: 0x01081020
opening shared obj '/usr/lib/codecs/drv4.so.6.0'
Error: /usr/lib/codecs/drv4.so.6.0: cannot restore segment prot after reloc: Permission denied
opening win32 dll 'drv4.so.6.0'
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
win32 real codec handle=(nil)
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
realvideo codec id: 0x40002000 sub-id: 0x01081020
opening win32 dll 'drv43260.dll'
win32 real codec handle=0x63410000
get_path('registry') -> '/home/luc/.mplayer/registry'
Called unk__beginthreadex
INFO: RealVideo codec init OK!
Selected video codec: [rv40win] vfm: realvid (Win32 RealPlayer 9 RV40 decoder)
..........




from the output info, here i got 2 questions:
1. i searched / for codecs.conf but nothing find. i mean i want to creat a codecs.conf manually to tell system where to locate file "drv4.so.6.0" and hope this will helpful to solve "drv4.so.6.0" problem. but i don't know the format of the codecs.conf. can anyone tell me of that?

2. although i have "drv4.so.6.0", but mplayer don't know it.

[root@localhost ~]# locate drv4.so.6.0
/home/luc/.xine/plugins/drv4.so.6.0
/usr/lib/drv4.so.6.0
/usr/lib/codecs/drv4.so.6.0
/usr/lib/real/drv4.so.6.0
/usr/lib/win32/drv4.so.6.0
/usr/lib/xine/plugins/1.1.2/drv4.so.6.0
/usr/local/lib/mplayer/drv4.so.6.0


someone tell me to use command ld and ldconfig to correlate "*.so" files. will that be helpful?if yes, how?

been slaved by windoze long time, now im newbine to linux. hope guys can help me. thanks a lot!

SkyEye 06-12-2007 12:59 PM

I don't know what's exactly wrong here. I also got a similar situation (for a different codec).

Your best bet is to compile MPlayer and relevant related things instead of using pre-packeged things. This solved the problems for me and compiling manually is very flexible. (Eg: If you want x264 support, first compile and install x264 package, then compile MPlayer with x264 support.)

nissen 06-15-2007 12:48 PM

great. what u said gives me a hint. i have never thought about difference between rpm and sourcecode style install. just as proverb said, it work, change nothing. well, it's ok except that complain windows every time i play a rmvb format file.

another thing im afraid is u have to solve dependency when installing from sourcecode. system always tells u that to install A, u have to install B first. but to install B, u have to install C, bla bla bla... kind of torture to me.

thank u to share experience!

SkyEye 06-27-2007 01:31 AM

Quote:

Originally Posted by nissen
another thing im afraid is u have to solve dependency when installing from sourcecode. system always tells u that to install A, u have to install B first. but to install B, u have to install C, bla bla bla... kind of torture to me.

thank u to share experience!

:)

Yes, I know you have to handle dependencies manually if you choose to build from source. But there are times when it's the rmp way giving to headaches.

Installing MPlayer with rpms was no fun when I didnt have DSL. I had to look for dependency rpms for things which I didn't even want. When we build from source we can select what we want rather than a myriad of packages. (Eg: no IR remote controller support, with 3gp support). Anyway I always build MPlayer from source since I want to have x264, lavc and several other thing supported (which rpm version is not built with). I usually use MEncoder with x264 codec.


All times are GMT -5. The time now is 11:43 PM.