MPlayer crash on some WMV files (and the fix)

Place to discuss Fedora and/or Red Hat
Post Reply
User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

MPlayer crash on some WMV files (and the fix)

Post by Void Main »

I was having a problem playing some WMV files. MPlayer would crash with a signal 11. Here's a snip:

Code: Select all

...
Playing hngtwn1.wmv.
ASF file format detected.
VIDEO:  [WMV3]  640x480  24bpp
Clip info:
 name:
 author:
 copyright:
 comments:
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 12005->176400 (96.0 kbit)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (ffmpeg))
==========================================================================
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [dmo] DMO video codecs
 
 
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.
...
I had a tough time finding it but eventually I found the answer here:

http://www.sslug.se/emailarkiv/teknik/2004_02/msg00400

If you have all your codecs installed and are having this problem here's what you can do. Add this to your /etc/sysctl.conf:

Code: Select all

# Allow MPlayer to play DMO WMV files (DLL problems without this)
kernel.exec-shield = 0
and while you are in there you might as well add this:

Code: Select all

# Stop annoying startup message in MPlayer
dev.rtc.max-user-freq = 1024
Then to make the above kernel settings take effect immediately do this as root:

# sysctl -p

Enjoy!

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux »

Thankyou!!!

That has been driving me M-A-D :twisted:

Again, thanks.

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux »

Spoke too soon :(

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

You got one that you can't play? If it's not pr0n and it's not personal do you have a link so I can see if I can play it?

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux »

Struggled to find an example that wasn't porn, but here goes:

http://66.184.207.35/media/bomb_saddam/ ... ll.wmv.zip

It opens, but then chokes at any random point.

PS. I'm going to bed so don't expect a reply for 8 hours or so :)

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

That one plays just flawlessly for me (even in full screen). Nice video choice by the way, I had seen that one before. I actually have worked on several items shown in the video and have also flown on several of them.

siplus
user
user
Posts: 48
Joined: Sun Jan 12, 2003 1:29 pm
Location: Pa, USA
Contact:

Post by siplus »

running FC2 here and after editing /etc/sysctl.conf, nothing changed.

ultimately i just want to play a wmv file, http://www.sorethumbz.com/swg/request.php?2, that someone linked to on Neworder, so first i went to apt-get. after it installed it just didn't have the wmv codec, and i instantly realized that i'm in for another adventure.

after downloading several different RPMS, i decided to just go through the source. kept getting into dependency warnings, and i didn't feel like going rpm hunting.

i went to the mplayer website and after browsing around downloaded the codecs from http://www.mplayerhq.hu/MPlayer/releases/codecs/ and placing them in /usr/local/lib/codec. that was easy enough. i downloaded the source by using their CVS download. after that i did a configure (noticing that i had to find and install libpng and libpng-dev, i decided to opt out of the gui install for now), and make/make install.

Code: Select all

[siplus@siplus siplus]$ mplayer downloads/Ice_Man.wmv
MPlayer dev-CVS-040613-23:33-3.3.3 (C) 2000-2004 MPlayer Team
 
CPU: Intel Pentium 4/Xeon/Celeron Foster 1496 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
 
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/siplus/.mplayer/config
Reading /home/siplus/.mplayer/codecs.conf: Can't open '/home/siplus/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
font: can't open file: /home/siplus/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /home/siplus/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
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 downloads/Ice_Man.wmv.
ASF file format detected.
VIDEO:  [WMV3]  640x480  24bpp
Clip info:
 name: Ice Man
 author:
 copyright:
 comments:
==========================================================================
Requested audio codec family [] (afm=ffmpeg) not available.
Enable it at compilation.
Opening audio decoder: [dmo] Win32/DMO decoders
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 44100
avg byte/sec: 8005
Block align: 1487
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [88] [0] [0] [f] [0] [79] [2e] [0] [0]
===========================
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 2
Samplerate: 44100
avg byte/sec: 176400
Block align: 4
bits/sample: 16
cbSize: 0
===========================
External func OLEAUT32.dll:7
External func OLEAUT32.dll:8
GetOutput r=0x0   size:16384  align:1
StreamCount r=0x0  1  1
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 8005->176400 (64.0 kbit)
Selected audio codec: [wmadmo] afm:dmo (Windows Media Audio DMO)
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [dmo] DMO video codecs
External func OLEAUT32.dll:8
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.
Segmentation fault
[siplus@siplus siplus]$
now, from just reading the above i can see that i'm missing some config files, and it did recognise the wmadmo codec, but not the ffwmav2 codec. now, when i got the codecs from the mplayer site, i actually got the first two, because i wasn't sure which i needed, and untarred both of them into /usr/local/lib/codec. i figured "latest win32 codecpack" would have been all i needed

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Honestely, all I ever do is "apt-get install mplayer" and download the win32 codecs and put them in the /usr/lib/win32 directory. Everything works just great. I'm sure there are several threads on this site about it, easy as pie.

