Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Automatic (headless) DVD rip with MacTheRipper Apps
I haven't seen this anywhere, but it was a pretty good exercise for learning AppleScript. I wrote this AppleScript for my Mac mini, which is working as a media center outputting only to a television and lacking a keyboard or mouse. Rather than hooking up devices (or paying for a Bluetooth setup) or VNCing in from a laptop and walking back and forth between machines, I thought it'd be nice if I could set it up so that whenever I stuck a DVD in the machine, it would be ripped automatically. This does that, although I'm not sure if it works perfectly in all situations.

The script uses MacTheRipper 2.66. It might require a bit of setup (ie, rip a DVD to your ~/Ripped VIDEO_TS folders/ path or something like that), but otherwise should work fine as long as GUI scripting is enabled. Simply select it in System Preferences as the course of action to be followed by the system when a DVD is inserted, and you're good to go.

In addition to this, I have a script that is called from my nightly cron that controls the CLI version of Handbrake, and converts the VIDEO_TS folders to H264, moves the video to the appropriate external hard drive, and then moves the original VIDEO_TS folder to another path (not deleted -- in case of something weird -- the other day I had a DVD with a "Behind the Scenes" feature longer than the actual film!).

Again, there might be a way to make this more efficient ... but I'm a beginner.
    •    
  • Currently 3.67 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[28,659 views]  

Automatic (headless) DVD rip with MacTheRipper | 10 comments | Create New Account
Click here to return to the 'Automatic (headless) DVD rip with MacTheRipper' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automatic (headless) DVD rip with MacTheRipper
Authored by: brucio on Feb 06, '07 07:48:57AM

Could you also post the Handbrake script?



[ Reply to This | # ]
Automatic (headless) DVD rip with MacTheRipper
Authored by: pepi on Feb 06, '07 12:14:05PM

I second the request for the cron job using the handbrake CLI tool! Please post this one as well!



[ Reply to This | # ]
I'll second the requst for the Handbrake script request
Authored by: ptone on Feb 06, '07 11:08:06AM

Maybe post it as a reply to your hint?



[ Reply to This | # ]
I'll second the requst for the Handbrake script request
Authored by: thomasknowland on Feb 25, '07 04:50:16PM
I'M NEW...
That said, here is a link to the script I wrote for Instant Handbrake. Make sure it's Instant.
It's ugly, clunky and may not work on all machines... Please reply and let me know if it works or not.
RIGHT CLICK! Save Link As... You know the rest...


[ Reply to This | # ]
Automatic (headless) DVD rip with MacTheRipper
Authored by: halbtuerke on Feb 06, '07 11:39:03AM

Yeah, that would be nice. I also want to learn AppleScript and that would be an awesome example.

Thanks in advance



[ Reply to This | # ]
Automatic (headless) DVD rip with MacTheRipper
Authored by: jacobsdm on Feb 06, '07 11:08:02PM
I would have to agree. I would love to see your
cron
script as well. I am also learning AppleScript and after looking at your script I have already thought of ways to use parts of it for other projects I have in mind. I love this site!

[ Reply to This | # ]
Automatic (headless) DVD rip with MacTheRipper
Authored by: barhar07 on Feb 07, '07 07:09:57AM

Code re-written, with added UNIX command ('rm ...') incorporated - to delete unwanted resultant invisible ('MacTheRipper' created) folder.

tell application "MacTheRipper" to activate
delay 10

tell application "System Events" to tell process "MacTheRipper" to tell window 1
click button "Go!"
delay 5

tell sheet 1
try
click button "Continue"
end try
try
click button "Ok"
end try
try
click button "Open"
end try
end tell
end tell

set MagicNumber to 0

repeat until MagicNumber is 1
delay 10
tell application "System Events" to tell process "MacTheRipper" to tell window 1 to tell sheet 1
try
click button "Close"
set MagicNumber to 1
end try
end tell
end repeat

try
do shell script ("drutil eject; rm -R ~/.dvdcss")
end try



[ Reply to This | # ]
Automatic (headless) DVD rip with MacTheRipper
Authored by: kalisphoenix on Feb 07, '07 02:15:17PM
Thanks for the interest, guys.

This is the script I use with the HBTest binary. I'll post instructions on how to build the Intel CLI binary as soon as I can (unless someone else does it first) because I can't remember what I did to make it work :( I currently get stuck attempting to run Jam, which segfaults.

The instructions here: http://caenim.com/deprecated/public/HandBrake.DailyBuilds/ no longer work for me.

OPTIONS="-f mp4 -t 1 -a 1 -e x264 -b 1500 -E faac -R 44100 -B 128 -2"
PATH_A="/Users/username/Ripped"
PATH_B="/Volumes/Movies 1"
PATH_C="/Users/username"
for LIST in `ls $PATH_A`
do
echo $LIST $OPTIONS
HBTest -i $PATH_A/$LIST -o $PATH_B/$LIST.mp4 $OPTIONS
mv $PATH_A/$LIST $PATH_A/../Completed/
done


[ Reply to This | # ]
Automatic (headless) DVD rip with MacTheRipper
Authored by: ossiejnr on Feb 12, '07 10:46:05AM
I tried many times to get it to build on my Intel mac, with no luck. But I did get it to build on my PowerPC mac and the resulting binary works on both platforms. You can get it from here: http://www.millshalligan.co.uk/blog/index.php?entry=entry070212-180145

Millsy

[ Reply to This | # ]
Headless Instant Handbrake
Authored by: thomasknowland on Feb 25, '07 04:53:21PM
I already said this somewhere else, but it went in the wrong place...
I'M NEW...
That said, here is a link to the script I wrote for Instant Handbrake. Make sure it's Instant.
It's ugly, clunky and may not work on all machines... Please reply and let me know if it works or not.
RIGHT CLICK! Save Link As... You know the rest...


[ Reply to This | # ]