short script to rip and eject DVD.
requires HandBrake software. you can download from handbrake.fr
use 'mount' cmd to get the right device name for your dvd drive and replace in script below.
#! /bin//bash
#script to rip dvds
#use 'mount' cmd to get the right device name for your dvd drive
dvd=`mount | perl -ne 'm/.dev.sr2 on .media.(\w*)/; print $1'`;
echo $dvd
HandBrakeCLI -f avi -i /media/$dvd -o ${dvd}.avi
umount /media/${dvd}; eject /dev/sr2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment