View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Feb 02, 2006 3:19 pm 
Offline
Joined: Sun Jan 15, 2006 4:53 pm
Posts: 13
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).


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 03, 2006 9:55 am 
Offline
Joined: Sun Feb 26, 2006 11:34 pm
Posts: 83
Location: Toronto, ON, Canada
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 05, 2006 11:46 am 
Offline
Joined: Sat Jun 10, 2006 10:31 pm
Posts: 40
Nice post is this in the wiki? If not it should be!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu