codec-wiki icon indicating copy to clipboard operation
codec-wiki copied to clipboard

Add some information on x265 settings

Open jcj83429 opened this issue 2 years ago • 3 comments

I did a bunch of test encodes and found some good x265 settings that can beat x264 consistently even for film content at high-ish bitrates and grainy content. Some of the settings I found were surprising (like --rdoq-level 0) as they involve disabling features enabled by higher presets. I added detailed explanations for each flag.

jcj83429 avatar Mar 28 '24 01:03 jcj83429

Looks good, unfortunately since I don't have a lot of experience with x265, I can't comment on any of the suggestions. Though one thing I do know is: Please use lossless WebP for the comparisons.

cwebp -mt -lossless -z 9 -alpha_filter best -metadata icc [input] -o [output]

Simulp avatar Mar 29 '24 09:03 Simulp

Incorporated community feedback

  • No longer recommend --rdoq-level 0 as a general purpose option. At high bitrates it's worse than the default. Instead, moved it to a separate section of "interesting" settings.
  • Removed --deblock -3:-3. Since the default RDOQ settings produce more sharpness and roughness than the source, a little more deblock doesn't hurt. For --rdoq-level 0 encodes at lower bitrates, deblock helps reduce twitchiness.

jcj83429 avatar Apr 01 '24 21:04 jcj83429

LGTM, but I'm not very well versed on x265 knowledge. @Simulping IDK if you have already, but if you could get Lyra involved that'd be great

gianni-rosato avatar Apr 08 '24 06:04 gianni-rosato