11/14/07

Install win32 codecs for mplayer in Ubuntu Gutsy

If you have trouble in playing media file, stream [like me] may be this will help. Today I try open video stream with mplayer and get no sound. So I go to run mplayer from terminal and get errors about codecs below

pnix@pnix-a7n:progdl$ mplayer mms://61.47.35.66/NTTV
MPlayer 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) (Family: 6, Model: 8, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
...
Opening video decoder: [dmo] DMO video codecs
Win32 LoadLibrary failed to load: wmv9dmod.dll, /usr/lib/win32/wmv9dmod.dll, /usr/local/lib/win32/wmv9dmod.dll
IMediaObject ERROR: 0x8773d96 could not open DMO DLL (0x0 : 0)
Failed to create DMO filter
ERROR: Could not open required DirectShow codec wmv9dmod.dll.
You need to upgrade/install the binary codecs package.
Go to http://www.mplayerhq.hu/dload.html
VDecoder init failed :(
Opening video decoder: [dmo] DMO video codecs
Win32 LoadLibrary failed to load: wmvdmod.dll, /usr/lib/win32/wmvdmod.dll, /usr/local/lib/win32/wmvdmod.dll
IMediaObject ERROR: 0x8773d96 could not open DMO DLL (0x0 : 0)
Failed to create DMO filter
ERROR: Could not open required DirectShow codec wmvdmod.dll.
You need to upgrade/install the binary codecs package.
Go to http://www.mplayerhq.hu/dload.html
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffwmv3] vfm: ffmpeg (FFmpeg M$ WMV3/WMV9)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [dmo] Win32/DMO decoders
Win32 LoadLibrary failed to load: wmspdmod.dll, /usr/lib/win32/wmspdmod.dll, /usr/local/lib/win32/wmspdmod.dll
IMediaObject ERROR: 0x8773d96 could not open DMO DLL (0x0 : 0)
ERROR: Could not open required DirectShow codec wmspdmod.dll.
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [dshow] Win32/DirectShow decoders
Win32 LoadLibrary failed to load: wmavds32.ax, /usr/lib/win32/wmavds32.ax, /usr/local/lib/win32/wmavds32.ax
Warning: DS_Filter() could not open DirectShow DLL. (DLL=wmavds32.ax, r=0x8ae1eb0)
ERROR: Could not open required DirectShow codec wmavds32.ax.
ADecoder preinit failed :(
ADecoder init failed :(
Cannot find codec for audio format 0xA.
Read DOCS/HTML/en/codecs.html!
Audio: no sound
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Planar YV12
V:40148.2 803/803 4% 0% 0.0% 0 0 25%

So we need codecs files, go to mplayer download page and get correct package for the system[x86, AMD64 or whatever, the file will name as essential-xxx.tar.bz2]. Then unpack it and move all file to /usr/lib/win32 folder. Now try it again.
pnix@pnix-a7n:progdl$ mplayer mms://61.47.35.66/NTTV
MPlayer 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) (Family: 6, Model: 8, Stepping: 1)
...
Opening video decoder: [dmo] DMO video codecs
Creating new registry
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0 size:230400 align:1
StreamCount r=0x0 1 1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 320 x 240 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Planar YV12
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [dmo] Win32/DMO decoders
GetOutput r=0x0 size:8192 align:1
StreamCount r=0x0 1 1
AUDIO: 8000 Hz, 1 ch, s16le, 8.0 kbit/6.25% (ratio: 1000->16000)
Selected audio codec: [wma9spdmo] afm: dmo (Windows Media Audio 9 Speech DMO)
==========================================================================
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
Starting playback...
gnome_screensaver_control().462 ct: -1.063 2329/2329 3% 0% 4.0% 8 0 3%

11 comments:

leffe said...

It did the trick. Great, thanks. :)

Anonymous said...

Thanks. Works with kubuntu as well!

Franklin said...

Thanks man, now I can see all videos (wmv) but still Mplayer shows me a error with wmv8ds32.ax

pnix said...

franklin , try this file, http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2 , extract it into /usr/lib/win32

E. said...

pnix!

I haven't wmavds32.ax file on the http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2 package. :(

Why?

Please, help me!

E.
(kicsicsiga@gmail.com)

pnix said...

E., I just check on my system i don't have it too.

Matt said...

i dont get how to do anything you guys say this system is fucking impossible to download anything form the internet you just say "extract here" and "use this location" and i dont know how to find any of that the locations make no sense when i copy and paste it either says its not a real location or permission denierd

Anonymous said...

yeah i sat extract to /usr/lib/win32 but it doesmt exist and permission is denied to create it ubuntu is a piece of shit

Sábio said...

Works on Ubuntu 9.10!

Thanks for the tip!

@Anonymous make all the things from the terminal, give sudo and stuff!

audio codecs said...

I am new to Ubuntu and your post really helped a lot.

Anonymous said...

Thanks, it worked with Hardy 8.04 LTS!