From 8310df89ae63b8dec006b7dc3d5fbdf666a5a93b Mon Sep 17 00:00:00 2001 From: Josh Clements Date: Sat, 13 Oct 2018 17:19:11 -0400 Subject: [PATCH] Create iPhoneVideoRotate.sh 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! --- scripts/iPhoneVideoRotate.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/iPhoneVideoRotate.sh diff --git a/scripts/iPhoneVideoRotate.sh b/scripts/iPhoneVideoRotate.sh new file mode 100644 index 0000000..30fcb6f --- /dev/null +++ b/scripts/iPhoneVideoRotate.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# This script rotates video files that were created on an iPhone, +# but being edited on Linux. Requires the CLI version of HandBrake. + +# This script takes two arguments: +# First argument is the input file +# Second argument is the output file + +HandBrakeCLI --rotate=4 --preset "High Profile" -O -i $1 -o $2