rotate.sh

Download rotate.sh here



#!/bin/sh
infile=$1
outfile=$2
rot=$3 # use 1 to rotate clockwise, 2 to rotate anti-clockwise

mencoder -vop rotate=$rot -oac copy -ovc lavc -lavcopts vcodec=mjpeg:vbitrate=500 -o $outfile $infile