Skip to content

Instantly share code, notes, and snippets.

@daktak
Created January 17, 2013 00:54
Show Gist options
  • Save daktak/4552548 to your computer and use it in GitHub Desktop.
Save daktak/4552548 to your computer and use it in GitHub Desktop.
Single pass DVD to xvid
#! /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