# ----------------------------------------------------------------------
# Created by: Norman
# Generated on: 01/27/2011 21:38:00
# Job name : CONVERT AVI FILES TO MP4 FILES
# Job description: Convert files from .avi to .mp4 using ffmpeg
# ----------------------------------------------------------------------
for file in *
do
outfile = "${file/.avi}".mp4
options="-vcodec libx264 -b 512k -flags +loop+mv4 -cmp 256 \
-partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 \
-me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 \
-flags2 +bpyramid+wpred+mixed_refs+dct8x8 -coder 1 -me_range 16 \
-g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10\
-qmax 51 -qdiff 4"
ffmpeg -y -i "$file" -an -pass 1 -threads 2 $options "$outfile"
ffmpeg -y -i "$file" -acodec libfaac -ar 44100 -ab 96k -pass 2 -threads 2 $options "$outfile"
done
Reference: h264.code-shop.com
2011年1月27日 星期四
Convert files from .avi to .mp4 using ffmpeg
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言