Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
handbrake_and_x264 [2018/04/07 02:30] – beandog | handbrake_and_x264 [2018/04/07 03:13] – beandog | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== HandBrake and x264 ====== | ====== HandBrake and x264 ====== | ||
- | I'm trying to document a number of changes in encoding which I won't go into here, but I started with the base idea of I want to be able to duplicate HandBrake and x264's encoding settings. | + | I'm trying to document a number of changes in encoding which I won't go into here, but I started with the base idea of I want to be able to duplicate HandBrake |
To get the x264 encoding settings, I use [[mediainfo]], | To get the x264 encoding settings, I use [[mediainfo]], | ||
There' | There' | ||
+ | |||
+ | ==== Base ==== | ||
Do a simple x264 encode: | Do a simple x264 encode: | ||
Line 17: | Line 19: | ||
< | < | ||
HandBrakeCLI -e x264 -a none -s none --stop-at frame:30 -o handbrake.mkv input.mpg | HandBrakeCLI -e x264 -a none -s none --stop-at frame:30 -o handbrake.mkv input.mpg | ||
+ | </ | ||
+ | |||
+ | 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: | ||
+ | |||
+ | < | ||
+ | HandBrakeCLI -e x264 -a none -s none --stop-at frame:30 -x keyint=250 -q 23 -o handbrake.mkv input.mpg | ||
+ | </ | ||
+ | |||
+ | ==== Level 4.0 ==== | ||
+ | |||
+ | HandBrake adds: | ||
+ | |||
+ | < | ||
+ | vbv_maxrate=25000 | ||
+ | vbv_bufsize=31250 | ||
+ | crf_max=0.0 | ||
+ | nal_hrd=none | ||
+ | filler=0 | ||
</ | </ |