Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
handbrake_and_x264 [2018/04/06 20:34] beandog |
handbrake_and_x264 [2023/04/09 12:04] beandog removed |
||
---|---|---|---|
Line 6: | Line 6: | ||
There's a difference between HandBrake's and x264's default settings. Based on the x264 defaults, here's the updates to the HandBrake ones. | There's a difference between HandBrake's and x264's default settings. Based on the x264 defaults, here's the updates to the HandBrake ones. | ||
+ | |||
+ | ==== Base ==== | ||
Do a simple x264 encode: | Do a simple x264 encode: | ||
Line 19: | Line 21: | ||
</code> | </code> | ||
- | HandBrake sets keyint to 240 and keyint-min to 24, while x264's is 250 and 25. Therefore, tell HandBrake one to use same defaults: | + | HandBrake sets keyint to 240 and keyint-min to 24, while x264's is 250 and 25. HandBrake also sets the default CRF to 22 instead of 23. Therefore, tell HandBrake one to use same defaults: |
+ | |||
+ | <code> | ||
+ | HandBrakeCLI -e x264 -a none -s none --stop-at frame:30 -x keyint=250 -q 23 -o handbrake.mkv input.mpg | ||
+ | </code> | ||
+ | |||
+ | ==== Level 4.0 ==== | ||
+ | |||
+ | HandBrake adds: | ||
<code> | <code> | ||
- | HandBrakeCLI -e x264 -a none -s none --stop-at frame:30 -x keyint=250:min-keyint=25 -o handbrake.mkv input.mpg | + | vbv_maxrate=25000 |
+ | vbv_bufsize=31250 | ||
+ | crf_max=0.0 | ||
+ | nal_hrd=none | ||
+ | filler=0 | ||
</code> | </code> |