Difference between revisions of "Dvd2Avi"

From ArchWiki
Jump to: navigation, search
m (move up description, add code template)
(outdated and too specific script, there are better tools available (manual ripping is still described in MEncoder)
Line 1: Line 1:
[[Category:Scripts]]
+
#REDIRECT [[DVD Ripping]]
[[Category:Audio/Video]]
 
{{Stub|Little more than a script dump}}
 
A simple Bash script for [[DVD Ripping|ripping DVDs]]; missing some of the more advanced features such as cropping, but aspect ratio is kept intact.
 
 
 
Here is an explanation of the various quality levels:
 
 
 
* High: movie is 800px wide, audio is 320kbps mp3.
 
* Normal: movie is 640px wide, audio is 160kbps mp3.
 
* Low: movie is 320px wide, audio is 96kbps mp3.
 
 
 
To use the script, copy and paste it into an appropriately named file (such as {{ic|dvdrip.sh}}), and then execute {{Ic|chmod +x <file>}}. See {{Ic|man mencoder}} for more information.
 
 
 
{{bc|<nowiki>
 
#!/bin/bash
 
 
 
echo -n "Enter the name of output file (without extension):"
 
read FILE
 
 
 
echo -n "Enter the title you wish to rip:"
 
read TITLE
 
 
 
echo -n "Select a quality level (h/n/l)[[n]]:"
 
read Q
 
 
 
if [[ -z $Q ]];then
 
    # If no quality passed, default to normal
 
    Q=n
 
fi
 
 
 
if [[ $Q = h ]]; then
 
# If h passed, use high quality
 
mencoder dvd://$TITLE -alang en -oac mp3lame -lameopts br=320:cbr -ovc lavc -lavcopts vcodec=mpeg4:vhq -vf scale -zoom -xy 800 -o $FILE.avi
 
exit $?
 
fi
 
 
 
if [[ $Q = n ]]; then
 
# If n passed, use normal quality (recommended)
 
mencoder dvd://$TITLE -alang en -oac mp3lame -lameopts br=160:cbr -ovc lavc -lavcopts vcodec=mpeg4:vhq -vf scale -zoom -xy 640 -o $FILE.avi
 
exit $?
 
fi
 
 
 
if [[ $Q = l ]]; then
 
# If l passed, use low quality. not really worth it,
 
# hardly any smaller but much crappier
 
mencoder dvd://$TITLE -alang en -oac mp3lame -lameopts br=96:vbr -ovc lavc -lavcopts vcodec=mpeg4:vhq -vf scale -zoom -xy 320 -o $FILE.avi
 
exit $?
 
fi
 
</nowiki>}}
 

Revision as of 17:26, 31 July 2015

Redirect to: