Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#187 closed defect (later)

mencoder segfault on pass2

Reported by: gregoire.favre@… Owned by: alex@…
Priority: normal Component: vf
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

First pass works perfectly :
mencoder -vf crop=464:560:8:8,scale=352:400 -sws 2 -oac mp3lame -lameopts
preset=standard -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=700:trell:mv0:mbd=2:v4mv:qprd:cmp=3:subcmp=3:mbcmp=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:vpass=1:turbo
-o /dev/null Paramoteur.mpg

And second one don't:
mencoder -vf crop=464:560:8:8,scale=352:400 -sws 2 -oac mp3lame -lameopts
preset=standard -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=700:trell:mv0:mbd=2:v4mv:qprd:cmp=3:subcmp=3:mbcmp=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:vpass=2:turbo
-o Paramoteur.avi Paramoteur.mpg
MEncoder dev-CVS-041230-14:53-3.4.3 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices (Family: 8, Stepping: 0)
Detected cache-line size is 64 bytes
Cannot test OS support for SSE, disabling to be safe.
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0 data: 0x0 - 0xc91000
MPEG-PS file format detected.
VIDEO: MPEG2 480x576 (aspect 2) 25.000 fps 15000.0 kbps (1875.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:480x576 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, 16 bit (0x9), ratio: 24000->192000 (192.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale w=352 h=400]
Opening video filter: [crop w=464 h=560 x=8 y=8]
Crop: 464 x 560, 8 ; 8
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 480 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.

preset=standard

VDec: vo config request - 480 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler?: reducing / aligning filtersize 7 -> 8
SwScaler?: reducing / aligning filtersize 7 -> 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 (352x400 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Pos: 0.0s 1f ( 2%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.
Pos: 0.0s 2f ( 2%) 0fps Trem: 0min 0mb A-V:0.004 [0:0]
1 duplicate frame(s)!
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.
Pos: 0.8s 22f ( 3%) 16fps Trem: 0min 2mb A-V:0.084 [0:199]
Skipping frame!
Pos: 1.2s 33f ( 4%) 16fps Trem: 0min 2mb A-V:0.081 [417:201]
Skipping frame!
mencoder: ratecontrol.c:635: ff_rate_estimate_qscale: Assertion `pict_type ==
rce->new_pict_type' failed.
Aborted

I am under amd64 but I friend also had this with a different file on his 686
I compiled mplayer with:
./configure --prefix=/usr --disable-runtime-cpudetection --disable-gui
--enable-libavcodec --enable-xvmc --with-xvmclib=XvMCNVIDIA
The 1.0pre6 has the same bug, other files are converted without problem.

Change History (2)

comment:1 Changed 15 years ago by reimar

Things to try:
1) don't use B-Frames, they usually seem to only hurt quality
2) try -noodml
3) add harddup at the end of the video filter list

comment:2 Changed 15 years ago by gregoire.favre@…

  • Resolution set to later
  • Status changed from new to closed

Hello :-)
Removing the vmax_b_frames=2 and I can perfectly convert it, thank you very much !!!

Note: See TracTickets for help on using tickets.