Log in

View Full Version : Linux scripts to Rip and Encode TV Series


morphiax
18th March 2010, 12:13
Hi,

I have written the attached scripts to make life easier for myself ripping TV series DVDs. I thought it may be useful to someone else as well. Please consider this proof of concept quality and not a full fledged release. If there is interest I will clean up the code and add comments and license. Use at own risk.

I created two scripts, one called rip.sh. This script prompts you to enter the DVD into the drive. Asks for the series name. Then goes online to epguides.com to download the episode names. Opens up mplayer. Once in mplayer prompts you to select each episode in the correct order. As simple as press enter, wait a second press backspace, go to the next episode. I do this to get the correct title for each episode. I found that dvds like Friends that have episodes with commentary are often in the wrong order. It then asks for the season number, amount of episodes and the first episode number on the disc. It will then rip the vob files one by one to disc. When it is done it generates a special file with the DVD discid that contains the season, title numbers, episode numbers and names.

It is these disc files I generate that is most of interest to me. Once these files have been created and are available. Whenever you insert the dvd again it won't prompt you for any information. It will get all the information from the disc and just start ripping the vob files. What would be awesome is if people are interested we could actually build a database of these files somewhere. It would simplify ripping TV series even more if someone else has already created files for the series. I have included some of the files from Friends as an example.

The other file, encode.sh, just sits around checking whenever rip.sh has finished dropping a new vob it picks it up and starts encoding. It almost permanently runs on my computer. Every night I run rip.sh a few times to put vob files in the que and encode.sh just runs day and night spitting out avis.

Like I said before, at the moment these scripts are a bit hacked together. They need to be cleaned up a lot. But I thought some of you might find it interesting, or even better, be able to point me to a more elegant solution somewhere else.

Please leave comments and suggestions.

fangorn
18th March 2010, 16:24
Hey, your feature list sounds promissing. :thanks:

I like the getting episode names from the internet part and the encoder queue. :eek:

I have a little dvd ripping script of my own (see riptoh264 in my Signature link). But it is more of a general approach (you have to specify the name and title number for each episode by hand on the command line, but that makes it perfectly scriptable).