*Transcoding.iniカスタマイズ [#ta4896d7]
**Transcoding.iniカスタマイズの勘所 [#ec920c44]
「変換君」の変換動作の流れは
CENTER:
ffmpegで動画/音声をエンコード

QT3GPPFlattenで純正QuickTimeの出力に調整

(ATOMChangerで必要な情報の書き換え)

rmで不要なファイルを削除
[h264 @ 009B29C0]VBV underflow (-33533 bits)
[h264 @ 009B29C0]VBV underflow (-40440 bits)
[h264 @ 009B29C0]VBV underflow (-31140 bits)
[h264 @ 009B29C0]VBV underflow (-7566 bits)
[h264 @ 009B29C0]VBV underflow (-10538 bits)
[h264 @ 009B29C0]VBV underflow (-4860 bits)
[h264 @ 009B29C0]VBV underflow (-15517 bits)
[h264 @ 009B29C0]VBV underflow (-6542 bits)
[h264 @ 009B29C0]VBV underflow (-322 bits)
[h264 @ 009B29C0]VBV underflow (-34583 bits)
[h264 @ 009B29C0]VBV underflow (-23749 bits)
[h264 @ 009B29C0]VBV underflow (-17986 bits)
[h264 @ 009B29C0]VBV underflow (-25524 bits)
[h264 @ 009B29C0]VBV underflow (-1070 bits)
[h264 @ 009B29C0]VBV underflow (-4995 bits)
[h264 @ 009B29C0]VBV underflow (-128418 bits)
[h264 @ 009B29C0]VBV underflow (-39557 bits)
[h264 @ 009B29C0]VBV underflow (-76046 bits)
[h264 @ 009B29C0]VBV underflow (-91046 bits)
[h264 @ 009B29C0]VBV underflow (-91158 bits)
[h264 @ 009B29C0]VBV underflow (-73109 bits)
[h264 @ 009B29C0]VBV underflow (-76483 bits)
[h264 @ 009B29C0]VBV underflow (-10854 bits)
[h264 @ 009B29C0]VBV underflow (-1390 bits)
[h264 @ 009B29C0]VBV underflow (-912 bits)
[h264 @ 009B29C0]VBV underflow (-6924 bits)
[h264 @ 009B29C0]VBV underflow (-25086 bits)
[h264 @ 009B29C0]VBV underflow (-5758 bits)
[h264 @ 009B29C0]VBV underflow (-66504 bits)
[h264 @ 009B29C0]VBV underflow (-22708 bits)
[h264 @ 009B29C0]VBV underflow (-8874 bits)
[h264 @ 009B29C0]VBV underflow (-39381 bits)
[h264 @ 009B29C0]VBV underflow (-13153 bits)
[h264 @ 009B29C0]VBV underflow (-59134 bits)
[h264 @ 009B29C0]VBV underflow (-14993 bits)
[h264 @ 009B29C0]VBV underflow (-37942 bits)
[h264 @ 009B29C0]VBV underflow (-36188 bits)
[h264 @ 009B29C0]VBV underflow (-8457 bits)
[h264 @ 009B29C0]VBV underflow (-15534 bits)
[h264 @ 009B29C0]VBV underflow (-15948 bits)
[h264 @ 009B29C0]VBV underflow (-29309 bits)

となっています。
video:108519kB audio:29290kB global headers:1kB muxing overhead 20.187412%
[h264 @ 009B29C0]slice I:157   Avg QP:25.53  size:  7695
[h264 @ 009B29C0]slice P:43362 Avg QP:17.24  size:  3171
[h264 @ 009B29C0]mb I  I16..4: 49.5%  0.0% 50.5%
[h264 @ 009B29C0]mb P  I16..4:  5.3%  0.0%  0.0%  P16..4: 41.4%  0.0%  0.0%  0.0%  0.0%    skip:53.3%
[h264 @ 009B29C0]SSIM Mean Y:0.9868086
[h264 @ 009B29C0]kb/s:764.2
E>"C:\Users\Yoshikawa\Desktop\3GP_Converter034\3GP_Converter034\cores\ffmpeg" -y -i "D:\CLANNAD_1\VIDEO_TS\CLANNAD 第2回.VOB" -pass 2 -passlogfile "C:\Users\YOSHIK~1\AppData\Local\Temp\6FB98BFC-647D91C4-D7FCA889-AA3D333A" -timestamp "2008-01-20 18:39:32" -flags bitexact -vcodec h264 -coder 1 -bufsize 128k -g 299 -s 480x272 -r 29.97 -b 768k -acodec aac -ac 2 -ar 48000 -ab 320k -f psp -level 21 "C:\Users\Yoshikawa\Desktop\CLANNAD 第2回.MP4"
FFmpeg version SVN-r9017, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-memalign-hack --enable-pthreads --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libtheora --enable-libamr-nb --enable-libamr-wb --enable-libgsm --enable-libnut --enable-x264 --enable-gpl --enable-swscaler --enable-liba52 --enable-xvid --enable-libfaad --enable-libfaac --enable-libdts --enable-avisynth --cpu=i686 --disable-shared --enable-static
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on May 13 2007 17:41:26, gcc: 4.1.2

この、各処理についての詳細がTranscoding.iniに記述されていますので、自分なりの設定をしたい場合はこれを書き換えてください。
項目を増やす場合は[Item&color(red){''0''};]の0の部分を順に増やしていきます。各項目で実行するコマンドの数を増やす場合(Command&color(red){0};=〜)も同様です。
Seems stream 0 codec frame rate differs from container frame rate: 29.97 (30000/1001) -> 59.94 (60000/1001)
Input #0, mpeg, from 'D:\CLANNAD_1\VIDEO_TS\CLANNAD 第2回.VOB':
  Duration: 00:24:11.9, start: 1450.974156, bitrate: 8521 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 9800 kb/s, 59.94 fps(r)
  Stream #0.1[0xa0]: Audio: pcm_s16be, 48000 Hz, stereo, 1536 kb/s
  Stream #0.2[0x81]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Output #0, psp, to 'C:\Users\Yoshikawa\Desktop\CLANNAD 第2回.MP4':
  Stream #0.0: Video: h264, yuv420p, 480x272, q=2-31, pass 2, 768 kb/s, 29.97 fps(c)
  Stream #0.1: Audio: aac, 48000 Hz, stereo, 320 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[h264 @ 009B29C0]using SAR=136/135
[h264 @ 009B29C0]using cpu capabilities MMX MMXEXT SSE SSE2 
Assertion failed: rce->new_qscale >= 0, file encoder/ratecontrol.c, line 1533

~<%AppPath%>は3GP_Converter.exeが存在するディレクトリ、<%InputFile%>は入力ファイル名、<%OutputFile%>は出力ファイル名(拡張子無し)、<%TemporaryFile%>はテンポラリファイル用ファイル名(拡張子無し、WindowsのTempディレクトリに生成します)
に置換されます。
変更する設定の例を以下に挙げますが、他にもffmpegにはQベースの設定や、ノイズリダクション、細かいエンコード手法の設定など様々なオプションがあります。最適設定を追求される方はいろいろ試してみてください。
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
A>Dialog : 処理実行中にエラーが発生しました [Error:255]
T>CLANNAD 第3回.VOB (機種別設定:MP4ファイル, PSP向け設定/最高品質(AVC 480x272/29.97fps/768kbps ステレオ/320kbps/2pass))
E>"C:\Users\Yoshikawa\Desktop\3GP_Converter034\3GP_Converter034\cores\ffmpeg" -y -i "D:\CLANNAD_1\VIDEO_TS\CLANNAD 第3回.VOB" -pass 1 -passlogfile "C:\Users\YOSHIK~1\AppData\Local\Temp\CE43B5D8-8529A1D3-E6E907B4-F53E40EB" -timestamp "2008-01-20 18:33:10" -flags bitexact -vcodec h264 -coder 1 -bufsize 128k -g 299 -s 480x272 -r 29.97 -b 768k -acodec aac -ac 2 -ar 48000 -ab 320k -f psp -level 21 "C:\Users\Yoshikawa\Desktop\CLANNAD 第3回.MP4"
FFmpeg version SVN-r9017, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-memalign-hack --enable-pthreads --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libtheora --enable-libamr-nb --enable-libamr-wb --enable-libgsm --enable-libnut --enable-x264 --enable-gpl --enable-swscaler --enable-liba52 --enable-xvid --enable-libfaad --enable-libfaac --enable-libdts --enable-avisynth --cpu=i686 --disable-shared --enable-static
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on May 13 2007 17:41:26, gcc: 4.1.2

**カスタマイズ例 [#c5b82a01]
-[[動画のビットレートやフレームレートを上げる]]
-[[音声のビットレートやサンプリングレートを上げる]]
-[[動画の解像度を変える]]
-[[キャプチャした動画の上下左右端を削除する]]
-[[動画の上下にレターボックスを付加する]]
-[[動画を2パスエンコードする]]
-[[別システムで作った動画を再エンコード無しでフォーマット変換のみ行う]]
-[[ファイルサイズの制限で自動的にエンコードを終了する]]
-[[音量を調節する]]
-[[最高画質を追求する]]
Seems stream 0 codec frame rate differs from container frame rate: 29.97 (30000/1001) -> 59.94 (60000/1001)
Input #0, mpeg, from 'D:\CLANNAD_1\VIDEO_TS\CLANNAD 第3回.VOB':
  Duration: 00:24:10.7, start: 0.214156, bitrate: 9073 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 9800 kb/s, 59.94 fps(r)
  Stream #0.1[0xa0]: Audio: pcm_s16be, 48000 Hz, stereo, 1536 kb/s
  Stream #0.2[0x81]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Output #0, psp, to 'C:\Users\Yoshikawa\Desktop\CLANNAD 第3回.MP4':
  Stream #0.0: Video: h264, yuv420p, 480x272, q=2-31, pass 1, 768 kb/s, 29.97 fps(c)
  Stream #0.1: Audio: aac, 48000 Hz, stereo, 320 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[h264 @ 009B29C0]using SAR=136/135
[h264 @ 009B29C0]using cpu capabilities MMX MMXEXT SSE SSE2 
Press [q] to stop encoding

**利用できる変数 [#aeb8f1b3]
|<%AppPath%>|3GP_Converter.exeが存在するディレクトリ|
|<%InputFile%>|入力ファイル名(Path込み)|
|<%InputFilePath%>|入力ファイルのPath(最後の¥込み)|
|<%InputFileBase%>|入力ファイルのPathと拡張子を除いたファイル名部分|
|<%InputFileExt%>|入力ファイルの拡張子(ピリオド込み)|
|<%OutputFile%>|出力ファイル名(Path込み、拡張子無し)|
|<%OutputPath%>|出力ファイルのPath(最後の¥込み)|
|<%TemporaryFile%>|テンポラリファイル用ファイル名&br;(拡張子無し、WindowsのTempディレクトリに生成します)|
|<%RandomNumber5%>|ランダムな5桁の数字 (一つのファイル変換中は同一値で維持される)&br;<%RandomNumber1%> (1 桁) 〜 <%RandomNumber9%> (9 桁) も同様|
|<%Title%>|入力ファイルのタイトル(ファイル名?)|
|<%TimeStamp%>|入力ファイルの更新日時 (「yyyy-mm-dd hh:mm:ss」 形式の文字列)|


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS