I do a lot of HEVC encoding and what I've read is 10bit is always better than 8bit, even from an 8bit source, because it avoids rounding errors. Is that true?

Also, then is 12bit better than 10bit or are the rounding errors insignificant at that point?

  • 4
    Well, 10-bit has 4 times the resolution of 8-bit, so yes, rounding errors will be smaller. Assuming you are encoding for end use, the benefit will depend on the source material and the display medium. The same is true for 12-bit, in principle, but the extra resolution over 10-bit shouldn't be significant for normal end-use. – Gyan Apr 19 '16 at 11:18
  • And it depends on what you mean by better: if you're talking about storage size then 10 bit is 25% worse than 8 bit, and 12 bit is 50% worse. If storage and drive speed is not an issue then obviously throwing more data at it will make the encoding better, but the difference in quality might not match the increase in size. – stib Apr 27 '16 at 14:02
  • @stib, Everything I have read suggests the opposite. myanimelist.net/forum/?topicid=358699#msg12115983 gist.github.com/l4n9th4n9/4459997#L37 – Fallen Apr 28 '16 at 1:39
  • I use 12 bit footage in production, it's huge, but it has the advantage that the video has waaay more latitude for grading: you can pull down over-exposed shots and bring up details in shadows without it all turning to mush, like 8-bit footage does if you push it too hard. However if you aren't going to process the video any more you don't need the extra latitude, especially if the extra info didn't exist in the first place. Sure, 10 or 12 bits will mean less quantisation error but quantisation error is trivial compared to the losses you get in a lossy codec. – stib Apr 28 '16 at 4:46
  • Are you sure your not using 12 bit raw vs like 12 bit hevc/x264? Because raw anything is huge. – Fallen Apr 28 '16 at 19:49

I can answer your first question. At the same bitrate and transcoding from an 8-bit source 10-bit HEVC is better than 8-bit HEVC, because it hardcodes dither. https://gist.github.com/l4n9th4n9/4459997 I am still unsure, whether that makes 12-bit HEVC transcodes superior to 10-bit, thats why I ended up here.

| improve this answer | |
  • After I ran some tests I have found that 10bit also results in higher file sizes too. I'm curious if the bitrate was raised for the 8bit encode to match the final size of 10bit would it result in the same quality. – Fallen Jun 20 '16 at 19:57
  • The reference you linked to seems highly contentious, and there has been no response to the controversies since. Elsewhere on the net there also seems no agreement on this. – Prometheus Jan 9 '19 at 4:20

In my experience (using handbrake) increasing the bit depth increases the file size but not by much. However, lowering the CRF is what causes significantly larger files. I encoded several times the same source with different settings to see what I'd get, so for a random source of 1.45Gb (H.264/AVC) it gave theses results:

  • H.265 8bit CRF 22 (slow) > 362.6 Mb
  • H.265 10bit CRF 22 (slow) > 385,2 Mb
  • H.265 12bit CRF 22 (slow) > 390,7 Mb
  • H.265 8bit CRF 20 (slow) > 470.2 Mb
  • H.265 10bit CRF 20 (slow) > 509,9 Mb
  • H.265 12bit CRF 20 (slow) > 518,9 Mb

Hope that helps.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.