I would like to encode video with Handbrake on windows platform with DXVA support, but I don't know what settings to use. I haven't found a definitive answer as to what settings I should use.
DXVA compliancy consists of three parts:
- The number of reference frames
- Macroblock options: no P4x4 blocks
- Maximum bitrate of 50000 kbit
The number of reference frames
***1080P Normal movie + Animation***
ref= 4 (max. resolution = 1920x1088) < 3 ref = not good enough for AHD
ref= 5 (max. resolution = 1920x864) < 3 ref = not good enough for AHD
ref= 6 (max. resolution = 1920x720) < 3 ref = not good enough for AHD
***720p Normal movie + Animation***
ref= 09 (max. resolution = 1280x720) < 5 ref = not good enough for AHD
ref= 10 (max. resolution = 1280x648) < 5 ref = not good enough for AHD
ref= 11 (max. resolution = 1280x588) < 5 ref = not good enough for AHD
ref= 12 (max. resolution = 1280x540) < 5 ref = not good enough for AHD
Macroblock options: no P4x4 blocks
- analyse=0x3:0x113 (anything else is either bad or not dxva compliant)
Maximum bitrate of 50000 kbit
- vbv_maxrate= (50000 max.)
When all these requirements are met, the encode is DXVA compliant.