# ffmpeg-avchd script by linux-tipps.blogspot.com# to encode a directory use this command:# for i in *.m2ts; do ffmpeg-avchd $i; doneIN="$1"; shiftOUT=$(echo $IN | sed 's/.m2ts//')-720p.aviecho Encoding $IN to $OUT.ff="ffmpeg -deinterlace -i "$IN" -acodec copy -vcodec libx264 -vpre normal -crf 25 -sws_flags lanczos -s hd720 -r 25"echo $ff $OUTnice $ff "$OUT"The only thing I'm not really happy with yet is the deinterlacing and deshaking. I would like to use a sharper deinterlacer, but I guess I'd need mencoder for that. The Lanczos software scaler does make steady images pretty sharp already, though.
Convert 1080i AVCHD directly to 720p avi with ffmpeg 0.5
With the realease off ffmpeg 0.5 there is much better AVCHD support in my experience, so you can use it for perfect conversions. You can download ffmpeg from ffmpeg.org and then use this script: