Using handbrake with Podcast Producer 2
To use Handbrake in your workflows you will have to leave the comfort zone of Podcast Composer and dive into a text editor or, my favorite, Property List Editor. The easiest approach to create your workflow is to start with Podcast Composer and do as much possible with this as you can. Create a new workflow with al your import, export and publishing settings. Make sure you have one export setting that you can later convert to your Handbrake-export action.
Before we begin, start with downloading the command line version of Handbrake:
http://handbrake.fr/rotation.php?file...I_i386.dmg
http://handbrake.fr/rotation.php?file...x86_64.dmg
Once you are done editing the workflow save it and open the wofklow package. (Right-click the workflow and select 'Show package contents'). Navigate to the 'Tools' directory and copy the handbrake binary here. This way you will not have to install Handbrake on every machine in your cluster, it will be run from the workflow directory. You could edit the http://art.rb script to check wether the XGrid agent is a 64-bit machine if you are using the 64-bit Handbrake version, but I think you'll be safe here.
Now open template.plist and find the task that starts with 'export-plugin-quicktime-'. Here we are going to change the settings to use handbrake instead of pcastaction:
Change the line '/usr/bin/pcastaction' to '$$GLOBAL::Workflow Resource Path$$/Tools/HandBrakeCLI' You could also use 'pcastaction shell' to execute your own script/binaries, but for now we execute it directly. Next we need to set the arguments for handbrake. We are going to use the most basic options for now:
--input= $$GLOBAL::Library Bundle Path$$/edit-core-master.mov
--output=$$GLOBAL::Library Bundle Path$$/export-plugin-quicktime<UUID>.m4v
Podcast Composer generates a UUID for the export action, the easiest way is to just leave these as is, so you wont have to change anything else in the workflow. If you are going to change the names of the files or actions, make sure you match that everywhere in the template.plist file.
Handbrake will automatically detect the output format from the output filename extension.
I have seen in tests that handbrake runs pretty fast, but it can't convert Quicktime references files so you will still have to run the 'edit-core-master' action in your workflow if you do any Quartz Composer effects (like Picture in Picture, or image overlay). I will talk more about the 'edit-core-master' in a future article.