Cara konversi movie untuk PSP
Sebelum bisa jalanin movie di PSP.. harus dikonversi dulu. Ini batasannya:
################################# script start: konvertpsp
INPUT="$*"
# harus .mp4
OUTPUT="out.mp4"
# 2-31
QUALITY=21
#################################
if [ "$INPUT" = "" ]; then
echo "Please specify input file"
exit
fi
opt1=" -vcodec libx264 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -level 21 -refs 2"
opt2="-cqp $QUALITY"
opt3="-ab 64k"
opt4="-s qvga"
echo -- -- ffmpeg -i "$INPUT" $opt1 $opt2 $opt3 $opt4 -threads 3 $OUTPUT
ffmpeg -i "$INPUT" $opt1 $opt2 $opt3 $opt4 -threads 3 $OUTPUT
########### script end
Cara jalanin:
./konvertpsp namafile.avi
Outputnya: out.mp4
Referensi: http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/
- Video Codec: xvid, divx, H.264
- Audio codec: FAAC
- File Format: mp4
- Bit rate harus <= 768 kbps
- Resolution: 320x240, 640x480
################################# script start: konvertpsp
INPUT="$*"
# harus .mp4
OUTPUT="out.mp4"
# 2-31
QUALITY=21
#################################
if [ "$INPUT" = "" ]; then
echo "Please specify input file"
exit
fi
opt1=" -vcodec libx264 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -level 21 -refs 2"
opt2="-cqp $QUALITY"
opt3="-ab 64k"
opt4="-s qvga"
echo -- -- ffmpeg -i "$INPUT" $opt1 $opt2 $opt3 $opt4 -threads 3 $OUTPUT
ffmpeg -i "$INPUT" $opt1 $opt2 $opt3 $opt4 -threads 3 $OUTPUT
########### script end
Cara jalanin:
./konvertpsp namafile.avi
Outputnya: out.mp4
Referensi: http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/
Comments