[MEncoder-users] duplicate frame problem

Jason Cumiskey jtc12 at shaw.ca
Sun Dec 14 23:04:40 CET 2008


Hi All,

I have a script that I have been using for a number of years and it has
worked well for me but recently, I get tons of duplicate frames and the
video "stutters" on output. I checked the archives of mencoder-users and
tried the suggestion of using harddup. It has no effect.  Here is my
script.  If you see anything that looks not right or have any
suggestions, it would be much appreciated!!

Thanks, Jason

# Change this if different device or recording from an image
DVDDEVICE="/dev/dvd"

# Which title?  Typically, it will be 1
TITLE=1

# Must enable this in order for this to work for NTSC source.
# For PAL source, you must take this out.
FPS="-ofps 24000/1001 "
#FPS=""

# CROPPING
# --------

# Run the movie with mplayer dvd://1 -vf cropdetect first.
# Enter the crop value below.
CROP="720:480:0:0"

# This is for some extra options if the source is interlaced or
# mixed progressive and interlaced.  By default, pullup and softskip
# are enabled.  Even if the source is all progressive, it is alright
# to leave this in.  If still getting skipped frames, try the older
# method of softpulldown,ivtc=1.
#EXTRA="pullup,softskip,"
EXTRA="softpulldown,ivtc=1,"

# Prompt for name of file
echo "Enter the name for this avi file (don't include extension):"
read name
#-oac copy -vf ${EXTRA}crop=${CROP},hqdn3d=2:1:2 -ovc xvid -xvidencopts \

# Pass 1
eval "mencoder -dvd-device $DVDDEVICE dvd://$TITLE ${FPS}-ffourcc DIVX
-alang eng \ -oac mp3lame -lameopts cbr:br=224 -mc 0 \
-vf ${EXTRA}crop=${CROP},hqdn3d=2:1:2,harddup -ovc xvid -xvidencopts \
pass=1:chroma_opt:vhq=4:bvhq=1:quant_type=mpeg \
-o $name.avi"

# Pass 2
eval "mencoder -dvd-device $DVDDEVICE dvd://$TITLE ${FPS}-ffourcc DIVX
-alang eng \ -oac mp3lame -lameopts cbr:br=224 -mc 0 \
-vf ${EXTRA}crop=${CROP},hqdn3d=2:1:2,harddup -ovc xvid -xvidencopts \
pass=2:bitrate=1400:chroma_opt:vhq=4:bvhq=1:quant_type=mpeg \
-o $name.avi"



More information about the MEncoder-users mailing list