[MPlayer-users] Crash when viewing MJPEG movies

Lothar Mader lothar_mader at yahoo.de
Sun Dec 18 19:57:56 CET 2005


Hello, all!


I compiled Mplayer from CVS today. Unfortunately I cannot play the
MJPEG videos from my digital camera anymore. All other types of
videos that I could test work well ("DIV3", "DIVX", Mpeg 1).

Is there something that I could try to get it working? I have to use
the CVS version. Mplayer v1.0pre7try2 won't "./configure" with the
recent x264.  


My system:
SuSE 9.1
Linux athlon 2.6.4-52-default
libc.so.6
gcc version 3.3.3 (SuSE Linux)
GNU ld version 2.15.90.0.1.1 20040303 (SuSE Linux)
GNU assembler 2.15.90.0.1.1 20040303 (SuSE Linux)

The outputs of GDB when the crash happens:
(gdb) run -v /tmp/kamera/Neuer\ Ordner/MVI_1399.AVI
Starting program:
/home/lothar/installationsdateien/mplayer_cvs/main/mplayer -v
/tmp/kamera/Neuer\ Ordner/MVI_1399.AVI
[Thread debugging using libthread_db enabled]
[New Thread 1079638048 (LWP 20199)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale

MPlayer dev-CVS-051218-10:54-3.3.3 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Sempron/Athlon MP/XP/XP-M Barton,Thorton
(Family: 6, Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE


get_path('codecs.conf') -> '/home/lothar/.mplayer/codecs.conf'
Reading /home/lothar/.mplayer/codecs.conf: Can't open
'/home/lothar/.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.
CommandLine: '-v' '/tmp/kamera/Neuer Ordner/MVI_1399.AVI'
init_freetype
get_path('font/font.desc') -> '/home/lothar/.mplayer/font/font.desc'
font: can't open file: /home/lothar/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully!
(206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (it should be readable by
the user.)
Using nanosleep() timing
get_path('input.conf') -> '/home/lothar/.mplayer/input.conf'
Can't open input config file /home/lothar/.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: Permission denied
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('MVI_1399.AVI.conf') ->
'/home/lothar/.mplayer/MVI_1399.AVI.conf'
Playing /tmp/kamera/Neuer Ordner/MVI_1399.AVI.
get_path('sub/') -> '/home/lothar/.mplayer/sub/'
[file] File size is 4185528 bytes
STREAM: [file] /tmp/kamera/Neuer Ordner/MVI_1399.AVI
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x15A
======= AVI Header =======
us/frame: 66666  (fps=15.000)
max bytes/sec: 369749
padding: 0
MainAVIHeader.dwFlags: (65552) HAS_INDEX WAS_CAPTUREFILE
frames  total: 223   initial: 0
streams: 2
Suggested BufferSize: 23915
Size:  320 x 240
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: mjpg (67706A6D)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 1000000/66666 = 15.000
Start: 0   Len: 223
Suggested BufferSize: 23915
Quality 10000
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 320
  biHeight 240
  biPlanes 1
  biBitCount 24
  biCompression 1196444237='MJPG'
  biSizeImage 230400
===========================
list_end=0x138
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 11024/1 = 11024.000
Start: 0   Len: 163890
Suggested BufferSize: 11024
Quality 10000
Sample size: 1
==========================
Found 'wf', 16 bytes of 18
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 1
Samplerate: 11024
avg byte/sec: 11024
Block align: 1
bits/sample: 8
cbSize: 0
===========================
hdr=Digitization Time  size=26
Digitization Time: Sun Aug 07 12:31:37 2005

list_end=0x17A
hdr=Software  size=12
Software  : CanonMVI01
list_end=0x3FCED0
Found movie at 0x80C - 0x3FCED0
Reading INDEX block, 238 chunks for 223 frames (fpos=0x3fced8)
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0x2B1C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=4013858 (223) audio size=163890 (163890)
VIDEO:  [MJPG]  320x240  24bpp  15.000 fps  2159.9 kbps (263.7
kbyte/s)
[V] filefmt:3  fourcc:0x47504A4D  size:320x240  fps:15.00 
ftime:=0.0667
Clip info:
 Digitization Time: Sun Aug 07 12:31:37 2005

 Software: CanonMVI01
get_path('sub/') -> '/home/lothar/.mplayer/sub/'
get_path('default.sub') -> '/home/lothar/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 11024 Hz, 1 ch, u8, 88.2 kbit/100.00% (ratio: 11024->11024)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0" => local
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE
BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
[xv common] Maximum source image dimensions: 2046x2046
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Building audio filter chain for 11024Hz/1ch/u8 -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 11024Hz/1ch/u8
[dummy] Was reinitialized: 11024Hz/1ch/u8
ao2: 11024 Hz  1 chans  u8
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: u8 (requested: u8)
audio_setup: using 1 channels (requested: 1)
audio_setup: using 11024 Hz samplerate (requested: 11024)
audio_setup: frags:   8/8  (8192 bytes/frag)  free:  65536
AO: [oss] 11024Hz 1ch u8 (1 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 11024Hz/1ch/u8 -> 11024Hz/1ch/u8...
[dummy] Was reinitialized: 11024Hz/1ch/u8
[dummy] Was reinitialized: 11024Hz/1ch/u8
Starting playback...
XXX initial  v_pts=0.933  a_pos=11024 (1.000)
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 320 x 240 (preferred colorspace: Planar
422P)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=0,'MPlayer',0x50323234)
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from Planar 422P to Planar YV12 using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
SwScaler: 320x240 -> 320x240
REQ: flags=0x437  req=0x0
VO: [xv] 320x240 => 320x240 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 145 for hw scaling
[xv] dx: 0 dy: 0 dw: 320 dh: 256
*** [scale] Allocating mp_image_t, 320x240x16bpp YUV planar, 153600
bytes
*** [vo] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200
bytes

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079638048 (LWP 20199)]
0x081aabb2 in hScale_MMX2 (dst=Variable "dst" is not available.
) at swscale_template.c:2048
2048                    asm volatile(
(gdb) bt
#0  0x081aabb2 in hScale_MMX2 (dst=Variable "dst" is not available.
) at swscale_template.c:2048
Cannot access memory at address 0xfffffec4
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x81aab92 to 0x81aabd2:
0x081aab92 <hScale_MMX2+274>:   decl   (%edi)
0x081aab94 <hScale_MMX2+276>:   outsl  %ds:(%esi),(%dx)
0x081aab95 <hScale_MMX2+277>:   xor    $0x850efe0,%eax
0x081aab9a <hScale_MMX2+282>:   push   %ebp
0x081aab9b <hScale_MMX2+283>:   mov    %eax,%ebp
0x081aab9d <hScale_MMX2+285>:   lea    0x0(%esi),%esi
0x081aaba0 <hScale_MMX2+288>:   movzwl (%edx,%ebp,1),%eax
0x081aaba4 <hScale_MMX2+292>:   movzwl 0x2(%edx,%ebp,1),%ebx
0x081aaba9 <hScale_MMX2+297>:   movq   (%ecx,%ebp,4),%mm1
0x081aabad <hScale_MMX2+301>:   movq   0x8(%ecx,%ebp,4),%mm3
0x081aabb2 <hScale_MMX2+306>:   movd   (%esi,%eax,1),%mm0
0x081aabb6 <hScale_MMX2+310>:   movd   (%esi,%ebx,1),%mm2
0x081aabba <hScale_MMX2+314>:   punpcklbw %mm7,%mm0
0x081aabbd <hScale_MMX2+317>:   punpcklbw %mm7,%mm2
0x081aabc0 <hScale_MMX2+320>:   pmaddwd %mm1,%mm0
0x081aabc3 <hScale_MMX2+323>:   pmaddwd %mm2,%mm3
0x081aabc6 <hScale_MMX2+326>:   psrad  $0x8,%mm0
0x081aabca <hScale_MMX2+330>:   psrad  $0x8,%mm3
0x081aabce <hScale_MMX2+334>:   packssdw %mm3,%mm0
0x081aabd1 <hScale_MMX2+337>:   pmaddwd %mm6,%mm0
End of assembler dump.
(gdb) info all-registers
eax            0x0      0
ecx            0x861fc18        140639256
edx            0x861f710        140637968
ebx            0x1      1
esp            0xbfffd8ac       0xbfffd8ac
ebp            0xfffffec0       0xfffffec0
esi            0xa0     160
edi            0x87e78c8        142506184
eip            0x81aabb2        0x81aabb2
eflags         0x10203  66051
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
st0            -nan(0x3b0039003b003900) (raw 0xffff3b0039003b003900)
st1            -nan(0x000004000)        (raw 0xffff0000000000004000)
st2            -nan(0x760072006d006b)   (raw 0xffff00760072006d006b)
st3            -nan(0x000004000)        (raw 0xffff0000000000004000)
st4            -nan(0x828383848382807f) (raw 0xffff828383848382807f)
st5            -nan(0x82008300830084)   (raw 0xffff0082008300830084)
st6            -nan(0x2000200020002)    (raw 0xffff0002000200020002)
st7            <invalid float value>    (raw 0xffff0000000000000000)
fctrl          0x37f    895
fstat          0x120    288
ftag           0xaaaa   43690
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats
16 times>}, v8_int16 = {
    0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64
= {
    0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats
16 times>}, v8_int16 = {
    0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64
= {
    0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats
16 times>}, v8_int16 = {
    0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64
= {
    0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats
16 times>}, v8_int16 = {
    0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64
= {
    0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats
16 times>}, v8_int16 = {
    0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64
= {
    0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats
16 times>}, v8_int16 = {
    0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64
= {
    0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats
16 times>}, v8_int16 = {
    0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64
= {
    0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
---Type <return> to continue, or q <return> to quit---
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x8000000000000000}, v16_int8 = {0xff <repeats
16 times>}, v8_int16 = {
    0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff},
v4_int32 = {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64
= {
    0xffffffffffffffff, 0xffffffffffffffff}, uint128 =
0xffffffffffffffffffffffffffffffff}
mxcsr          0x1f80   8064
mm0            {uint64 = 0x3b0039003b003900, v2_int32 = {0x3b003900,
0x3b003900}, v4_int16 = {0x3900, 0x3b00, 0x3900, 0x3b00}, v8_int8 =
{0x0, 0x39, 0x0,
    0x3b, 0x0, 0x39, 0x0, 0x3b}}
mm1            {uint64 = 0x4000, v2_int32 = {0x4000, 0x0}, v4_int16 =
{0x4000, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x40, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}}
mm2            {uint64 = 0x760072006d006b, v2_int32 = {0x6d006b,
0x760072}, v4_int16 = {0x6b, 0x6d, 0x72, 0x76}, v8_int8 = {0x6b, 0x0,
0x6d, 0x0, 0x72,
    0x0, 0x76, 0x0}}
mm3            {uint64 = 0x4000, v2_int32 = {0x4000, 0x0}, v4_int16 =
{0x4000, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x40, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}}
mm4            {uint64 = 0x828383848382807f, v2_int32 = {0x8382807f,
0x82838384}, v4_int16 = {0x807f, 0x8382, 0x8384, 0x8283}, v8_int8 =
{0x7f, 0x80,
    0x82, 0x83, 0x84, 0x83, 0x83, 0x82}}
mm5            {uint64 = 0x82008300830084, v2_int32 = {0x830084,
0x820083}, v4_int16 = {0x84, 0x83, 0x83, 0x82}, v8_int8 = {0x84, 0x0,
0x83, 0x0, 0x83,
    0x0, 0x82, 0x0}}
mm6            {uint64 = 0x2000200020002, v2_int32 = {0x20002,
0x20002}, v4_int16 = {0x2, 0x2, 0x2, 0x2}, v8_int8 = {0x2, 0x0, 0x2,
0x0, 0x2, 0x0, 0x2,
    0x0}}
mm7            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0,
0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
(gdb)


	
		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de




More information about the MPlayer-users mailing list