mplayer can't play a video file though ffplay does albeit with aberrations
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yeah, mplayer says all sorts of interesting stuff.
Quote:
ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
Read the RealVideo section of the DOCS!
You did, of course, read the Docs, didn't you? Remind us of what you took from them so we won't have to read them :-D. I would also check where the codecs are: I've seen a codecs dir in /usr/lib, /usr/lib64, and conceivably /usr/local{lib or lib64}. So when I see
Quote:
Opening video decoder: [realvid] RealVideo decoder
Win32 LoadLibrary failed to load: drvc.dll, /usr/local/lib/codecs/drvc.dll, /usr/lib/win32/drvc.dll, /usr/local/lib/win32/drvc.dll
and it may just be you should symlink /usr/local/lib/codecs to your real codecs dir. It may be you should download a pile of codecs!
MNplayer's man page is one of the all time great manpages
It looks like the video was encoded in one of the realplayer video formats. These are closed, proprietary codecs that must be reverse-engineered for decoding, meaning that they often have poor support, especially early on.
It's kind of strange though that ffplay works while mplayer doesn't, since mplayer simply calls on ffmpeg/libav to do the actual decoding.
You might also install the extra binary mplayer codecs installed (a.k.a. win32codecs), if you don't have them already. Your output shows they weren't detected.
Before doing './configure;make;' for extracted mplayer tarball.
I had extracted contents of essential-20071007.tar.bz2 into folder /usr/local/lib/codecs
as you said David the H.
I did
Code:
#apt-get install w32codecs
Now i get
Code:
14:19:55 ~ $ mplayer /data/sumeet/video/hollywood/box/The.Box.2009.DVDRip.MKV.RM-SiFU.mkv
MPlayer SVN-r30741-4.2.4 (C) 2000-2010 MPlayer Team
Playing The.Box.2009.DVDRip.MKV.RM-SiFU.mkv.
[mkv] Track ID 1: audio (A_REAL/COOK), -aid 0, -alang eng
[mkv] Track ID 2: video (V_REAL/RV40), -vid 0
[mkv] Track ID 3: subtitles (S_TEXT/UTF8), -sid 0, -slang eng
[mkv] Will play video track 2.
Matroska file format detected.
VIDEO: [RV40] 640x272 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
SUB: Added subtitle file (1): ./The.Box.2009.DVDRip.MKV.RM-SiFU.srt
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
Win32 LoadLibrary failed to load: drvc.dll, /usr/local/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
Called unk__beginthreadex
Selected video codec: [rv40win] vfm: realvid (Win32 RealPlayer 9 RV40)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.1 kbit/4.54% (ratio: 8010->176400)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
MPlayer interrupted by signal 11 in module: decode video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
I copied drvc.dll from windows partition (namely /windows/Program Files/K-Lite Codec Pack/Real/Codecs/drvc.dll)
Code:
$~/mplayer-checkout-2010-02-26/mplayer The.Box.2009.DVDRip.MKV.RM-SiFU.mkv
MPlayer SVN-r30741-4.2.4 (C) 2000-2010 MPlayer Team
Playing The.Box.2009.DVDRip.MKV.RM-SiFU.mkv.
[mkv] Track ID 1: audio (A_REAL/COOK), -aid 0, -alang eng
[mkv] Track ID 2: video (V_REAL/RV40), -vid 0
[mkv] Track ID 3: subtitles (S_TEXT/UTF8), -sid 0, -slang eng
[mkv] Will play video track 2.
Matroska file format detected.
VIDEO: [RV40] 640x272 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
Opening video filter: [screenshot]
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
Called unk_malloc
Win32 LoadLibrary failed to load: 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
Called unk__beginthreadex
Selected video codec: [rv40win] vfm: realvid (Win32 RealPlayer 9 RV40)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.1 kbit/4.54% (ratio: 8010->176400)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
MPlayer interrupted by signal 11 in module: decode video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
The option and all others listed in the myriad search results for "mplayer mkv COOK RV40 sync" (and variations) failed to fix the problem for me. I tried all options, transcoding with mencoder to avi and many other things, but they all failed. Finally, in frustration, I unpacked the MKV into it's component streams with mkvextract from the mkvtoolnix (2.3.0) package and then joined them with mencoder. And voila, it worked.
My conclusion: Mencoder cannot sync the A/V streams from the MKV container properly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.