Ice9
guru
guru
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium
Contact:

Post by Ice9 »

Mine segfaults :cry:
And xine aborts.

Code: Select all

==========================================================================
Playing /home/yc/Files/Movz/e_Man.wmv.
ASF file format detected.
VIDEO:  [WMV3]  640x480  24bpp
Clip info:
 name: Ice Man
 author:
 copyright:
 comments:
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 8005->176400 (64.0 kbit)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (ffmpeg))
==========================================================================
==========================================================================
Opening video decoder: [dmo] DMO video codecs
Segmentation fault

$ xine e_Man.wmv
This is xine (X11 gui) - a free video player v0.99.1.
(c) 2000-2003 The xine Team.
xiTK received SIGSEGV signal, RIP.
Aborted


User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Does it do that on *all* videos? If not, does it do it on all *.wmv files (from different sources)? I have run across a couple of *.wmv files that would do the same thing you mention, if I recall it is from home movies someone has created. I think there are certain types that can not be played currently (Microsoft tries really hard to make things so proprietary that only they can play them as I am sure you are aware). I'm sorry I don't know enough about MPlayer and video formats to know which exact things don't work. Might be a question for the MPlayer mailing list. I think for the most part xine uses pretty much completely separate libraries and codecs to play so if it also can not play them then I suspect something with the video and would do more research on the exact format that the video is in.

Of course if it's not too big you could always upload it to me (or give me a link to where I can get it) and see if I can play it. If I can then there is surely something wrong with your setup and we should be able to continue to trouble-shoot. You can FTP it to voidmain.is-a-geek.net and put it in the /upload directory.

Ice9
guru
guru
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium
Contact:

Post by Ice9 »

I tried with both videos from this thread (actually the code I posted is the output from the seond movie linked to by siplus) but the one Tux linked to gives the same output.
I use FC2 on my work laptop now and I have the impression that mplayer is a lot less stable now than it ever was before (for me anyway).

mplayer doesn't segfault on all .wmv files though, and the crashes for "bad use of CPU/FPU/RAM" don't happen anymore, I used to have that a lot with RH9 ...
All the other video formats play fine except for Real Media files, mplayer segfaults on those to :cry:
I compensated that by installing Real Player for Linux but I don't like it too much/

I tried switching the video driver from xv to x11 since this helped me out a couple of times before but nothing changes.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

For very nice playing of all the real stuff thet "Helix Player" works very nicely. It's the open source version of the Real Player. I actually do like it even though the video/audio format is proprietary. If you have to go there, Helix is not a bad way (and it plays right in the browser nicer than anything else I have used). Too bad it only works for the Real formats.

As far as the MPlayer thing the only thing I can think of is that I must have some more stuff installed that you guys don't (divix libraries, other video libraries, etc).

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux »

Sorry, I forgot to update you on this. I rebuilt myself teh 1.0pre4 RPMs and my problem seems to be resolved now. (I was using pre3)

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux »

Void Main wrote:For very nice playing of all the real stuff thet "Helix Player" works very nicely. It's the open source version of the Real Player. I actually do like it even though the video/audio format is proprietary. If you have to go there, Helix is not a bad way (and it plays right in the browser nicer than anything else I have used). Too bad it only works for the Real formats.

As far as the MPlayer thing the only thing I can think of is that I must have some more stuff installed that you guys don't (divix libraries, other video libraries, etc).
I just installed Helix this week, it's a nice app and a good show of some support for the GPL way o' life.
I still think that MPlayer trumps it in technical terms and it's sheer breadth of ability. Hopefully the MPlayer team can improve their handling of Real(Networks) formats by taking a peek, the fact that you can't seek in some rm files with MPlayer is rather annoying.

Post Reply