#!/bin/bash

for i in *; do 
ffmpeg -deinterlace -y -i ${i} -threads 2 -f mp4 -vcodec libx264 -mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 -tvstd PAL -b 1024k -bufsize 5000k -acodec libfaac -ac 2 -ab 384k -ar 44100 "${i}.mp4"
done
