Hey all,
As a thank you to all the help I received from your forum I wanted to post some scripts I used to batch convert my dvd collection for use in MythTV. I hope they care useful to someone as they greatly sped up the process for me.
When I started this process I began using the standard mythtv gui to rip a dvd to excellent. When I realized this took 2-5 hrs (dependent on size), I was afraid I'd be ripping all year! As a farily decent Linux Admin I figured I could write something to speed the process along, as the system wasn't doing much during the day or at night when I couldn't pop a disk in. As a result I wrote a simple perl script (I'm sure someone here could improve it further). Where I rip about 6 DVD's per night to "Perfect", then kick the script off at night before I go to bed. By the time I get home the next day from work all 6 are done (or close to done).
I welcome any feedback to fix some of its short comings (I'm not a perl expert by any means).
These scripts are easy to run if u have some command line skills.
It runs a TWO Pass convert to XVID
First here is the link
http://www.nycbjr.com/software/xvidconvert.tar
Install Instructions
1. Grab this file and put it in your /myth/video directory
using wget might make this easier
Code:
cd /myth/video
wget http://www.nycbjr.com/software/xvidconvert.tar
2. untar this file by using the following command
Code:
tar xvf xvidconvert.tar
3. It will create a folder called xvidconvert - next move those 3 scripts down to just /myth/video
Code:
cd xvidconvert
Code:
mv * ../
4. create a folder called vob under /myth/video (remember to go back to /myth/video)
Code:
mkdir vob
Usage
1. Rip a bunch of movies using the MythtTV gui in "Perfect" (I used 6 per day on a AthlonXP 2500+)
it will dump them to /myth/video/
2. Move them to /myth/video/vob
Code:
mv *.vob vob
3. from /myth/video issue the createlist script - this creates a file called voblist
Code:
./createlist.sh
4. edit the file to delete the top line (the gawk cmd creates a blank space at the top, u need to remove this)
I use VI
Code:
vi voblist
issue
Code:
dd
on the top line
then
Code:
:wq
to quit
5. run the batch convert script (warning don't do this on a system u intend to shutdown within the period of time it takes to convert!)
Code:
./xvid_runall.pl
6. After the script completes you can remove the vob files from vob (I test my avi's first), then I move the completed AVI movies to their homes and change the name to just avi (as it creates vob.avi).