Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] mplayer crashes while seeking through a video
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Seelenfeuer
n00b
n00b


Joined: 09 Nov 2005
Posts: 73

PostPosted: Thu Jul 13, 2006 1:27 pm    Post subject: [SOLVED] mplayer crashes while seeking through a video Reply with quote

Hi there!

!!!PLEASE DONT BE SCARED OF THE HUGE POST, MOST OF THE OUTPUT IS JUNK WHICH SHOULDNT BE VERY INTERESTING!!!


I have a strange problem with mplayer (1.0_pre8-r1): whenever i try to seek in a video (no matter what codec it has) mplayer crashes. The normal output is this
Code:
$ mplayer avatar\ -\ trailer.wmv
MPlayer 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team
CPU:               Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 9)
MMX2 supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX 3DNow SSE SSE2


93 audio & 211 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.

Playing avatar - trailer.wmv.
ASF file format detected.
VIDEO:  [WMV3]  640x480  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 name: aaaaaaahhhhhh
 author:
 copyright:
 comments:
==========================================================================
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))
==========================================================================
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0   size:921600  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 - 640 x 480 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Planar YV12
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
alsa-init: using device default
alsa-lib: pcm_hw.c:1246:(snd_pcm_hw_open) open /dev/snd/pcmC0D1p failed: Device or resource busy
alsa-init: playback open error: Device or resource busy
[AO ESD] latency: [server: 0.28s, net: 0.00s] (adjust 0.28s)
AO: [esd] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
A:   1.9 V:   2.0 A-V: -0.131 ct:  0.000   1/  1 ??% ??% ??,?% 0 0

MPlayer interrupted by signal 4 in module: decode_video
- MPlayer crashed by an 'Illegal Instruction'.
  It usually happens when you run it on a CPU different than the one it was
  compiled/optimized for.
  Verify this!
- 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.


my useflags are for mplayer:
Code:
[ebuild   R   ] media-video/mplayer-1.0_pre8-r1  USE="3dfx 3dnow X aac alsa bidi cdparanoia dga directfb dts dv dvd dvdread encode esd gif gtk ipv6 joystick jpeg lirc live mad mmx openal opengl oss png sdl sse sse2 svga theora truetype unicode v4l v4l2 vorbis win32codecs x264 xmms xv xvid -3dnowext -aalib -amr -arts -bindist -bl -cpudetection -custom-cflags* -debug* -doc -dvb -fbcon -ggi -jack -libcaca -livecd -lzo -matrox -mmxext -musepack -nas -real -rtc -samba -speex -tga -xanim -xinerama -xvmc"


The seek in mp3-files works. I already tried recompiling it without custom cflags set, no change. the gdb backtrace gives me this:
Code:
 $ gdb --args mplayer avatar\ -\ trailer.wmv GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

gdb> run
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
MPlayer 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team
CPU:               Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 9)
MMX2 supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX 3DNow SSE SSE2


93 audio & 211 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.

Playing avatar - trailer.wmv.
ASF file format detected.
VIDEO:  [WMV3]  640x480  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 name: aaaaaaahhhhhh
 author:
 copyright:
 comments:
==========================================================================
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))
==========================================================================
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0   size:921600  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 - 640 x 480 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Planar YV12
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
alsa-init: using device default
alsa-lib: pcm_hw.c:1246:(snd_pcm_hw_open) open /dev/snd/pcmC0D1p failed: Device or resource busy
alsa-init: playback open error: Device or resource busy
[AO ESD] latency: [server: 0.28s, net: 0.00s] (adjust 0.28s)
AO: [esd] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
A:   2.0 V:   2.0 A-V: -0.049 ct: -0.004   1/  1 ??% ??% ??,?% 0 0
Program received signal SIGILL, Illegal instruction.
_______________________________________________________________________________
     eax:00000019 ebx:08B54AE0  ecx:B7C9446B  edx:00000000     eflags:00210202
     esi:08B52090 edi:000001AA  esp:BFCC19D8  ebp:BFCC19E8     eip:080F9E3F
     cs:0073  ds:007B  es:007B  fs:008F  gs:0033  ss:007B    o d I t s z a p c
