[MPlayer-users] mencoder segfault bug report
Sami Nieminen
sami.nieminen at iki.fi
Sun Jul 7 22:56:01 CEST 2002
Hi,
This bug report describes a segmentation fault when trying to encode an avi
produced by Canon Digital IXUS v2 to mpeg4. Playing the same file with
mplayer works without problems. If I use -oac copy when encoding, the
segmentation fault does not occur. So this seems to be related to the pcm ->
mp3 encoding.
Similar bug report already reported is in here:
http://www.MPlayerHQ.hu/pipermail/mplayer-users/2002-May/015329.html
*****************************************
System info:
distribution: Gentoo Linux
kernel: 2.4.19-pre10-ac2
libc: 2.2.5
X: 4.2.0
gcc: 2.95.3 20010315
ld: 2.11.92.0.12.3 20011121
binutils: 2.11.92.0.12.3 20011121
cpu: dual p3-700
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 6
cpu MHz : 703.168
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips : 1402.47
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 6
cpu MHz : 703.168
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips : 1405.74
video card: nvidia geforce2 gts 32mb
video driver: nvidia binary 1.0-2960
sound card: Creative SBLive! 1024 with ALSA OSS emulation
******************************************
mencoder output:
bash-2.05a$ mencoder -v MVI_0005.AVI -lavcopts vcodec=mpeg4 -o movie.avi
MEncoder CVS-020707-20:29-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/samppa/.mplayer/codecs.conf: can't open '/home/samppa/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/share/mplayer/codecs.conf: 36 audio & 101 video codecs
File not found: 'frameno.avi'
get_path('font/font.desc') -> '/home/samppa/.mplayer/font/font.desc'
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
font: can't open file: /home/samppa/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Not an URL!
File size is 2736340 bytes
Detected AVI file format!
success: format: 0 data: 0x0 - 0x29C0D4
list_end=0x15A
list_end=0xD4
======= AVI Header =======
us/frame: 50000 (fps=20.000)
max bytes/sec: 112384
padding: 0
MainAVIHeader.dwFlags: (65552) HAS_INDEX WAS_CAPTUREFILE
frames total: 600 initial: 0
streams: 2
Suggested BufferSize: 11024
Size: 160 x 120
==> Found video stream: 0
found 'bih', 40 bytes of 40
======= STREAM Header =======
Type: vids FCC: mjpg (67706A6D)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 1000000/50000 = 20.000
Start: 0 Len: 600
Suggested BufferSize: 5068
Quality 10000
Sample size: 0
list_end=0x138
======= VIDEO Format ======
biSize 40
biWidth 160
biHeight 120
biPlanes 1
biBitCount 24
biCompression 1196444237='MJPG'
biSizeImage 57600
===========================
==> Found audio stream: 1
found 'wf', 16 bytes of 20
======= STREAM Header =======
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 11024/1 = 11024.000
Start: 0 Len: 330720
Suggested BufferSize: 11024
Quality 10000
Sample size: 1
hdr=Digitization Time size=26
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 1
Samplerate: 11024
avg byte/sec: 11024
Block align: 1
bits/sample: 8
cbSize: 0
Digitization Time: Thu Jul 04 17:06:39 2002
Broken chunk? chunksize=0 (id=IDIT)
hdr=Digitization Time size=26
Digitization Time: Thu Jul 04 17:06:39 2002
Demuxer info Digitization Time already present
!list_end=0x17A
hdr=Software size=12
Software : CanonMVI01
Broken chunk? chunksize=1662 (id=JUNK)
list_end=0x29996C
Found movie at 0x80C - 0x29996C
Reading INDEX block, 630 chunks for 600 frames
Broken chunk? chunksize=0 (id=idx1)
Reading INDEX block, 630 chunks for 600 frames
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 length=2388440
VIDEO: [MJPG] 160x120 24bpp 20.00 fps 636.9 kbps (77.7 kbyte/s)
[V] filefmt:3 fourcc:0x47504A4D size:160x120 fps:20.00 ftime:=0.0500
Detected audio codec: [pcm] drv:2 (Uncompressed PCM)
Initializing audio codec...
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer
AUDIO: srate=11024 chans=1 bps=1 sfmt=0x8 ratio: 11024->11024
Opening video filter: [expand=-1:-1:-1:-1:1]
libavcodec: CPU flags: mmx mmxext sse
==========================================================================
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video decoder: [vfw] Win32/VfW video codecs
VDec: vo config request - 160 x 120 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9
vo_debug: query(Packed YUY2) returned 0x0 (i=0)
vo_debug: query(Packed UYVY) returned 0x0 (i=1)
vo_debug: query(BGR 32-bit) returned 0x0 (i=2)
vo_debug: query(BGR 24-bit) returned 0x0 (i=3)
vo_debug: query(BGR 15-bit) returned 0x0 (i=4)
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(BGR 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 32-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(RGB 1-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(Packed YUY2) returned 0x441 (i=0)
vo_debug: query(Packed UYVY) returned 0x0 (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(BGR 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 32-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(RGB 1-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)
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(BGR 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 32-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(RGB 1-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=3)
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(BGR 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 32-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(RGB 1-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 15-bit) returned 0x441 (i=4)
Movie-Aspect is undefined - no prescaling applied.
video_out->init(160x120->160x120,flags=0,'MPlayer',0x32595559)
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(BGR 8-bit) -> 0
scale: query(BGR 4-bit) -> 0
scale: query(BGR 1-bit) -> 0
scale: query(RGB 32-bit) -> 0
scale: query(RGB 24-bit) -> 0
scale: query(RGB 16-bit) -> 0
scale: query(RGB 15-bit) -> 0
scale: query(RGB 8-bit) -> 0
scale: query(RGB 4-bit) -> 0
scale: query(RGB 1-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 Packed YUY2 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: 160x120 -> 160x120
REQ: flags=0x401 req=0x0
REQ: flags=0x401 req=0x0
======= Win32 (VFW) VIDEO Codec init =======
videocodec: libavcodec (160x120 fourcc=58564944 [DIVX])
get_path('registry') -> '/home/samppa/.mplayer/registry'
Loading DLL: 'm3jpeg32.dll'
ICDecompressGetFormat OK
ICDecompressGetFormatSize ret: 40
ICDecompressQuery OK
Starting decompression, format:
biSize 40
biWidth 160
biHeight 120
biPlanes 1
biBitCount 24
biCompression 0x47504a4d ('MJPG')
biSizeImage 57600
Dest fmt:
biSize 40
biWidth 160
biHeight -120
biPlanes 1
biBitCount 16
biCompression 0x32595559 ('YUY2')
biSizeImage 38400
ICDecompressBegin failed: Error -2
VIDEO CODEC Init OK!!! ;-)
Called unk_MessageBeep
Called unk_GetActiveWindow
Called unk_DialogBoxParamA
INFO: Win32 video codec init OK!
Detected video codec: [m3jpeg] drv:2 (Morgan Motion JPEG Codec)
==========================================================================
LAME version 3.92 MMX (http://www.mp3dev.org/)
CPU features: i387, MMX (ASM used), SIMD
Using polyphase lowpass filter, transition band: 5379 Hz - 5512 Hz
misc:
scaling: 0.000000
ch0 (left) scaling: 0.000000
ch1 (right) scaling: 0.000000
filter type: 0
quantization: ISO
huffman search: normal
experimental X=0 Y=0 Z=0
...
stream format:
MPEG-2.5 Layer 3
1 channel - mono
padding: auto
variable bitrate - VBR rh (default)
...
psychoacoustic:
tonality estimation limit: 0.000000 Hz
using short blocks: ?
adjust masking: 0.000000 dB
psymodel: 0
noise shaping: 0
^ amplification: 0
^ stopping: 0
ATH: using
^ type: -1
^ adjust type: 0
^ adapt threshold type: -1
using temporal masking effect: yes
interchannel masking ratio: 0.000000
...
*** [scale] Allocating mp_image_t, 160x120x16bpp YUV packed, 38400 bytes
MP3 audio selected
Writing AVI header...
*** [lavc] Allocating mp_image_t, 160x120x12bpp YUV planar, 28800 bytes
*** [expand] Direct Rendering mp_image_t, 160x120x12bpp YUV planar, 28800 bytes
Pos: 0.1s 1f ( 0%) 0fps Trem: 0min 1mb A-V:0.000 [0:0] A/Vms 0/3 D/S 0/0
Pos: 0.1s 2f ( 0%) 0fps Trem: 0min 1mb A-V:0.005 [0:0] A/Vms 0/3 D/S 0/0
Pos: 0.1s 3f ( 0%) 0fps Trem: 0min 1mb A-V:0.010 [0:0] A/Vms 0/4 D/S 0/0
Pos: 0.2s 4f ( 0%) 0fps Trem: 0min 1mb A-V:0.015 [0:0] A/Vms 0/4 D/S 0/0
XXX initial v_pts=0.950 a_pos=11024 (1.000)
Pos: 0.2s 5f ( 3%) 0fps Trem: 0min 0mb A-V:0.020 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.3s 6f ( 3%) 0fps Trem: 0min 0mb A-V:0.025 [0:0] A/Vms 0/4 D/S 0/0
Pos: 0.3s 7f ( 3%) 0fps Trem: 0min 0mb A-V:0.030 [0:0] A/Vms 0/4 D/S 0/0
Pos: 0.4s 8f ( 3%) 0fps Trem: 0min 0mb A-V:0.035 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.5s 9f ( 3%) 0fps Trem: 0min 0mb A-V:0.040 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.5s 10f ( 7%) 0fps Trem: 0min 0mb A-V:0.045 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.6s 11f ( 7%) 0fps Trem: 0min 0mb A-V:0.050 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.6s 12f ( 7%) 0fps Trem: 0min 0mb A-V:0.055 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.7s 13f ( 7%) 0fps Trem: 0min 0mb A-V:0.060 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.7s 14f ( 7%) 0fps Trem: 0min 0mb A-V:0.065 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.8s 15f (11%) 0fps Trem: 0min 0mb A-V:0.070 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.8s 16f (11%) 0fps Trem: 0min 0mb A-V:0.075 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.8s 17f (11%) 0fps Trem: 0min 0mb A-V:0.080 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.9s 18f (11%) 0fps Trem: 0min 0mb A-V:0.085 [0:0] A/Vms 0/5 D/S 0/0
Pos: 0.9s 19f (11%) 0fps Trem: 0min 0mb A-V:0.090 [0:0] A/Vms 0/5 D/S 0/0
Pos: 1.0s 20f (15%) 0fps Trem: 0min 0mb A-V:0.095 [0:0] A/Vms 0/5 D/S 0/0
Pos: 1.1s 21f (15%) 0fps Trem: 0min 0mb A-V:0.100 [313:0] A/Vms 0/5 D/S 0/0
Pos: 1.1s 22f (15%) 0fps Trem: 0min 0mb A-V:0.105 [312:0] A/Vms 0/5 D/S 0/0
Segmentation fault
***************************************
MVI_0005.AVI is uploaded to ftp://mplayerhq.hu/MPlayer/incoming/
BR, Sami
--
Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating
system, written for a 4 bit processor by a 2 bit company which can
not stand 1 bit of competition.
More information about the MPlayer-users
mailing list