PSP向け携帯動画変換君設定ファイル(Transcoding.ini)の考察

モバイルでの運用なので、ある程度の画質を維持しながらも、エンコード時間をそれなりに短く抑えたい。
そこで、H.264 mp4 AVC を確保しつつ、1pass QB20 でエンコードする設定。
-qscale の値を変えることで、画質を上下させることができる(QBの値は低いほど高画質になる)。

[Item17]
Title=AVC 480x272/29.97fps/VBR QB20 ステレオ/128kbps
TitleE=AVC 480x272/29.97fps/VBR QB20 Stereo/128kbps
Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -vlevel 13 -g 250 -s 480x272 -r 29.97 -qscale 20 -maxrate 1500 -acodec aac -ac 2 -ar 48000 -ab 64 -f psp "<%OutputFile%>.MP4""
Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""


画質重視、エンコード時間無視の設定はこちら。
H.264 mp4 AVC 2pass ビットレートはそれぞれ750kbps、1000bps、1500bps、2000bps の順。

[Item24]
Title=AVC 480x272/29.97fps/750kbps 2pass
TitleE=AVC 480x272/29.97fps/750kbps 2pass
Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -vlevel 13 -g 250 -s 480x272 -r 29.97 -b 750 -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64 -f psp "<%OutputFile%>.MP4""
Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -vlevel 13 -g 250 -s 480x272 -r 29.97 -b 750 -passlogfile "<%OutputFile%>" -pass 2 -acodec aac -ac 2 -ar 48000 -ab 64 -f psp "<%OutputFile%>.MP4""
Command2="rm "<%OutputFile%>-0.log""

[Item25]
Title=AVC 480x272/29.97fps/1000kbps 2pass
TitleE=AVC 480x272/29.97fps/1000kbps 2pass
Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -vlevel 13 -g 250 -s 480x272 -r 29.97 -b 1000 -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64 -f psp "<%OutputFile%>.MP4""
Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -vlevel 13 -g 250 -s 480x272 -r 29.97 -b 1000 -passlogfile "<%OutputFile%>" -pass 2 -acodec aac -ac 2 -ar 48000 -ab 64 -f psp "<%OutputFile%>.MP4""
Command2="rm "<%OutputFile%>-0.log""

[Item26]
Title=AVC 480x272/29.97fps/1500kbps 2pass
TitleE=AVC 480x272/29.97fps/1500kbps 2pass
Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -vlevel 13 -g 250 -s 480x272 -r 29.97 -b 1500 -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64 -f psp "<%OutputFile%>.MP4""
Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -vlevel 13 -g 250 -s 480x272 -r 29.97 -b 1500 -passlogfile "<%OutputFile%>" -pass 2 -acodec aac -ac 2 -ar 48000 -ab 64 -f psp "<%OutputFile%>.MP4""
Command2="rm "<%OutputFile%>-0.log""

[Item26]
Title=AVC 480x272/29.97fps/2000kbps 2pass
TitleE=AVC 480x272/29.97fps/2000kbps 2pass
Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -vlevel 13 -g 250 -s 480x272 -r 29.97 -b 2000 -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64 -f psp "<%OutputFile%>.MP4""
Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -vlevel 13 -g 250 -s 480x272 -r 29.97 -b 2000 -passlogfile "<%OutputFile%>" -pass 2 -acodec aac -ac 2 -ar 48000 -ab 64 -f psp "<%OutputFile%>.MP4""
Command2="rm "<%OutputFile%>-0.log""

                                                                                                          • -

参考URL:
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1314248233
http://pspman.seesaa.net/article/105479214.html
http://zdfgrzgr.jugem.jp/?eid=848