On Wed, 2005-08-24 at 10:10 -0600, Guy Fraser wrote: > > This was from a thread on copying a DVD. > > Here is a script I use for shrinking DVDs. Needs some work but you > > should get the idea. You will need to d'load vobcopy, tcextract etc. > > > > #! /bin/bash > > cd /video > > pwd > > echo "Ripping DVD" > > vobcopy -l /dev/hda -t movie > > echo "Extracting Video" > > tcextract -i movie*-1.vob -t vob -x mpeg2 > movie.m2v > > echo "Extracting Audio" > > tcextract -i movie*-1.vob -t vob -x ac3 -a 0 > movie.ac3 > > echo "Calculating Shrink Ratio" > > rm movie*-1.vob > > echo "Calculating Shrink Ratio" > > M1=$(ls -l movie.m2v | awk '{ print $5 }') > > M2=$(ls -l movie.ac3 | awk '{ print $5 }') > > M3=$(echo 4600000000 - $M2 | bc) > > M4=$(echo "scale = 2; $M1 / $M3 * 1.04" | bc) > > echo "Movie size =" $M1 > > echo "Sound size =" $M2 > > echo "Blank - Sound size =" $M3 > > echo "Scale Factor =" $M4 > > echo "Shrinking For DVD-5" > > tcrequant -i movie.m2v -o shrink.m2v -f $M4 > > echo "Deleting Video File" > > rm movie.m2v > > echo "Re-combining Video and Audio" > > mplex -f 8 -o movie%d.mpg shrink.m2v movie.ac3 > > echo "Deleting Video File" > > rm shrink.m2v > > echo "Deleting Audio File" > > rm movie.ac3 > > echo "Authoring DVD..." > > dvdauthor -o output -x dvd.xml > > Cool! > > Where did you get the dvd.xml or what do you use to generate it ? > There are interesting scripts generated by tovid, also, when its running. -- Rodolfo Alcazar rodolfo.alcazar@xxxxxxxxxxxx Netzmanager Padep, GTZ 591-70656800, -22417628 LA PAZ, BOLIVIA -- Darth Vader: Don't be too proud of this technological terror you've constructed. The ability to destroy a planet is insignificant next to the power of the Force.