Completely automated DVD insert-rip-compress-eject workflow

15

8

(Partially inspired by this question.)

Background: I have a PC hidden away behind an HD LCD in custom-built entertainment center. The only visible part of the PC is an external DVD drive, mounted above the Wii. The PC happens to have Windows XP on it; Hackintoshing and Linux might be possible, but I've had issues with drivers for the sound card before. Let's just assume that OS X and Linux are a no-go unless they provide a truly awesome and simple solution for this particular problem.

Goal: I would like to have a completely automated workflow for ripping DVDs. Something like this:

  1. Push the eject button on the DVD drive, insert the DVD.
  2. PC recognizes that this is a video DVD (as opposed to data).
  3. PC rips DVD to hard drive.
  4. PC finishes ripping, and ejects the DVD tray.
  5. PC compresses DVD image into some format that an Xbox 360 can read.
  6. PC copies finished compressed video file to a particular folder, so that it can be read into a WMP11 library and seamlessly played by the Xbox 360.
  7. PC cleans up all temporary files.
  8. Done.

The impetus to have this be completely automated is that I’ll never need to switch the TV to the PC’s input and fiddle with the wireless keyboard. That’s just needless user intervention.

The UI doesn’t have to be pretty. Nor do I care about speed. And I can probably bridge several of the gaps with some creative Perl use. But it seems likely that many (or all) of the parts should already exist.

Any thoughts?

Kevin L.

Posted 2009-07-24T20:53:21.087

Reputation: 1 534

Answers

3

DVD Rip Automates One-Click DVD Ripping seems like what you're after. It's an open-source AutoHotkey script, so if it doesn't do what you need, you can modify it

dbr

Posted 2009-07-24T20:53:21.087

Reputation: 4 987

5

I have just answered a similar question on my website.

I have taken the concept of Adam Pash's DVD Rip a few steps further. I wanted to be able to get the movie's title and associated metadata and cover art, and rip the file using the right title. This means the ripping is completely automatic and a few short hours after a disc is inserted the movie will appear in Media Center complete with cover art and metadata.

To achieve this I've cobbled together several tools and a few scripts to glue them together.

The overall process is as follows:

  • Use Yammm to automatically retrieve the ID from themovidb for any DVD loaded into a drive.
  • Use EventGhost to watch the directory that Yammm populates with metadata and launch an AutoHotkey script.
  • Within the Autohotkey script, invoke DVD Shrink to rip the DVD contents to the hard drive.
  • Once the DVD has been ripped, invoke Handbrake to create an MKV file.

There are a few issues with this setup that I'd like to refine.

  • The EventGhost-Yammm integration is a bit flakey. It would be neater if Yammm could be invoked directly or invoke the script when metadata is found.
  • If there is no entry in themoviedb.org for the film, then the ripping process won't launch.
  • Once Handbrake completes a command prompt is left lying around. It could be closed, but I'm wary of clashing with user interactions.
  • The VIDEO_TS and AUDIO_TS folders are left lying around. Once the MKV is created they aren't really needed and could be deleted.

As far as your question's requirements are concerned there are a few additional tweaks to be made.

  • The Xbox doesn't like MKVs, you can tweak the parameters in the EventGhost script to tell Handbrake to rip using the "Normal" preset which will output an MP4 file. The Xbox 360 reads those just fine.
  • The disc isn't ejected after processing completes, this could be added fairly easily using AutoHotkey's Drive, Eject command

You can download the scripts and see the full instructions at home4film.com.

My next step is to build a robot to load DVDs from a spindle so I can rip more than a couple a day.

Rich Seller

Posted 2009-07-24T20:53:21.087

Reputation: 803

1Shame the home4film.com website is now offline, so this wonderful explanation comes to nought. – Luke Stevenson – 2015-08-12T04:03:35.920

archive.org to the rescue! Sadly I couldn't find his autohotkey script. I did find Adam Pash's original script, but it doesn't have a license file with it, or any code comments with a license (for reference, I downloaded that here: https://dvd-rip.en.uptodown.com/windows. BE CAUTIOUS with those files.)

