[MPlayer-dev-eng] libavcodec options incompatibility

Giacomo Comes comes at naic.edu
Mon Aug 9 03:17:03 CEST 2004


On Thu, Aug 05, 2004 at 08:56:50PM +0200, Michael Niedermayer wrote:
> Hi
> 
> On Thursday 05 August 2004 18:34, Giacomo Comes wrote:
> > > > If you need more details please ask and I will give you.
> > >
> > > gdb output as described in our bugreportong docs, or upload some
> > > preferably short sample with which this can be reproduced
> >
> > I will do during the week end. Do you need gdb output and/or sample for
> > both the problems or only the second?
> only the second
> 
Ok here is the gdb output.
As I said before mencoder segfault with every video I tryed, so I think
it's not important the source I'm using. Anyway I put it on the web
and can be downloaded at http://spazioinwind.libero.it/encode2mpeg/RAI720x416.avi

For any other help please ask.

Giacomo
-------------- next part --------------
[New Thread 16384 (LWP 7725)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /dev/shm/mplayer/local/share/locale

MEncoder 1.0pre5-3.3.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 3095 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading /local/comes/.mplayer/codecs.conf: Reading /dev/shm/mplayer/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf.
Reading config file /local/comes/.mplayer/mencoderinit_freetype
get_path('font/font.desc') -> '/local/comes/.mplayer/font/font.desc'
font: can't open file: /local/comes/.mplayer/font/font.desc
Font /dev/shm/mplayer/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Filename for url is now http://spazioinwind.libero.it/encode2mpeg/RAI720x416.avi
Filename for url is now http://spazioinwind.libero.it/encode2mpeg/RAI720x416.avi
Resolving spazioinwind.libero.it for AF_INET6...
Resolving spazioinwind.libero.it for AF_INET...
Connecting to server spazioinwind.libero.it[212.141.84.66]:80 ...
--- HTTP DEBUG HEADER --- START ---
protocol:           [HTTP/1.1]
http minor version: [1]
uri:                [(null)]
method:             [(null)]
status code:        [200]
reason phrase:      [OK]
body size:          [1085]
Fields:
 0 - Date: Mon, 09 Aug 2004 00:56:12 GMT
 1 - Server: Apache
 2 - Set-Cookie: Libero=192.65.176.208.146171092012972279; path=/; domain=.libero.it; expires=Mon, 27-Nov-06 00:56:12 GMT
 3 - Last-Modified: Mon, 09 Aug 2004 00:51:24 GMT
 4 - ETag: "7b3b08-c6cba-4116ca8c"
 5 - Accept-Ranges: bytes
 6 - Content-Length: 814266
 7 - Connection: close
 8 - Content-Type: video/x-msvideo
--- HTTP DEBUG HEADER --- END ---
Content-Type: [video/x-msvideo]
Content-Length: [814266]
Cache size set to 320 KBytes
Connected to server: spazioinwind.libero.it
success: format: 3  data: 0x0 - 0x0
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  
AVI file format detected.
list_end=0x192
======= 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: 285   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  720 x 416
==========================
list_end=0x120
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: DIVX (58564944)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 24/1 = 24.000
Start: 0   Len: 285
Suggested BufferSize: 10871
Quality 0
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 720
  biHeight 416
  biPlanes 1
  biBitCount 24
  biCompression 1482049860='DIVX'
  biSizeImage 898560
===========================
Regenerating keyframe table for DIVX 4 video
======= Video Properties Header =======
Format: 0  VideoStandard: 0
VRefresh: 24  HTotal: 720  VTotal: 416
FrameAspect: 16384:9453  Framewidth: 720  Frameheight: 416
Fields: 1
  == Field 0 description ==
  CompressedBMHeight: 416  CompressedBMWidth: 720
  ValidBMHeight: 416  ValidBMWidth: 720
  ValidBMXOffset: 0  ValidBMYOffset: 0
  VideoXOffsetInT: 0  VideoYValidStartLine: 0
=======================================
list_end=0x192
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC: U (55)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 48000/1152 = 41.667
Start: 0   Len: 514
Suggested BufferSize: 768
Quality 0
Sample size: 0
==========================
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 24708
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1152
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
===========================
list_end=0x1BE
hdr=Software  size=23
Software  : MEncoder 1.0pre4-3.3.1
list_end=0xC3AC2
Found movie at 0x100C - 0xC3AC2
success: format: 3  data: 0x0 - 0x0
Resolving spazioinwind.libero.it for AF_INET6...
Resolving spazioinwind.libero.it for AF_INET...
Connecting to server spazioinwind.libero.it[212.141.84.66]:80 ...
Content-Type: [video/x-msvideo]
Content-Length: [13498]
Reading INDEX block, 799 chunks for 285 frames (fpos=0xc3aca)
Resolving spazioinwind.libero.it for AF_INET6...
Resolving spazioinwind.libero.it for AF_INET...
Connecting to server spazioinwind.libero.it[212.141.84.66]:80 ...
Content-Type: [video/x-msvideo]
Content-Length: [810170]
AVI index offset: 0x1008 (movi=0x100C idx0=0x4 idx1=0x18C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=486036 (285) audio size=304800 (514)
VIDEO:  [DIVX]  720x416  24bpp  24.000 fps  327.4 kbps (40.0 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:720x416  fps:24.00  ftime:=0.0417
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 bps=24708 sample=0)
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
XXX initial  v_pts=0.000  a_pos=8832 (0.504) 
Pos:   0.0s      1f ( 1%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms 0/0 D/B/S 0/1/0 
[ffmpeg] aspect_ratio: 1.730769
VDec: vo config request - 720 x 416 (preferred csp: Planar YV12)
Trying filter chain: expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.73:1 - prescaling to correct movie aspect.
VO Config (720x416->722x416,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0  
videocodec: libavcodec (720x416 fourcc=58564944 [DIVX])
*** [lavc] Allocating mp_image_t, 720x416x12bpp YUV planar, 449280 bytes
*** [expand] Direct Rendering mp_image_t, 720x416x12bpp YUV planar, 449280 bytes
Pos:   0.0s      2f ( 1%)   0fps Trem:   0min   0mb  A-V:-0.000 [0:0] A/Vms 0/7 D/B/S 1/2/0 
*** [lavc] Allocating mp_image_t, 720x416x12bpp YUV planar, 449280 bytes
*** [expand] Direct Rendering mp_image_t, 720x416x12bpp YUV planar, 449280 bytes
Pos:   0.1s      3f ( 2%)   0fps Trem:   0min   0mb  A-V:-0.000 [0:0] A/Vms 0/8 D/B/S 2/2/0 
*** [lavc] Allocating mp_image_t, 720x416x12bpp YUV planar, 449280 bytes
*** [expand] Direct Rendering mp_image_t, 720x416x12bpp YUV planar, 449280 bytes
[New Thread 32769 (LWP 7728)]
[New Thread 16386 (LWP 7729)]
[New Thread 32771 (LWP 7730)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 32771 (LWP 7730)]
0x08356d26 in ff_fdct_sse2 (block=0x4201521c) at i386/fdct_mmx.c:353
353	    asm volatile(
#0  0x08356d26 in ff_fdct_sse2 (block=0x4201521c) at i386/fdct_mmx.c:353
#1  0x0821c54a in dct_sad8x8_c (c=0x87e5670, src1=0x85634d0 "", src2=0x85634d0 "", stride=139867344, h=8) at dsputil.c:2924
#2  0x0821cf55 in dct_sad16_c (s=0x87e5670, 
    dst=0x4227d900 '\020' <repeats 16 times>, '\200' <repeats 32 times>, '\020' <repeats 32 times>, "\017\017\020\020\020\020\021\021", '\020' <repeats 16 times>, '\021' <repeats 16 times>, "\020\020\020\020\020\020\020\020\021\021\021\021\021\021\021\021\020\020\020\020\020\020\020\020", '\021' <repeats 56 times>..., 
    src=0x421bb8f0 '\020' <repeats 104 times>, '\021' <repeats 16 times>, "\020\020\020\020\020\020\020\020\021\021\021\021\021\021\021\021\020\020\020\020\020\020\020\020", '\021' <repeats 56 times>..., stride=752, h=16) at dsputil.c:3160
#3  0x0826c1dd in ff_pre_estimate_p_frame_motion (s=0x87e5670, mb_x=44, mb_y=25) at motion_est.c:197
#4  0x081ec077 in pre_estimate_motion_thread (c=0x86e5550, arg=0x87e5670) at mpegvideo.c:3999
#5  0x0830ea84 in worker (v=0x86e5550) at pthread.c:70
#6  0x403bef60 in pthread_start_thread () from /lib/i686/libpthread.so.0
#7  0x403bf0fe in pthread_start_thread_event () from /lib/i686/libpthread.so.0
#8  0x40678327 in clone () from /lib/i686/libc.so.6
Dump of assembler code from 0x8356d06 to 0x8356d46:
0x08356d06 <ff_fdct_sse2+739>:	cmc    
0x08356d07 <ff_fdct_sse2+740>:	int3   
0x08356d08 <ff_fdct_sse2+741>:	paddd  %xmm7,%xmm3
0x08356d0c <ff_fdct_sse2+745>:	paddd  %xmm2,%xmm1
0x08356d10 <ff_fdct_sse2+749>:	paddd  %xmm6,%xmm3
0x08356d14 <ff_fdct_sse2+753>:	paddd  %xmm6,%xmm1
0x08356d18 <ff_fdct_sse2+757>:	psrad  $0x11,%xmm3
0x08356d1d <ff_fdct_sse2+762>:	psrad  $0x11,%xmm1
0x08356d22 <ff_fdct_sse2+767>:	packssdw %xmm3,%xmm1
0x08356d26 <ff_fdct_sse2+771>:	movdqa %xmm1,0x0(%edx)
0x08356d2b <ff_fdct_sse2+776>:	movq   0x40(%ebx),%xmm2
0x08356d30 <ff_fdct_sse2+781>:	movq   0x48(%ebx),%xmm0
0x08356d35 <ff_fdct_sse2+786>:	movdqa 0x20(%ecx),%xmm3
0x08356d3a <ff_fdct_sse2+791>:	movdqa 0x30(%ecx),%xmm7
0x08356d3f <ff_fdct_sse2+796>:	movq   %xmm2,%xmm1
0x08356d43 <ff_fdct_sse2+800>:	pshuflw $0x1b,%xmm0,%xmm0
End of assembler dump.
eax            0x85634d0	139867344
ecx            0x85634e0	139867360
edx            0x4201521c	1107382812
ebx            0x4201517c	1107382652
esp            0x4201517c	0x4201517c
ebp            0x42015204	0x42015204
esi            0x0	0
edi            0x4201521c	1107382812
eip            0x8356d26	0x8356d26
eflags         0x10212	66066
cs             0x23	35
ss             0x2b	43
ds             0x2b	43
es             0x2b	43
fs             0x0	0
gs             0x1f	31
st0            -nan(0x1000100010001)	(raw 0xffff0001000100010001)
st1            -0e+4922	(raw 0xffff0000000000000000)
st2            -nan(0x1000100010001)	(raw 0xffff0001000100010001)
st3            -0e+4922	(raw 0xffff0000000000000000)
st4            -0e+4922	(raw 0xffff0000000000000000)
st5            -nan(0xffffffffffffffff)	(raw 0xffffffffffffffffffff)
st6            -0e+4922	(raw 0xffff0000000000000000)
st7            -nan(0xffffffffffffffff)	(raw 0xffffffffffffffffffff)
fctrl          0x37f	895
fstat          0x20	32
ftag           0xaaaa	43690
fiseg          0x23	35
fioff          0x80be338	134996792
foseg          0x2b	43
fooff          0x8586af8	140012280
fop            0x1c9	457
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}
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 = 0x1000100010001, v2_int32 = {0x10001, 0x10001}, v4_int16 = {0x1, 0x1, 0x1, 0x1}, v8_int8 = {0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 
    0x0}}
mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm2            {uint64 = 0x1000100010001, v2_int32 = {0x10001, 0x10001}, v4_int16 = {0x1, 0x1, 0x1, 0x1}, v8_int8 = {0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 
    0x0}}
mm3            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm4            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm5            {uint64 = 0xffffffffffffffff, v2_int32 = {0xffffffff, 0xffffffff}, v4_int16 = {0xffff, 0xffff, 0xffff, 0xffff}, v8_int8 = {0xff, 0xff, 0xff, 
    0xff, 0xff, 0xff, 0xff, 0xff}}
mm6            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm7            {uint64 = 0xffffffffffffffff, v2_int32 = {0xffffffff, 0xffffffff}, v4_int16 = {0xffff, 0xffff, 0xffff, 0xffff}, v8_int8 = {0xff, 0xff, 0xff, 
    0xff, 0xff, 0xff, 0xff, 0xff}}
-------------- next part --------------
run -v -oac copy -ovc lavc -lavcopts vcodec=mpeg4:threads=2:cmp=3 http://spazioinwind.libero.it/encode2mpeg/RAI720x416.avi
bt
disass $pc-32 $pc+32
info all-registers


More information about the MPlayer-dev-eng mailing list