PSP用動画変換

  • 仕様ソフト
  • 手順
    1. 携帯動画変換君(3GP Converter)を落としてくる
    2. ffmpeg rev.15888 Windowsバイナリを落としてくる
    3. ffmpgを解凍して、中にある「ffmpeg.exe」を「ffmpeg15888.exe」にリネーム
    4. 携帯動画変換君を解凍して作成されるフォルダの「/3GP_Converter034/cores」の中にffmpeg15888.exeをコピー
    5. 以下のテキストを「Transcoding.ini」というファイル名で、「/3GP_Converter034」に保存
    6. 3GP_Converter.exeを起動
    7. あとはメニューからパターンを選んでファイルドラッグ。

※注意

  • 携帯動画変換君に同梱されている ffmpeg を使用する場合、そのマシンにCygwinを入れていると、CygwinのDLLがエラーを吐くようだ。ffmpeg rev.1588 を使用すると問題ない。ただし、ffmpeg rev.15888では、もともとある携帯動画変換君エンコードメニューは使えないので、注意。
  • 以下のTranscoding.iniは、実行スレッド数 4 にしてある。スレッド数を変更したい場合は、「-threads 4」を書き換えること。「-threads X」のXの数字を適切に変えればいい。また、1スレッドで実行するならば、「-threads 4」を削除すればよいはず。
  • 上記で「ffmpeg1588.exe」にリネームすると書いたが、名前は何でも良い。ただし、以下のTranscoding.iniの中にある「ffmpeg1588」の部分と合わせること。

参考
ffmpg for PSP
http://schiphol.2ch.net/test/read.cgi/handygame/1217928014/

ffmpeg Options
http://mobilehackerz.jp/archive/wiki/index.php?%BA%C7%BF%B7ffmpeg%2F%B9%E2%C5%D9%A4%CA%A5%AA%A5%D7%A5%B7%A5%E7%A5%F3

「Transcoding.ini」

[Info]
Title=機種別設定:MP4ファイル, PSP向け設定
TitleE=Model: MP4, for PSP
Description=AVC 1500bps for PSP FW 5 on ffmpeg rev.15888
DescriptionE=AVC 1500bps for PSP FW 5 on ffmpeg rev.15888

;Slow setting and auto fps
[Item0]
Title=Slow - AVC 480x272/Auto fps/1500 PSP FW5 16:9
TitleE=Slow - AVC 480x272/Auto fps/1500 PSP FW5 16:9
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 16:9 -sws_flags lanczos -s 480x272 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -refs 3 -keyint_min 1 -sc_threshold 65 -me_method tesa -me_range 32 -subq 8 -flags loop+bitexact -flags2 mixed_refs -mbd rd -deblockalpha -1 -deblockbeta -1 -partitions parti4x4+partp8x8 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

[Item1]
Title=Slow - AVC 360x270/Auto fps/1500 PSP FW5 4:3
TitleE=Slow - AVC 360x270/Auto fps/1500 PSP FW5 4:3
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 4:3 -sws_flags lanczos -s 360x270 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -refs 3 -keyint_min 1 -sc_threshold 65 -me_method tesa -me_range 32 -subq 8 -flags loop+bitexact -flags2 mixed_refs -mbd rd -deblockalpha -1 -deblockbeta -1 -partitions parti4x4+partp8x8 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

[Item2]
Title=Slow - AVC 720x480/Auto fps/1500 PSP FW5 4:3
TitleE=Slow - AVC 720x480/Auto fps/1500 PSP FW5 4:3
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 4:3 -sws_flags lanczos -s 720x480 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -refs 3 -keyint_min 1 -sc_threshold 65 -me_method tesa -me_range 32 -subq 8 -flags loop+bitexact -flags2 mixed_refs -mbd rd -deblockalpha -1 -deblockbeta -1 -partitions parti4x4+partp8x8 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

