On Sun, Jan 25, 2009 at 12:40:28AM -0600, Ron Johnson wrote:
> Hi,
>
> While ripping a bunch of (legal!) DVDs, I came up with these bash
> functions to make the task simpler. Hope you find it useful someday.
>
[snip]
wouldn't actually say you are ripping, more coping
I use something like this
BITRATE=${BITRATE:-1000}
# New from readnig the web page!
PASSCOMMON='subq=6:partitions=all:8x8dct:frameref=3:b_pyramid:me=umh:bframes=4:weight_b:nopsnr:threads=auto:brdo:trellis=1:level_idc=41
:direct_pred=auto:bime'
PASS1='pass=1:turbo=1'
PASS2='pass=2'
ENC1="x264 -x264encopts $PASS1:$PASSCOMMON:bitrate=$BITRATE"
ENC2="x264 -x264encopts $PASS2:$PASSCOMMON:bitrate=$BITRATE"
# setup Video filtering
CROP=${CROP:-"crop=720:416:0:80"}
FILTERCOMMN=${FILTERCOMMN:-'harddup'}
FILTER1=${FILTER1:-"$CROP,$FILTERCOMMN"}
FILTER2=${FILTER2:-"$CROP,$FILTERCOMMN"}
OUTF="$OUTD/$BASE.avi"
PASSLOG="$BASE.divx2pass.log"
echo "Pass 1"
nice mencoder -quiet \
-vf $FILTER1 \
-ovc $ENC1 \
-oac "$OAC" $OACOPT \
-passlogfile "$PASSLOG" \
-o /dev/null \
"$INF" $ADDOPT $AID $DVDDEVICE $OFPS
echo "Pass 2"
nice mencoder -quiet \
-vf $FILTER2 \
$AENC \
-ovc $ENC2 \
-passlogfile "$PASSLOG" \
-oac "$OAC" $OACOPT \
-o "$TMPF" \
"$INF" $ADDOPT $AID $DVDDEVICE $OFPS
takes more time, but uses a lot less space
>
> --
> Ron Johnson, Jr.
> Jefferson LA USA
>
> "I am not surprised, for we live long and are celebrated poopers."
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a
> subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
--
"September the 4th 2001, I stood in the ruins of the Twin Towers. It's a day I will never forget."
- George W. Bush
10/18/2004
Marlton, NJ
in a campaign speech
Attachment:
signature.asc
Description: Digital signature