« Music in Linux without iTunes | Main | Happy Thanksgiving! »

October 05, 2007

HandBrake Linux Script

Note: This page has been updated to reflect the release of the hbencoder script, version 1.1. Now available on SourceForge!

I'm a big fan of HandBrake. It's a nifty little application that converts DVD files into video so that you can put them on your iPod and other portable devices. It has a really nice GUI interface for Mac OS X, but if you're a Linux user like me, you're stuck with the command line interface (aka CLI).

There are people that have been working on a GUI for Linux, or trying to use the Windows GUI using Mono. Either way, these projects just aren't ready for prime time at this point. So, I wrote a script several months back that allowed me to automate the HandBrakeCLI application. The script asks for specific input and processes the HandBrakeCLI with the given variables instead of having to remember all of the switches and information that goes along with the CLI. Yesterday, I decided to release it under the GPL v2 and make it available for anyone to use.

So, this is the official announcement of the availability of the hbencoder script, version 1.1 (see below for the older version). It has been tested and used on Ubuntu 7.04. It should work on other Linux distributions as well. If I get feedback on it or requests, I may take some time to add features and/or make adjustments. However, please keep in mind that I do work full time and like most other people who do these kinds of things, I work on it in my spare time.


Click the image for a larger version.

You can download the hbencoder script from this Web site. You can leave questions, comments, feedback, etc in the comments section of this post.

DOWNLOAD THE HBENCODER SCRIPT, VERSION 1.1
Download available via SourceForge.net project site.

Update - 10/11/2007: Version 1.1 of the hbencoder script is now released. You can download the file from the link above. The older and very broken version 1.0 of the script can still be found here. The hbencoder script is now available via SourceForge.net. The links above will take you to the project page on SF for the hbencoder script. Enjoy!

Update - 10/07/2007: After releasing the script, I noticed several problems. I have been working on an update all weekend, re-writing most of the script to be more functional. I will be releasing this update this week.

Posted by ed at October 5, 2007 09:37 AM

Comments

Just a note about your hbencoder -

ran into a bit of an issue with the initialization script while looking for binaries...........

This may take a moment. Please wait...

The HandBrakeCLI binary was found in:
[1] /home/pete/.local/share/Trash/files/handbrake/HandBrakeCLI - Version: 0.9.1
[2] /home/pete/handbrake/HandBrakeCLI - Version: 0.9.1
[3] /tmp/kde-pete/arkhYhHQL/HandBrakeCLI - Version: 0.9.1

Which location do you wish to use?
[default = 1]: 2

[ ERROR ] Only single digit entries allowed.

Which location do you wish to use?
[default = 1]:

2

[ ERROR ] Only single digit entries allowed.

Which location do you wish to use?
[default = 1]: (and so on, over and over...)

Wanted to select option #2, and am pretty sure I didn't fumble finger any NPCs at the prompt. Quitting the script and restarting let me select from the other previously "found" versions with out a problem. Maybe somethig odd in the input area?

This is on Fedora 6, X86_64.

Anyway, nice wrapper. I'm working around some things that I think are fedora specific, and I'll update you with what I find, if you're interested.

Posted by: peterbre [TypeKey Profile Page] at November 27, 2007 07:47 PM

DOH!

You're absolutely correct. When I was first made aware of the problem, I went about the change waaay to quickly and screwed it all up. I'm posting an update to the SF site now.

Thanks for the feedback. I really appreciate it.

Posted by: eengelking [TypeKey Profile Page] at November 27, 2007 10:02 PM

Oh, btw ... anything that you find on Fedora that could help to improve the wrapper would be greatly appreciated. I use Ubuntu exclusively at work and at home, so I don't really have much opportunity to test it on other platforms.

Thanks again for the feedback. The update is on the SF.net site now. :)

Posted by: eengelking [TypeKey Profile Page] at November 27, 2007 10:21 PM

I've contacted you via sourceforge, happy to help you out in any capacity. I've got access to about a half dozen different linux distributions, and some other UNIX-like OSes for testing.

Posted by: peterbre [TypeKey Profile Page] at November 28, 2007 09:59 PM

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?