#!/bin/sh
# 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.
Your Linux Self-Help Desk. A selection of mostly Linux related tutorials, howtos, fixes, news and more.
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:
great! i used the script under windows:
ReplyDeleteffmpeg-avchd.cmd movie.MOV movie_720p.AVI
rem ffmpeg-avchd.cmd
set HOME=c:\Users\user1\
rem .ffmpeg dir at %HOME% with all ffmpeg presets
ffmpeg -deinterlace -i "%1" -acodec copy -vcodec libx264 -vpre libx264-normal -crf 25 -sws_flags lanczos -s hd720 -r 25 "%2"
Good to hear! :) I also use some of my mplayer scripts in Windows.
ReplyDelete