I haven't posted on the HB forums before, but today I thought I'd pop in and share a small app I've been working on, in the hope that some of you will find it useful. Wasn't quite sure whether this should go into 'General' or 'CLI' discussion - apologies if this is the wrong place.
A few months ago I needed to batch-process a large number of films which I'd previously ripped to an external e-sata drive. As I was experimenting with the AutoIt3 language at the time, I decided to write a simplified GUI for the Windows Handbrake CLI which would allow me to set up an automated encode (and subsequently re-encode for various other devices with ease).
It worked very well, and I took some time this weekend to add some functionality and configuration options so that it could be used by others.
I've put it online in the hope that some of you will find it useful. Please note that this has not been extensively tested, and may not work well (or at all) on your system. Use at your own risk.
If you do decide to use it and come across a bug or a feature you think would be useful, please let me know.
Screenshot
Download
http://georgewilkinsdesign.com/public/Batch%20Video%20Encoder.zip
Functionality
- Displays list of VOB folders within a specified directory (using folder names as film titles)
- Allows selection of multiple titles
- Provides list of encoding presets (based on latest HB set) which may also be adjusted or added to
- Allows automatic or manual cropping for the entire batch, or title-specific cropping values to be specified
- Sends each title to Handbrake CLI in sequence, encoding each one to the specified output directory
- Displays progress during the encode process
Requirements
Works on Windows XP - Should work on earlier versions and Vista as well
Requires Handbrake 0.9.3 CLI
Instructions
- Unzip/open the program (Won't work inside the zip)
- Select the location of your Handbrake CLI executable
- Select source directory (should contain various film folders with VOBs inside)
- Select destination/target directory (Note: existing files of the same name will be overwritten!!!)
(You should now see a list of titles, with 'cropping' and 'state' values shown for each)
- Select a preset to encode with
- Click 'Preview' to generate a single chapter preview of the selected films, or 'Encode' for entire films
- Allow the Handbrake to do its thing
Notes On Cropping
You can choose automatic, manual or title-specific cropping.
If the cropping fields are dimmed/disabled, cropping will be done automatically. Click 'Manual' to switch to manual mode and set the cropping values. These will be applied to all films in your batch. Click 'Automatic' to switch back to automatic cropping.
To specify cropping values for a particular title, create a file called 'VIDEO_CROP.TXT' in the VOB folder of the title you wish to crop.
Type your cropping values into this file in the format: T,B,L,R
These values will be shown in the films list (restart the app if it was open when you created the cropping file) if you've done it correctly. Note that the program will not check for the validity of cropping values - if they're out of range or otherwise invalid for the preset you've chosen, Handbrake may well crash; breaking the encoding process.
Using / Editing / Creating Presets
When you first run the app, it will generate a file called 'presets.cfg' within its parent directory. The format of this file is fairly self-explanatory. You can add, remove or tweak as many presets as you like inside this file.
I haven't tested all of the presets, so I'd suggest you run a preview encode of the films you wish to encode to determine that the quality and cropping are correct.
Thanks to the Handbrake Devs for a brilliant encoder!
