Transcoding and rotating videos using HandbrakeCLI

This command rotates a video by 90 degrees and reduces quality.

HandBrakeCLI -i input -o output.m4v --rotate=angle=90 -q 30

Valid values for rotate: 0, 90, 180, 270

Quality parameter q: 20 = very high, 25 = high, 30=medium, …