If you are like me, you probably have an aversion against repeated work. My movie library exists of hundreds of files and while preparing for the Raspberry Pi (which is capable of Full HD hardware H.264 decoding) I thought of automating video transcoding. The following how to or small tutorial is how I transcode video to H.264 mp4 for the Raspberry Pi with HandBrakeCLI.
This guide is for Mac OS X Lion but will probably also work on Leopard and Snow Leopard (not tested).
So, here is what I did: