[MPlayer-users] current cvs mencoder/libavcodec segfaults on pass two
Brett Jones
brett at 5foot2.com
Sun Aug 24 21:46:15 CEST 2003
For a while now (month or two) every time I cvs update and build
mplayer the mencoder fails on pass 2 when ripping dvds. I'm using 2 pass
encoding with these command strings run from a script:
mencoder dvd://$1 -alang en -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1600:vhq:v4mv:qpel:vqmin=2:vqmax=31:keyint=300:vpass=1
-vop scale -zoom -xy 640 -oac copy -sws 2 -o video.avi
mencoder dvd://$1 -alang en -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1600:vhq:v4mv:qpel:vqmin=2:vqmax=31:keyint=300:vpass=2
-vop scale -zoom -xy 640 -oac copy -sws 2 -o video.avi
The build is made with libavcodec updated at the same time. The output
is as follows:
Pass one runs through fine:
MEncoder dev-CVS-030824-01:27-3.2.2 (C) 2000-2003 MPlayer Team
CPU: Intel (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 /root/.mplayer/codecs.conf: Can't open
'/root/.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
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /root/.mplayer/mencoder: No such file or directory
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Reading disc structure, please wait...
There are 10 titles on this DVD.
There are 30 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
success: format: 0 data: 0x0 - 0x9CD82000
Selected DVD audio channel: 128 language: en
MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 3) 29.97 fps 9801.6 kbps (1225.2 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 bps=56000
sample=1)
Writing AVI header...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (640x360 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Pos: 0.7s 22f ( 0%) 0fps Trem: 0min 0mb A-V:0.070 [0:448]
Skipping frame!
Pos: 1.0s 32f ( 0%) 0fps Trem: 0min 0mb A-V:0.068 [49:448]
Pass two fails with this output:
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)[1282:448]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (640x360 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
get_buffer() failed (0 -142477 0 0x40ed0a30)
./encode_cvs_dvd: line 8: 24520 Segmentation fault mencoder
dvd://$1 -alang en -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1600:vhq:v4mv:qpel:vqmin=2:vqmax=31:keyint=300:vpass=1
-vop scale -zoom -xy 640 -oac copy -sws 2 -o video.avi
MEncoder dev-CVS-030824-01:27-3.2.2 (C) 2000-2003 MPlayer Team
CPU: Intel (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 /root/.mplayer/codecs.conf: Can't open
'/root/.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
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /root/.mplayer/mencoder: No such file or directory
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Reading disc structure, please wait...
There are 10 titles on this DVD.
There are 30 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
success: format: 0 data: 0x0 - 0x9CD82000
Selected DVD audio channel: 128 language: en
MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 3) 29.97 fps 9801.6 kbps (1225.2 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 bps=56000
sample=1)
Writing AVI header...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (640x360 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
2pass failed: reading from filename=divx2pass.log
FATAL: Cannot initialize video driver.
./encode_cvs_dvd: line 9: 24529 Segmentation fault mencoder
dvd://$1 -alang en -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1600:vhq:v4mv:qpel:vqmin=2:vqmax=31:keyint=300:vpass=2
-vop scale -zoom -xy 640 -oac copy -sws 2 -o video.avi
--
Brett Jones
brett at 5foot2.com
More information about the MPlayer-users
mailing list