mplayer crashes opening wmv files encoded with DMO codec

Bug #664848 reported by Stas Binko
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Medibuntu
Incomplete
Undecided
Unassigned

Bug Description

mplayer crashes with SIGSEGV opening some wmv files - I have pretty many such files, looks like the common part between all of them is they are encoded with "DMO video codecs". Here is mplayer output:

stas@stas-desktop:~$ mplayer mplayer-crash.wmv
MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing mplayer-crash.wmv.
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 233.7 kbps (28.5 kbyte/s)
Clip info:
 title:
 author:
 copyright:
 comments:
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested

MPlayer interrupted by signal 11 in module: init_video_codec
- 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.
 [ This binary of MPlayer in Debian is currently compiled with
   '--enable-debug'; the debugging symbols are in the package
   'mplayer-dbg'.]

MPlayer interrupted by signal 11 in module: init_video_codec
stas@stas-desktop:~$

The interesting thing here is that when I'm trying to play the same file running mplayer under gdb or strace - it does not crash, but opens files and plays them correctly (that's why cannot attach any stacktrace).
Video files are valid - e.g. they can be played by vlc.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: mplayer 2:1.0~rc4~try1.dsfg1-1ubuntu1+medibuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic-pae 2.6.35.4
Uname: Linux 2.6.35-22-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
CrashDB: medibuntu
Date: Fri Oct 22 02:24:21 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: mplayer

Revision history for this message
Stas Binko (stas-binko) wrote :
Revision history for this message
Stas Binko (stas-binko) wrote :
Revision history for this message
Stas Binko (stas-binko) wrote :

Seems like one more common property of files causing crash - they all have ASF file format according to mplayer output (and DMO codec as mentioned before). One of such files is avi, not wmv.

Revision history for this message
Doug McMahon (mc3man) wrote :

The sample provided is a VC-1 wmv (or at least appears to be
By default mplayer will use dmo if available, some VC-1/wmv3 files can't be decoded properly, most others can though -
ffmpeg can decode VC-1/wmv3 and at this point does a better job on most if not all.

So if you went for example this it should play back fine
 mplayer -vc ffwmv3 /path/to/yourfile

(also note that ffwmv3vdpau will work on your sample - at least here
You can if desired set mplayer to use ffmpeg first with this in your .mplayer/config
vfm=ffmpeg

Revision history for this message
Stas Binko (stas-binko) wrote :

Thanks, seems like this workaround works for me (at least all files I've checked now - which is a pretty solid part of files available).

Revision history for this message
kif0rt (kif0rt) wrote :
Download full text (5.1 KiB)

Hi, all!

Have the same problem. When w32codecs installed mplayer crashes like this:

Detected file format: ASF format (libavformat)
[wmv3 @ 0x888f420]Extra data: 8 bits left, value: 0
[lavf] stream 0: audio (wmav2), -aid 0, -alang eng
[lavf] stream 1: video (wmv3), -vid 0
VIDEO: [WMV3] 640x480 24bpp 29.970 fps 999.2 kbps (122.0 kbyte/s)
Clip info:
 WM/ToolName: Flip4Mac WMV Export Component for QuickTime (Mac)
 WM/ToolVersion: 2204
 title:
 artist:
 copyright:
 comment:
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested

MPlayer interrupted by signal 11 in module: init_video_codec

MPlayer interrupted by signal 11 in module: init_video_codec

After w32codecs removed:

ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV3] 640x480 24bpp 1000.000 fps 999.2 kbps (122.0 kbyte/s)
Clip info:
 title:
 author:
 copyright:
 comments:
==========================================================================
Opening video decoder: [dmo] DMO video codecs
Win32 LoadLibrary failed to load: wmv9dmod.dll, /usr/lib/codecs/wmv9dmod.dll
IMediaObject ERROR: 0x83f15e1 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/codecs/wmvdmod.dll
IMediaObject ERROR: 0x83f15e1 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
[wmv3 @ 0x14249a0]Extra data: 8 bits left, value: 0
Selected video codec: [ffwmv3] vfm: ffmpeg (FFmpeg WMV3/WMV9)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8005->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 640x480 => 640x480 Planar YV12
A: 5.7 V: 5.7 A-V: -0.006 ct: -0.042 22/ 22 21% 10% 0.2% 0 0
Exiting... (Quit)

But!!! The interesting thing is that I have the second ubuntu installed in VirtualBox with mplayer and w32codecs. I double checked all details (version, repository, dependencies) and can make conclusion that two systems are identical in video/codecs packages. But when I trying to play the same video in VBox Ubuntu it not crashes and playing well:

[asfheader] Audio str...

Read more...

Revision history for this message
kif0rt (kif0rt) wrote :

I was figured out that problem by proprietary NVIDIA drivers used. After changing X driver to nouveau the problem was solved and mplayer opened wmv correct. I was tried the latest NVIDIA drivers from official website and problem still have the place to be.

Revision history for this message
kif0rt (kif0rt) wrote :

Workaround for proprietary NVIDIA drivers for X server:

change vo option in mplayer config to gl or gl2. And problem should be solved. So mplayer crashes only with next vo options:

vdpau
xv

Revision history for this message
Gauvain Pocentek (gpocentek) wrote :

Does this problem still happen on oneiric?

Thansk.

Changed in medibuntu:
status: New → Confirmed
status: Confirmed → Incomplete
Revision history for this message
Stas Binko (stas-binko) wrote :

Cannot test on oneiric, but seems like did not reproduce on ubuntu 11.04, here is mplayer output for file attached here as crash cause sample:

stas@stas-desktop:~$ mplayer mplayer-crash.wmv
MPlayer 1.0rc4-4.5.2 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing mplayer-crash.wmv.
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 233.7 kbps (28.5 kbyte/s)
Clip info:
 title:
 author:
 copyright:
 comments:
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 320x240 => 320x240 Planar YV12
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 111.5 kbit/7.90% (ratio: 13942->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 6.5 V: 6.5 A-V: 0.001 ct: -0.048 107/107 3% 1% 0.5% 0 0
Exiting... (Quit)

Mplayer version is 2:1.0~rc4.dfsg1-1ubuntu3+medibuntu1 (from aptitutde output).

Revision history for this message
Stas Binko (stas-binko) wrote :

I can confirm the issue still exists in oneiric. mplayer output for the video file attached here:

stas@stas-desktop:~$ mplayer mplayer-crash.wmv
mplayer: Symbol `ff_codec_bmp_tags' has different size in shared object, consider re-linking
MPlayer SVN-r33713-4.6.1 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing mplayer-crash.wmv.
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 233.7 kbps (28.5 kbyte/s)
Clip info:
 title:
 author:
 copyright:
 comments:
Load subtitles in ./
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested

MPlayer interrupted by signal 11 in module: init_video_codec
- 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.
 [ This binary of MPlayer in Debian is currently compiled with
   '--enable-debug'; the debugging symbols are in the package
   'mplayer-dbg'.]

MPlayer interrupted by signal 11 in module: init_video_codec

Revision history for this message
Stas Binko (stas-binko) wrote :

Old workaround with "vfm=ffmpeg" in .mplayer/config still works for me

Revision history for this message
Stas Binko (stas-binko) wrote :

Attaching file generated running "apport-cli -f -p mplayer --save 664848-oneiric.txt" - hopefully this could be useful

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.