DVD Writing

Jeff Vian jvian10 at charter.net
Tue Aug 23 17:18:43 UTC 2005


On Tue, 2005-08-23 at 08:39 +1200, Terry Kemp wrote:
> On Mon, 2005-08-22 at 11:59 +0200, Danie Thom wrote:
> > Hi Guys
> > 
> > I am quite new to Fedora, and I just want to find out 2 things about DVD
> > writing in FC...
> > 
> > Are there any applications available that will allow you to copy DVD's
> > (I used to work with CloneDVD on Windows XP)
> > I tried to watch a DVD with the Totem player.  I got an error message
> > that complained about my URI.
> > 
> > Can anyone point me in the right direction?
> > 
> > Thanks
> > Danie
> 
I use xine, and others use totem to watch DVDs.
You need to install libdvd* and dvd* (some may be overkill but it is
simple to do) so ---.

To copy and shrink DVDs to mpg that fits on a CD I use mencoder.

I even found the reference to that on this list some time back.

The below script with a little tweaking for sizes works for me all the
time. (it needs the libs I referenced above as well as lame to
decode/rip)
--------------------------------------------------------
mencoder dvd://1 -aid 128 -oac mp3lame -lameopts br=96:cbr:vol=7 \
 -ovc frameno -o frameno.avi

mencoder dvd://1 -sws 2 -oac copy -ovc lavc -lavcopts \
vcodec=mpeg4:vhq:vbitrate=709:vpass=1 -vf \
crop=704:352:6:64,scale=1024:464 -o movie.avi

mencoder dvd://1 -sws 2 -oac copy -ovc lavc -lavcopts \
vcodec=mpeg4:vhq:vbitrate=709:vpass=2  -vf \
crop=704:352:6:64,scale=1024:464 -o movie.avi
-----------------------------------------------------------------

The first line rips the audio,
the 2nd and 3rd lines do a 2 pass rip of the video and merge in the
audio.  The quality is excellent.  Even though the name is .avi the
output is actually an mpg.



> 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
> 
> 




More information about the fedora-list mailing list