[MPlayer-users] Mencoder asf2divX bug
Moebius
moebius at altern.org
Wed Feb 12 17:08:32 CET 2003
asf2divX bug description file. JMR 12/02/2003
=============================================
(e-mail : moebius at altern.org)
related files (see ftp://mplayerhq.hu/MPlayer/incoming/):
asf2divX_OK.asf : example file OK
asf2divX_fault.asf : example bug file
asf2divX.txt : this file
I have a problem to deal with somes ASF encoded files. I'm trying to
transform these files to AVI files using 2 (or 3) pass MPEG-4 encoding. The
aims is to be able to merge then after using avimerge.
The problem is that mencoder segfaults on certains files at the begining of
the last pass. As proposed on MPlayer-users list I've prepared a bugreport.
Here is my config :
distrib : Mandrake 9.0
kernel : 2.4.19-16mdk
libc : 2.2.5
X : XFree86 Version 4.2.1 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 3 September 2002
gcc : 3.2
ld : GNU ld version 2.12.90.0.15 20020717
as : GNU assembler 2.12.90.0.15 20020717
cpu : processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 1
model name : Intel(R) Pentium(R) 4 CPU 1.90GHz
stepping : 2
cpu MHz : 1894.276
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 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 3774.87
video card : ATI FireGL 8800
video driver : ATI drivers fglrx-glc22, Version : 4.2.0, Release : 2.5.1
fireGLinfo : OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Fire GL 8800 128MB DDR Pentium 4 (SSE2)
OpenGL version string: 1.3.3477 (X4.2.0-2.5.1)
lspci -vv output :
00:00.0 Host bridge: Intel Corp. 82850 850 (Tehama) Chipset Host Bridge (MCH)
(rev 04)
Subsystem: Hewlett-Packard Company: Unknown device 124b
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort+ >SERR- <PERR-
Latency: 0
Region 0: Memory at d4000000 (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 2.0
Status: RQ=31 SBA+ 64bit- FW+ Rate=x1,x2,x4
Command: RQ=0 SBA+ AGP+ 64bit- FW+ Rate=x4
00:01.0 PCI bridge: Intel Corp. 82850 850 (Tehama) Chipset AGP Bridge (rev 04)
(prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR+ FastB2B-
Status: Cap- 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 00004000-00004fff
Memory behind bridge: d0000000-d01fffff
Prefetchable memory behind bridge: e0000000-efffffff
BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA PCI Bridge (rev 04) (prog-if 00
[Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR+ FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
I/O behind bridge: 00005000-00005fff
Memory behind bridge: d0200000-d03fffff
BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 04)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 04) (prog-if 80
[Master])
Subsystem: Hewlett-Packard Company: Unknown device 124b
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
Region 4: I/O ports at 1800 [size=16]
00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 04) (prog-if
00 [UHCI])
Subsystem: Hewlett-Packard Company: Unknown device 124b
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin D routed to IRQ 11
Region 4: I/O ports at 1820 [size=32]
00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 04)
Subsystem: Hewlett-Packard Company: Unknown device 124b
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Interrupt: pin B routed to IRQ 9
Region 4: I/O ports at c100 [size=16]
00:1f.5 Multimedia audio controller: Intel Corp. 82801BA/BAM AC'97 Audio (rev
04)
Subsystem: Hewlett-Packard Company: Unknown device 124b
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin B routed to IRQ 9
Region 0: I/O ports at c300 [size=256]
Region 1: I/O ports at c400 [size=64]
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R200 QH (rev
80) (prog-if 00 [VGA])
Subsystem: ATI Technologies Inc: Unknown device 0152
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+
SERR+ FastB2B+
Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 255 (2000ns min), cache line size 08
Interrupt: pin A routed to IRQ 10
Region 0: Memory at e0000000 (32-bit, prefetchable) [size=256M]
Region 1: I/O ports at 4000 [size=256]
Region 2: Memory at d0000000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at <unassigned> [disabled] [size=128K]
Capabilities: [58] AGP version 2.0
Status: RQ=47 SBA+ 64bit- FW+ Rate=x1,x2,x4
Command: RQ=31 SBA+ AGP+ 64bit- FW+ Rate=x4
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
02:08.0 Ethernet controller: Intel Corp. 82801BA/BAM/CA/CAM Ethernet
Controller (rev 03)
Subsystem: Intel Corp.: Unknown device 3013
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping-
SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 32 (2000ns min, 14000ns max), cache line size 08
Interrupt: pin A routed to IRQ 5
Region 0: Memory at d0200000 (32-bit, non-prefetchable) [size=4K]
Region 1: I/O ports at 5000 [size=64]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
Here is the command line sequence :
rm -f frameno.avi
mencoder -v asf2divX_fault.asf -oac mp3lame -lameopts vbr=3 -ovc frameno -o
frameno.avi
mencoder -v asf2divX_fault.asf -oac copy -ovc lavc -lavcopts
vcodec=mpeg4:vpass=1 -o asf2divX_fault_divX.avi
mencoder -v asf2divX_fault.asf -oac copy -ovc lavc -lavcopts
vcodec=mpeg4:vpass=2 -o asf2divX_fault_divX.avi
Segfault occurs on last pass. Here is the last output :
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale
MEncoder 0.90rc4-3.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Intel Pentium 4 Xeon Foster (Family: 8, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf':
No such file or directory
Reading /etc/mplayer/codecs.conf: 50 audio & 135 video codecs
AVI file format detected.
VIDEO: [FrNo] 320x240 24bpp 1000,00 fps 0,5 kbps ( 0,1 kbyte/s)
Using pass3 control file: frameno.avi
Reading config file /root/.mplayer/mencoder: No such file or directory
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Not an URL!
File size is 1167681 bytes
success: format: 0 data: 0x0 - 0x11D141
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x84196c0
ASF file format detected.
ASF: packets: 786 flags: 2 max_packet_size: 1484 min_packet_size: 1484
max_bitrate: 133587 preroll: 1099
stream type: guid_audio_stream
stream concealment: guid_audio_conceal_none
type: 30 bytes, stream: 16 bytes ID: 1
unk1: 0 unk2: 0
FILEPOS=0x154
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 1
Samplerate: 22050
avg byte/sec: 4000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=104
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
ASF: audio scrambling: 1 x 1 x 1
stream type: guid_video_stream
stream concealment: unknown guid 0057fb20-555b-cf11-a8fd00805f5c442b
type: 51 bytes, stream: 0 bytes ID: 2
unk1: 0 unk2: 0
FILEPOS=0x1D0
==> Found video stream: 2
======= VIDEO Format ======
biSize 40
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 842289229='MP42'
biSizeImage 0
===========================
Found movie at 0x307 - 0x11CF5F
ASF: 1 audio and 1 video streams found
Invalid plen type! assuming plen=0
Auto-selected ASF video ID = 2
Invalid plen type! assuming plen=0
Invalid plen type! assuming plen=0
VIDEO: [MP42] 320x240 24bpp
[V] filefmt:6 fourcc:0x3234504D size:320x240 fps:1000,00 ftime:=0,0010
Opening video filter: [expand=-1:-1:-1:-1: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: [ffmp42] vfm:ffmpeg (FFmpeg M$ MPEG-4 v2)
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=22050 bits=0 bps=15774 sample=0)
Writing AVI header...
Invalid plen type! assuming plen=0
avg. framerate: 15 fps
[ffmpeg] aspect_ratio: 0,000000
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
Trying filter chain: expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401 req=0x0
requested bitrate is to low
Could not open codec.
FATAL: Cannot initialize video driver.
videocodec: libavcodec (320x240 fourcc=58564944 [DIVX])
init_vo failed
ext header missing, 0 left
Pos: 0,0s 1f ( 0%) 0fps Trem: 0min 2mb A-V:0,000 [0:0] A/Vms 0/8
D/B/S 0/1/1 Invalid plen type! assuming plen=0
XXX initial v_pts=0,064 a_pos=7770 (0,522)
mp_image: Unknown out_fmt: 0x85867C0
*** [lavc] Allocating mp_image_t, 320x240x0bpp YUV packed, 0 bytes
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
Unicode font: 373 glyphs.
Hope this may help you...
JMR
More information about the MPlayer-users
mailing list