[MPlayer-users] Mencoder segfault

Dirkjan Krijnders dirkjan at arago.utwente.nl
Wed Jun 26 13:11:01 CEST 2002


Hi,

I get a seg fault during an conversion using mencoder(CVS from an hour
ago, as well as pre5):
mencoder output.avi -o kubux.avi -vop format=rgb -lavcopts vcodec=mpeg4
output.avi is made by:
mencoder logo\*.jpg -mf on:fps=24:type=jpg -ovc copy -o output.avi

These are my first tries at converting, so I hope I didn't do/forgot
anything stupid, anyways here is the bug report:

The bug report:
- Debian 3.0
- Linux thor 2.4.18 #1 za mrt 2 13:09:55 CET 2002 i686 unknown
- libc-2.2.5.so
- XFree86 Version 4.1.0.1 / X Window System
- gcc version 3.0.4
  GNU ld version 2.12.90.0.9 20020526 Debian GNU/Linux
- GNU assembler 2.12.90.0.9 20020526 Debian GNU/Linux

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 3
model name      : AMD Athlon(tm) Processor
stepping        : 0
cpu MHz         : 605.408
cache size      : 64 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips        : 1205.86

But the crash also happened on another Debian unstable system, info
available on request.

Skip video info, as mencoder doesn't use it( or does it?)

The backtrace:
#0  fast_memcpy (to=0x409f7d20, from=0x0, len=400) at
aclib_template.c:173
#1  0x080bceef in reorder_input (s=0x40844008, pict=0xbfffe310)
    at mpegvideo.c:705
#2  0x080bd092 in MPV_encode_picture (avctx=0x8282284, buf=0x40643008
"", 
    buf_size=2097152, data=0xbfffe310) at mpegvideo.c:764
#3  0x080baf6d in avcodec_encode_video (avctx=0x8282284, buf=0x40643008
"", 
    buf_size=2097152, pict=0xbfffe310) at utils.c:88
#4  0x08077979 in put_image (vf=0x827dc20, mpi=0x82bcd48) at
ve_lavc.c:278
#5  0x08084303 in vf_next_put_image (vf=0x8282528, mpi=0x82bcd48) at
vf.c:328
#6  0x080854db in put_image (vf=0x8282528, mpi=0x82bcce8) at
vf_expand.c:256
#7  0x0807bc28 in decode_video (sh_video=0x8283008, start=0x82a63a0
"ÿØÿà", 
    in_size=14240, drop_frame=0) at dec_video.c:221
#8  0x0805fb8a in main (argc=7, argv=0xbffff894, envp=0xbffff8b4)
    at mencoder.c:984

The dis-ass:
Dump of assembler code from 0x80736dd to 0x807371d:
0x80736dd <fast_memcpy+45>:     add    %al,(%ecx)
0x80736df <fast_memcpy+47>:     add    %al,(%eax)
0x80736e1 <fast_memcpy+49>:     cmp    $0x3f,%eax
0x80736e4 <fast_memcpy+52>:     jbe    0x8073863 <fast_memcpy+435>
0x80736ea <fast_memcpy+58>:     mov    %edi,%ecx
0x80736ec <fast_memcpy+60>:     and    $0x3f,%ecx
0x80736ef <fast_memcpy+63>:     je     0x80736ff <fast_memcpy+79>
0x80736f1 <fast_memcpy+65>:     mov    $0x40,%eax
0x80736f6 <fast_memcpy+70>:     sub    %ecx,%eax
0x80736f8 <fast_memcpy+72>:     mov    %eax,%ecx
0x80736fa <fast_memcpy+74>:     sub    %ecx,0xfffffff0(%ebp)
0x80736fd <fast_memcpy+77>:     repz movsb %ds:(%esi),%es:(%edi)
0x80736ff <fast_memcpy+79>:     mov    0xfffffff0(%ebp),%ecx
0x8073702 <fast_memcpy+82>:     andl   $0x3f,0xfffffff0(%ebp)
0x8073706 <fast_memcpy+86>:     shr    $0x6,%ecx
0x8073709 <fast_memcpy+89>:     jmp    0x807375c <fast_memcpy+172>
0x807370b <fast_memcpy+91>:     nop    
0x807370c <fast_memcpy+92>:     lea    0x0(%esi,1),%esi
0x8073710 <fast_memcpy+96>:     prefetchnta 0x140(%esi)
0x8073717 <fast_memcpy+103>:    movq   (%esi),%mm0
0x807371a <fast_memcpy+106>:    movq   0x8(%esi),%mm1
End of assembler dump.