[007B:BFCC19D8]---------------------------------------------------------[stack]
BFCC1A08 : 80 02 00 00  00 00 00 00 - 80 02 00 00  01 00 00 00 ................
BFCC19F8 : 90 20 B5 08  E0 4A B5 08 - B0 01 00 00  6B 44 C9 B7 . ...J......kD..
BFCC19E8 : 18 1A CC BF  D4 46 0D 08 - AA 01 00 00  19 00 00 00 .....F..........
BFCC19D8 : 00 00 00 00  30 71 7E 08 - D0 5E 0E 08  FF 65 61 6D ....0q~..^...eam
[007B:08B52090]---------------------------------------------------------[ data]
08B52090 : 00 00 00 00  00 00 00 00 - 00 00 00 00  00 00 00 00 ................
08B520A0 : 00 00 00 00  00 00 00 00 - 00 00 00 00  00 00 00 00 ................
[0073:080F9E3F]---------------------------------------------------------[ code]
0x80f9e3f <vo_draw_alpha_yv12+39>:      prefetchw (%ecx)
0x80f9e42 <vo_draw_alpha_yv12+42>:      prefetch (%ebx)
0x80f9e45 <vo_draw_alpha_yv12+45>:      prefetch (%esi)
0x80f9e48 <vo_draw_alpha_yv12+48>:      pcmpeqb %mm5,%mm5
0x80f9e4b <vo_draw_alpha_yv12+51>:      movq   %mm5,%mm4
0x80f9e4e <vo_draw_alpha_yv12+54>:      psllw  $0x8,%mm5
------------------------------------------------------------------------------
0x080f9e3f in vo_draw_alpha_yv12 ()
gdb> quit


This is already the output of a mplayerversion compiled with USE="debug"...
Are there any suggestions? I have a pentium4 and had prior to it an athlonxp, though i reemerged world after the change.

thx in advance
Seelenfeuer
_________________
Is this your only grace -
The art of conversation?

~Paradise Lost~


Last edited by Seelenfeuer on Thu Jul 13, 2006 2:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Thu Jul 13, 2006 1:42 pm    Post subject: Reply with quote

For starters, try recompiling it with "mmxext" and "rtc" USE flags added. And you might also post your CFLAGS setting, the "illegal instruction" seems to have something to do with the mmx and sse instruction sets.
Back to top
View user's profile Send private message
Seelenfeuer
n00b
n00b


Joined: 09 Nov 2005
Posts: 73

PostPosted: Thu Jul 13, 2006 2:23 pm    Post subject: Reply with quote

Thank you, that helped! If there is further interest in this problem i can post more output/backtraces/whatever u want.

With kind regards
Seelenfeuer
_________________
Is this your only grace -
The art of conversation?

~Paradise Lost~
Back to top
View user's profile Send private message
selig
Guru
Guru


Joined: 31 Jul 2005
Posts: 425
Location: Prague, Czech Republic

PostPosted: Fri Jul 14, 2006 9:28 am    Post subject: Reply with quote

I think that is not needed, since obviously mplayer just got confused about your cpu and its instruction sets by using the wrong compile options. Also since you have turned the "rtc" USE flag on, you might want to execute the following as root:

Code:

echo 1024 >/proc/sys/dev/rtc/max-user-freq
echo "dev.rtc.max-user-freq = 1024" >>/etc/sysctl.conf


That way your hardware real-time clock will be used instead of software sleep, decreasing the load on your CPU while using mplayer. Also make sure normal users can read from /dev/rtc:

Code:

chmod +r /dev/rtc
Back to top
View user's profile Send private message
Seelenfeuer
n00b
n00b


Joined: 09 Nov 2005
Posts: 73

PostPosted: Fri Jul 14, 2006 9:51 am    Post subject: Reply with quote

Okay, thank you again (although i think ive done this before, but i could be wrong... anyway).

With kind regards
Seelenfeuer
_________________
Is this your only grace -
The art of conversation?

~Paradise Lost~
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum