Thread: Playing DVDs
View Single Post
  #5   (View Single Post)  
Old 7th September 2010
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by BSDfan666 View Post
For DVD ripping dvdbackup port seems to work well, and can be useful for confirming the proper libraries have been installed for accessing the drive.
You might want to analyze the following pseudo script.
Code:
#!/bin/sh
#finding movie on the DVD which has many chapters and commercials. Usually 
# the longest track
lsdvd


#crop detect
mplayer dvd://2 -vf cropdetect

# Widescreen: use scale "704:304"  Fullscreen: use scale "640:480" (see below)  


#Two passes encoding
mencoder dvd://2 -chapter 1-21 -ovc lavc -lavcopts \
vcodec=mpeg4:vpass=1 -oac copy -o /dev/null ;
mencoder dvd://2 -chapter 1-21  -ovc lavc -lavcopts \ 
vcodec=mpeg4:mbd=2:trell:vpass=2  -oac copy -o output.avi


# transfering the movie into mpg2
ffmpeg -i title2.avi -y -target ntsc-dvd -sameq -aspect 16:9 finalmovie.mpg

# Creating the movie 
dvdauthor --title -o dvd -f finalmovie.mpg


# Creating the title
dvdauthor -o dvd -T


#making DVD structure 
mkisofs -dvd-video -o dvd.iso dvd/

#burning the movie
growisofs -dvd-compat -Z /dev/rcd0c=dvd.iso
Reply With Quote