Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a pile of DVDs. Some are actual playable DVDs with titles and chapters, and some are just data discs, with a collection of .wmv or .avi files. I can use Handbrake to easily rip the actual DVDs, but what can I use to automate the ripping of these data discs?

According to the Handbrake docs, I can pass "-t 0" to tell it to scan all the titles, but if I do that with one of the data discs, it only rips the first file.

I'm guessing it'll be a multi-step process, where I have to loop through the files on the disc; but that's the problem I'm having, is detecting if it's a proper DVD movie or not, and if not, looping through the files.

My only requirements are that it has to be command line, and it has to work on a Linux-based OS (in my case, Ubuntu).

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The algorithm is easy: If the disc has .VOB files, it's a movie disc and use Handbrake. For anything else, just copy the files to your destination. They don't need ripped or converted.

share|improve this answer
    
So I just found the isoinfo utility, which lists out the directories and files, so I grepped out .vob to test if it's a movie disc. That works great, now I just need to figure out the syntax for looping through the files on the disc and copying them. –  Ben Lacy Feb 11 '12 at 16:13
    
Once the disc is mounted, the cp command should be all you need. –  afrazier Feb 11 '12 at 20:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.