LinHES Forums
http://forums.linhes.org/

batch dvd -> xvid convert script
http://forums.linhes.org/viewtopic.php?f=17&t=8249
Page 1 of 1

Author:  nycbjr [ Thu Feb 02, 2006 3:19 pm ]
Post subject:  batch dvd -> xvid convert script

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).

Author:  vabiro [ Wed May 03, 2006 9:55 am ]
Post subject: 

Thanks for the great script. It is going to save me a lot of time :D


I posted in another forum about something that was along the same lines (http://mysettopbox.tv/phpBB2/viewtopic.php?p=58030). Briefly, I have ripped a few DVDs to ISO images, and have been trying to think of a way to script the migration of the ISO to Xvid to save some space.

I was thinking along the lines of something like:

1. mount ISO in temp directory

2. run whatever process that MTD uses to convert the file to the VOB in a perfect rip

3. run something like the script you wrote on the output of step 2

4. do clean-up of old files if needed.

Where I am stalled at this point is the command line mtd uses to convert to a single VOB.

Any thoughts?

Thanks in advance!

Victor

Author:  o0JoeCool0o [ Wed Jul 05, 2006 11:46 am ]
Post subject: 

Nice post is this in the wiki? If not it should be!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/