– Johann – 2019-01-23T23:39:22.903

3

Handbrake is a great app for automating the ripping of DVDs. It can script & handle batch jobs, and handle single-file movies and single files just fine.

Andrew Scagnelli

Posted 2009-07-24T20:53:21.087

Reputation: 1 777

2Handbrake will not remove the copy protection – kpoehls – 2009-07-25T01:04:12.880

1I have read that "HandBrake will dynamically load VLC's copy of libdvdcss if you have it in your Applications folder in Mac OS X, and if you're on Linux, and you want to live on the wild side, you can install libdvdcss on your system and get the same effect." – Eduardo Molteni – 2009-08-03T10:55:10.517

2Handbrake has a Command line interface version available - how about trying to script that, and edit your question with the solution for everyone else! :) – MGOwen – 2009-09-01T10:17:34.307

1Handbrake can encode from a HD quite easily. I do it all the time. – Dan Esparza – 2012-03-20T18:45:33.653

In 2009, I had issues with Handbrake getting it to re-encode a video file off a hard drive (since it was originally designed to rip DVDs). In 2012, its super easy. I'll edit the answer. – Andrew Scagnelli – 2012-03-22T17:48:06.143

2

I just completed a piece of software that does exactly this. I was quite surprised to find that no one had accomplished this. You do need AnyDVD and HandBrake, but other than that it does everything you asked for. While there is a free version, to raise the default HandBrake quality settings, you need to shell out $10. Check it out at noclickrip.com.

Joey Gennari

Posted 2009-07-24T20:53:21.087

Reputation: 121

1be careful being a 1 rep user and you are posting your own products. I think this is a good solution though, I would include in your answer though that to get high quality rips you must pay $10 – Earlz – 2010-05-08T21:06:04.097

@Earlz, thank you. I wasn't even aware of the rep points. I've edited my answer with your suggestion. – Joey Gennari – 2010-05-19T21:54:09.623

0

I don't know if this will help but in a Windows environment HandBrake works sometimes but MakeMKV works best, with NirCMD to open and close the drive and notify me it's done MakeMKV to do the ripping and FileBot to do your renaming, moving, and removal of old files it should be a snap. I run a batch file to accomplish this, but I don't delete my files until later.

@ echo off & setlocal enableextensions
:top
set home=G:\Ripped
nircmd cdrom open 
pause
nircmd cdrom close
nircmd wait 5000
for /f "tokens=6" %%1 in ('vol d:') do set title=%%~1
if not exist %home%\%title% md %home%\%title% 
makemkvcon64 mkv --decrypt --directio=true --minlength=1800 --cache 1024 -r disc:0 all %home%\%title%

cd /d %home%

for /r "%home%\%title%" %%a in (*.mkv) do (filebot -rename "%%~fa" --db themoviedb --format "{n} ({y}) [{certification}]" -non-strict)
cls
echo "ya wanna do another one (y)es or (n)o"
set /p m=
if /i %m%==y goto :top
if /i %m%==n goto :eof

now this assumes you have makemkvcon64, filebot, and nircmd in your %PATH%, you have a G:\ drive in your computer, and your dvd drive is letter d: so you may have to change this to suit your needs. once all that is done you could schedule a task in Windows to compress with a batch file via handbrakeCLI or ffmpeg in the middle of the nite.

Greg

Posted 2009-07-24T20:53:21.087

Reputation: 1

0

Handbrake is an excellent all-in-one ripper/encoder. It can also remove copy protection if you download the libdvdcss-2.dll and put it in the root folder of location you installed Handbrake. ie.. C:\Program Files\Handbrake\libdvdcss-2.dll

I won't post where you can download this but just do a Google search for "Videolan libdvdcss-2.dll". Once you copy and paste it in the folder of your installation, just start Handbrake and watch it work.

I've been using this method for a few months now and there have been no hiccups.

Richard Pruitt

Posted 2009-07-24T20:53:21.087

Reputation: 1