attached is: 
mencoder.log:	output of mencoder -v

output.avi is (being) uploaded into incoming.

Thanks,

Dirkjan

-------------- next part --------------
Using pass3 control file: frameno.avi
Font /home/dirkjan/.mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 0  data: 0x0 - 0x4BC028
======= AVI Header =======
us/frame: 41666  (fps=24.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 201   initial: 0
streams: 1
Suggested BufferSize: 0
Size:  352 x 288
======= STREAM Header =======
Type: vids   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 240000/10000 = 24.000
Start: 0   Len: 201
Suggested BufferSize: 29432
Quality 0
Sample size: 0
======= VIDEO Format ======
  biSize 40
  biWidth 352
  biHeight 288
  biPlanes 1
  biBitCount 24
  biCompression 1196444233='IJPG'
  biSizeImage 304128
==========================lilibavcodec: CPU flags: mmx mmxext 3dnow
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Unknown format name: 'rgb'
Writing AVI header...
videocodec: libavcodec (800x600 fourcc=58564944 [DIVX])
et: 0x808 (movi=0x80C idx0=0x4 idx1=0x37AC)
Auto-selected AVI video ID = 0
AVI_NI: No Audio stream found...  ->nosound
AVI video length=4957508
VIDEO:  [IJPG]  352x288  24bpp  24.00 fps  4735.5 kbps (578.1 kbyte/s)
[V] filefmt:3  fourcc:0x47504A49  size:352x288  fps:24.00  ftime:=0.0417
Opening video filter: [expand=-1:-1:-1:-1:1]
Opening video filter: [format=rgb]
Couldn't open video filter 'format'
==========================================================================
Opening video decoder: [ijpg] JPEG Images decoder
Detected video codec: [ijpg] drv:22 (IJPG codec)
==========================================================================
VDec: vo config request - 800 x 600 (preferred csp: RGB 24-bit)  
vo_debug: query(RGB 24-bit) returned 0x0 (i=0) 
vo_debug: query(BGR 24-bit) returned 0x0 (i=1) 
vo_debug: query(BGR 32-bit) returned 0x0 (i=2) 
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
vo_debug: query(RGB 24-bit) returned 0x441 (i=0) 
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
vo_debug: query(BGR 24-bit) returned 0x441 (i=1) 
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
vo_debug: query(BGR 32-bit) returned 0x441 (i=2) 
Movie-Aspect is undefined - no prescaling applied.
video_out->init(800x600->800x600,flags=0,'MPlayer',0x52474218)
scale: query(BGR 32-bit) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(BGR 16-bit) -> 0
scale: query(BGR 15-bit) -> 0
scale: query(Planar YV12) -> 1
scale: query(Planar I420) -> 1
scale: query(Planar IYUV) -> 1
scale: query(Planar Y800) -> 0
scale: query(Planar Y8) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
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 RGB 24-bit 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: 800x600 -> 800x600
REQ: flags=0x401  req=0x0  
REQ: flags=0x401  req=0x0  
*** [scale] Allocating mp_image_t, 800x600x24bpp RGB packed, 1440000 bytes
*** [lavc] Allocating mp_image_t, 800x600x24bpp RGB packed, 1440000 bytes


More information about the MPlayer-users mailing list