LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-12-2010, 03:03 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
mplayer can't play a video file though ffplay does albeit with aberrations


I am using ubuntu 8.04
I compiled latest mplayer then
Code:
$~/mplayer-checkout-2010-02-26/mplayer  /written/new\ movies/the\ box/The.Box.2009.DVDRip.MKV.RM-SiFU.mkv

MPlayer SVN-r30741-4.2.4 (C) 2000-2010 MPlayer Team

Playing /written/new movies/the box/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
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
Win32 LoadLibrary failed to load: drv43260.dll, /usr/local/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/local/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/local/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 :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffrv40] vfm: ffmpeg (FFmpeg 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...
A:   0.0 V:   0.0 A-V:  0.000 ct:  0.000   0/  0 ??% ??% ??,?% 0 0
Using the latest ffmpeg i analysed
Code:
$./ffmpeg-checkout-2010-06-05/ffmpeg  -i   /written/new\ movies/the\ box/The.Box.2009.DVDRip.MKV.RM-SiFU.mkv 
FFmpeg version SVN-r23481, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jul  1 2010 09:12:15 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration: --enable-gpl --enable-postproc --enable-swscale --enable-pthreads --enable-x11grab --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3
  libavutil     50.16. 0 / 50.16. 0
  libavcodec    52.74. 0 / 52.74. 0
  libavformat   52.68. 0 / 52.68. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.20. 0 /  1.20. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[matroska @ 0x8b44510]Estimating duration from bitrate, this may be inaccurate

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 23.98 (24000/1001)
Input #0, matroska, from '/written/new movies/the box/The.Box.2009.DVDRip.MKV.RM-SiFU.mkv':
  Duration: 01:55:47.35, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Audio: cook, 44100 Hz, stereo, s16
    Stream #0.1(eng): Video: rv40, yuv420p, 640x272, PAR 1:1 DAR 40:17, 23.98 tbr, 1k tbn, 1k tbc
    Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
 
Old 07-12-2010, 03:31 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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
 
Old 07-12-2010, 03:38 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.
 
Old 07-12-2010, 03:44 AM   #4
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
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.
From this page http://www.mplayerhq.hu/DOCS/codecs-status.html .

From where can I get this drvc.dll ?

Last edited by sumeet inani; 07-12-2010 at 11:02 PM. Reason: clarity
 
Old 07-13-2010, 03:09 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Real Player is available for linux, surprisingly.
 
Old 07-14-2010, 04:05 AM   #6
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
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.
Also
http://samples.mplayerhq.hu/real/AC-.../samplerv.rmvb plays well in mplayer.

Already tried playing the mkv file mentioned above in real player 11.0.2.1744 (GOLD)

I get
Code:
The player does not have capabilities to playback this content
The following components are required
mkv

Last edited by sumeet inani; 07-14-2010 at 06:01 AM.
 
Old 07-14-2010, 06:45 AM   #7
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
finally I found solution
Just add option '-demuxer lavf' to play the video.


There had to be an answer (http://lists.mplayerhq.hu/pipermail/...ay/080117.html).
I believe mplayer can play everything.

PROBLEM
the audio is not clear ?

Last edited by sumeet inani; 07-23-2010 at 05:07 AM.
 
Old 11-24-2010, 10:46 PM   #8
samveen
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to play video using mplayer prashanthnsbhat Linux - Newbie 1 08-28-2008 06:24 AM
mplayer doesn't play any video files Knaps Linux - Software 10 02-04-2008 02:37 AM
MPLAYER fail to play video file. hanbin Linux - Software 1 11-20-2004 10:08 AM
Mplayer won't play video files! MustangCSA Linux - Software 6 10-23-2004 12:54 AM
mplayer trying to play streaming video illtbagu Linux - Newbie 3 01-30-2003 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration