#!/bin/bash
# mencoder; ffmpeg; http://therning.org/niklas/node/160
# http://askubuntu.com/questions/83711/how-can-i-rotate-a-video

read -p "Have you tried removing the video metadata yet? (vidrmmetadata) y/n" tried
if [ "$tried" != "y" ]; then
 exit
fi

mkdir jobrott

for i in `ls *.*`; do 
 echo "`ls $i` --> jobrott/`ls $i | sed -e 's/\./-\./'`"
 ffmpeg -i "$i" -vf "transpose=1" -strict -2 jobrott/`ls $i | sed -e 's/\./-\./'`
done

