This script rotates video files that were created on an iPhone, but being edited on Linux. Requires the CLI version of HandBrake. It took me a while to figure out a good way to do this, so I'm passing on to you!