Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A perl script to automate VIDEO_TS conversions Apps
If you have MediaForkCLI (Handbrake's new name; the CLI version), then you can use this Perl wrapper to convert as many VIDEO_TS folders as you like, even if they have multiple titles.

Want to set up a single batch to convert all of your backed-up DVD movies and TV shows to H264 for Front Row/appletv? This script will do it. Tested on linux, PowerPC Macs, and Intel Macs. It processes every single title on every single VIDEO_TS folder that it finds, so you may have to go in and clean up unwanted titles. Also, you only have to set the flags once, which is a timesaver if you want to batch process 100 DVD backups with multiple titles.

You will need to download MediaForkCLI and move it to /usr » local » bin » MediaForkCLI for this wrapper to find it. FYI, MediaForkCLI for Macs is included with the latest MediaFork download. The linux version is on the download page as well. I'd test the wrapper on single DVD backup before you go nuts, as it may takes days or weeks to finish if you tell it to process hundreds of DVD backups. It will also work on physical DVDs, but you'd be better off using MediaFork/Handbrake by itself for those.

Don't forget to chmod u+x mediaforker.pl before you try to run it. Here are a few examples:
# Put MP4s right next to backups:
./mediaforker.pl /Volumes/MyDVDs 

# Put MP4s in your Movies folder:
./mediaforker.pl /Volumes/MyDVDs ~/Movies

# Put AVI's into your movies folder:
./mediaforker.pl /Volumes/MyDVDs ~/Movies -f avi ...etc

# View the help:
./mediaforker.pl --help
[robg adds: The above-linked source is on macosxhints.com; you can download the script from the original site (in case of future updates) via this link.]
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[19,233 views]  

A perl script to automate VIDEO_TS conversions | 7 comments | Create New Account
Click here to return to the 'A perl script to automate VIDEO_TS conversions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
HandBrake = Mediafork = HandBrake
Authored by: Akira on Apr 11, '07 11:04:47AM
HandBrake and Mediafork merged (Mediafork was a branch of HandBrake) and the program is again called HandBrake.
There's no official binary released yet, but you can get the sourcecode via SVN.

http://handbrake.m0k.org/?page_id=9

[ Reply to This | # ]
A perl script to automate VIDEO_TS conversions
Authored by: luhmann on Apr 12, '07 01:00:53AM

A lot of my DVDs have subtitles. I know Handbreak can handle this, but how about this script?



[ Reply to This | # ]
Problems with more than 10 titles
Authored by: ClunkClunk on Apr 12, '07 10:00:34AM

I tried it, and this script seems useful, but it has one fatal flaw. When processing discs that have 10 or more titles, it only processes 1 to 9, then continues on to the next disc. Feature movies rarely have that many, unless they have a lot of extras, but I've found that TV show discs often do.

It's probably just a small change in the way it scans for titles that needs to be changed, but I don't have the skills do do it, as I don't know perl at all.



[ Reply to This | # ]
A perl script to automate VIDEO_TS conversions
Authored by: WonderAloud on Apr 13, '07 01:28:35PM

Nice. Can you make it pull individual chapters into separate files?



[ Reply to This | # ]
A perl script to automate VIDEO_TS conversions
Authored by: tubbyman on Apr 14, '07 04:19:58PM

I updated it to handle titles above 9 (see clunkclunk post above).

Chapters into separate files? It can be easily done, although I am having a hard time figuring out what use it would be. Perhaps you could enlighten me? I don't have any DVDs that have content-by-chapter that makes any sense without all of the other chapters in the title.



[ Reply to This | # ]
A perl script to automate VIDEO_TS conversions
Authored by: tubbyman on Apr 14, '07 04:29:02PM

Also, the script has been updated, so if you want the updates, download them from the direct link above (not the one cached on macosxhints). The version that macosxhints is housing is the original script, not the updated one.

I am also working on a video cluster version of this script so that I can encode using all of the machines in my house from a single script call. I will update this thread when I am finished.



[ Reply to This | # ]
A perl script to automate VIDEO_TS conversions
Authored by: tubbyman on Feb 04, '09 06:08:59PM
FYI, I updated this script to work with HB 0.9.3. It's available from the handbrake forums, here:

http://forum.handbrake.fr/viewtopic.php?f=10&t=1011#p49821


[ Reply to This | # ]