;fast setting and auto fps
[Item3]
Title=Fast - AVC 480x272/Auto fps/1500 PSP FW5 16:9
TitleE=Fast - AVC 480x272/Auto fps/1500 PSP FW5 16:9
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 16:9 -sws_flags lanczos -s 480x272 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

[Item4]
Title=Fast - AVC 360x270/Auto fps/1500 PSP FW5 4:3
TitleE=Fast - AVC 360x270/Auto fps/1500 PSP FW5 4:3
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 4:3 -sws_flags lanczos -s 360x270 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

[Item5]
Title=Fast - AVC 720x480/Auto fps/1500 PSP FW5 4:3
TitleE=Fast - AVC 720x480/Auto fps/1500 PSP FW5 4:3
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 4:3 -sws_flags lanczos -s 720x480 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

;slow setting and force 30 fps
[Item6]
Title=Slow - AVC 480x272/30fps/1500 PSP FW5 16:9
TitleE=Slow - AVC 480x272/30fps/1500 PSP FW5 16:9
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 16:9 -sws_flags lanczos -s 480x272 -r 29.97 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -refs 3 -keyint_min 1 -sc_threshold 65 -me_method tesa -me_range 32 -subq 8 -flags loop+bitexact -flags2 mixed_refs -mbd rd -deblockalpha -1 -deblockbeta -1 -partitions parti4x4+partp8x8 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

[Item7]
Title=Slow - AVC 360x270/30fps/1500 PSP FW5 4:3
TitleE=Slow - AVC 360x270/30fps/1500 PSP FW5 4:3
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 4:3 -sws_flags lanczos -s 360x270 -r 29.97 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -refs 3 -keyint_min 1 -sc_threshold 65 -me_method tesa -me_range 32 -subq 8 -flags loop+bitexact -flags2 mixed_refs -mbd rd -deblockalpha -1 -deblockbeta -1 -partitions parti4x4+partp8x8 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

[Item8]
Title=Slow - AVC 720x480/30fps/1500 PSP FW5 4:3
TitleE=Slow - AVC 720x480/30fps/1500 PSP FW5 4:3
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 4:3 -sws_flags lanczos -s 360x270 -r 29.97 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -refs 3 -keyint_min 1 -sc_threshold 65 -me_method tesa -me_range 32 -subq 8 -flags loop+bitexact -flags2 mixed_refs -mbd rd -deblockalpha -1 -deblockbeta -1 -partitions parti4x4+partp8x8 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

;fast setting and force 30fps
[Item9]
Title=Fast - AVC 480x272/30fps/1500 PSP FW5 16:9
TitleE=Fast - AVC 480x272/30fps/1500 PSP FW5 16:9
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 16:9 -sws_flags lanczos -s 480x272 -r 29.97 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

[Item10]
Title=Fast - AVC 360x270/30fps/1500 PSP FW5 4:3
TitleE=Fast - AVC 360x270/30fps/1500 PSP FW5 4:3
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 4:3 -sws_flags lanczos -s 360x270 -r 29.97 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""

[Item11]
Title=Fast - AVC 720x480/30fps/1500 PSP FW5 4:3
TitleE=Fast - AVC 720x480/30fps/1500 PSP FW5 4:3
Command0=""<%AppPath%>\cores\ffmpeg15888" -threads 4 -y -i "<%InputFile%>" -timestamp "<%TimeStamp%>" -vcodec libx264 -level 30 -coder ac -aspect 4:3 -sws_flags lanczos -s 360x270 -r 29.97 -crf 20 -qmin 10 -qmax 31 -maxrate 1500k -bufsize 2048k -qcomp 0.6 -g 240 -acodec libfaac -ac 2 -ar 48000 -ab 128k -f psp "<%OutputFile%>.mp4""
Command1=""<%AppPath%>\cores\ffmpeg15888" -y -i "<%InputFile%>" -title "<%Title%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.jpg""