Created
January 17, 2013 00:54
-
-
Save daktak/4552548 to your computer and use it in GitHub Desktop.
Single pass DVD to xvid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
## Usage: dvdiso2xvid.sh file.iso | |
## http://www.howforge.com/how-to-encode-dvd-to-avi-using-mencoder | |
## http://forum.videohelp.com/threads/288190-(SOLVED)-Need-mencoder-help-certain-files-have-no-audio | |
for file in "$@" | |
do | |
bn=`basename "$file"` | |
NameNoExt=${bn%.*} ## no extension | |
mencoder dvd://1 -dvd-device "$bn" -oac mp3lame -lameopts mode=2:cbr:br=128:vol=0 -ovc xvid -xvidencopts bitrate=-1 -vf scale -zoom -xy 480 -o "$NameNoExt.avi" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment