ffmpeg encoding for Pismo and XBOX

PowerBook G3 Pismo (G4 550MHz) で再生できる設定
Pismo ではh264とmkvでは無理。mpeg4とaviでエンコする事。

ffmpeg -i "input file" -b 3000k -s hd480 -ab 192k "output file"



"-formats" でエンコード・デコード出来る種類確認出来る



XBMC4XBOXでは720が再生出来るとされているがこれまたmpeg4とavi限定。
h264でファイルサイズを小さくしたい場合はhd480でエンコすればmkvでもxboxで再生可能。
その場合使う設定は以下:

ffmpeg -i "your input file" -vcodec libx264 -s hd480 -acodec libfaac "your output file"

※なおh264を指定する場合今までのh264からlibx264へ代わった事に注目すべき。





Xbox のみを対象にする場合 Handbrake でエンコードしたほうが楽。

ーーーーーーーーーーーーーーーーーーーーー
Xbox 動画考察
ーーーーーーーーーーーーーーーーーーーーー
Xbox は非力なため動画の品質と容量のバランスに加えて、再生負荷も考慮する必要がある。
Handbrake でエンコする際負荷の少ないMPEG-4(FFMPEG)を選択するが(H.264に比べて)、その際 Constant Quality を選択するか Avg Bitrate を選択するかが課題となる。Avg を選択した場合容量は一定するが品質が一定しない。反面 CQ を選択すると容量にバラツキが生じ再生負荷も不均一となるが品質は一定する傾向にある。

試しに CQ の設定を 3 及び 1 で試してみるが負荷が高いせいか Xbox がフリーズする場面があった。6 に設定したところ現在までに問題は見受けられない。ファイル容量も25分程度の動画で180MBと比較的低い。しかしAvgで3000に設定した場合と比べると品質にやや難がある。とは言え480iのブラウン管では見分けがつかない(液晶PCモニタでは多少見劣りする)。

結局のところAvg 3000の方がごく僅かに画質が良く、海外ユーザーの間でも使用者が多いようなのでそちらにするか。

よって以下の設定を適用:

Video settings | MPEG- 4 (Ffmpeg) / Average bitrate 3000kbps / Framerate (same as source) / (optional 2 pass encoding)
Audio settings | Codec - auto passthru
Subtitles | as you wish
Chapters | as you wish
Advanced | -maxrate 5000k -bufsize 4096k

結論:
ISO状態のファイルは超高画質な上何ら問題なくXboxで再生できるのでそのままの状態を維持。他高解像度のMKVファイル等、Xboxでの再生に問題のあるファイルはHandbrakeにてエンコードする。その際の設定は上記に準じる。
ーーーーーーーーーーーーーーーーーーーーー


This should still work on Handbrake for Windows or Linux but you may have to input the setting manually and save it. Some users have been unable to load the supplied preset on Windows.

Tools:

VLC - Site or direct download for 64 Bit Mac Build 1.0.2 here

Handbrake - Site

Extras:

Handbrake Presets:

High Quality

Low Quality (This is just a lower constant quality with MP3 audio)

Or manually input this string and settings into the 'Advanced Settings' box:

ref=2:me=hex:bframes=3:8x8dct=0:subq=9:vbv-maxrate=2200:vbv-bufsize=2200:weightb=0:analyse=none:no-dct-decimate=1:cabac=0:b-pyramid=none:weightp=0

HB-advancedlarge.png

Info:

For this encoding process I have prioritised video quality over file size.

This is for encoding DVD sources to be used on the original xbox running xbmc. It uses the x264 codec so bitrate and advanced options have to be set specifically to allow it to run on old hardware.

This is for use with AC3 or DTS passthrough. You can try it with MP3 or AAC audio, but no guarantees as this will require CPU for decoding.

1. Download VLC and Handbrake. Install them. On the Mac I would recommend running the 64 bit VLC build.

2. Download the Handbrake Presets and import them into Handbrake.

3. Load your source into Handbrake. You can rip straight from DVD using Handbrake, or load DVD images you have ripped previously with your ripper of choice.

4. Make sure you have either xbox-x264 or xbox-x264-LQ preset selected.

5. Make sure container is MKV. Audio is AC3 or DTS Passthrough.

6. You have to change some of the advanced settings if you used the presets in the attachments in the latest versions of Handbrake, since some of the defaults have been changed recently. Add ":b-pyramid=none:weightp=0" to the String you see in the bottom or uncheck "Weighted P-frames" and set "Pyramidal B-Frames" to off.
























end of line

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2014年02月18日 09:29
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。