4K UHD HDR10 HEVC bitrate calculator for point of diminishing returns?

Teagan wrote on 6/7/2021, 6:46 PM

Hi, I previously had a question about the best bitrate for 1920x1080 23.976p 8 bit video in h.264 and the bitrate max was 14-16Mb/s for that, but now I'm asking about 3840x2160 23.976p HDR10 10 bit in HEVC codec.

Where do I even start? The only thing I know is that almost all of my 4K blu rays in HEVC are around 60-100Mb/s in VBR but what is the best bitrate for me to encode in without wasting data? I'm mainly looking for the point of diminishing returns, such as 16Mb/s talked about above.

Comments

JN- wrote on 6/7/2021, 7:25 PM

@Teagan From testing I did, h264 vs hevc, I found that there was a law of diminishing returns above ~ 70mbps, little or no benefit using hevc. But there is a substantial efficiency gain in size at very low data rates using hevc.

Last changed by JN- on 6/7/2021, 7:31 PM, changed a total of 1 times.

---------------------------------------------

VFR2CFR, Variable frame rate to Constant frame rate link to zip here.

Copies Video Converts Audio to AAC, link to zip here.

Convert 2 Lossless, link to ZIP here.

Convert Odd 2 Even (frame size), link to ZIP here

Benchmarking Continued thread + link to zip here

Codec Render Quality tables zip

---------------------------------------------

PC ... Corsair case, own build ...

CPU .. i9 9900K, iGpu UHD 630

Memory .. 32GB DDR4

Graphics card .. MSI RTX 2080 ti

Graphics driver .. latest studio

PSU .. Corsair 850i

Mboard .. Asus Z390 Code

 

Laptop… XMG

i9-11900k, iGpu n/a

Memory 64GB DDR4

Graphics card … Laptop RTX 3080

Teagan wrote on 6/7/2021, 7:33 PM

@Teagan From testing I did, h264 vs hevc, I found that there was a law of diminishing returns above ~ 70mbps, little or no benefit using hevc. But there is a substantial efficiency gain in size at very low data rates using hevc.

Does this include 10 bit color depth and HDR10 metadata or is that just for 8 bit sdr?

The former will be a little higher I suppose, if that's only for 8 bit.

Musicvid wrote on 6/7/2021, 9:17 PM

As with all long-GOP interframe encoders, it is 97% dependent on the motion complexity of each individual source. A slide show or talking head with straight cuts? -- Maybe 1 Mbps, if it even reaches that. A seashore with rolling waves, or the Blade Runner movie? - Easily 100 times that, or 100+ Mbps unless you tame the grain.

Once we stop thinking in terms of bitrate-centric encoding, and twist our heads around enough to grasp quality-centric encoding like CQ (HEVC) or CRF (x265), it can then become a meaningful question. With x265, for instance, CRF 23, assuming it gives a satisfactory encode for one movie, will probably give a satisfactory encode for another, but with a possibly radically different bitrate.

Not true, not even a little bit, with the bitrate metric most people embrace, since no two sources will meet the same motion criteria.

If you are doing your own tests, as @JN- has done prodigiously, your optimal CQ/CRF index occurs about when the SSIM reaches 0.995, assuming the output has not yet reached or surpassed the size of the source.

wwaag wrote on 6/7/2021, 9:49 PM

To the point that @Musicvid makes, regarding the "bitrate-centric encoding" approach, here's a link to an excellent article on rate control https://slhck.info/video/2017/03/01/rate-control.html and the authors' conclusion regarding use of vbr and why it should be avoided.

"Avoid using this mode! One of the main x264 developers himself says you should never use it. Why? As the encoder doesn’t know exactly what’s ahead in time, it will have to guess how to reach that bitrate. This means that the rate itself will vary, especially at the beginning of the clip, and at some point reach the target. Especially for HAS-type streaming, this leads to huge quality variations within short segments.

This is not a constant bitrate mode! While ABR is technically a VBR mode, it’s not much better than specifying a constant bitrate, in that it doesn’t reliably deliver good quality.

Good for: Quick (and dirty) encodes
Bad for: Almost anything"

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Musicvid wrote on 6/7/2021, 11:02 PM

@wwaag

The link you posted now has a big 🌟on my bookmark bar, Thanks!

@Teagan

Here is another article I like that explains the very basics of quality-based encoding.

Caution: Expect your head to be rotated exactly 180° counterclockwise.

https://handbrake.fr/docs/en/latest/technical/video-cq-vs-abr.html

RogerS wrote on 6/8/2021, 12:41 AM

Great link Wwaag, I also bookmarked it for future reference.

Howard-Vigorita wrote on 6/8/2021, 2:00 AM

I read that article and had to scratch my head. If Constant Quantizer vbr should never be used, no one ever told Nvidia or Intel. Their encoders both use it. And to use "nal-hrd=cbr" the output file needs to be .ts (MPEG-2 TS)? That's just not true. I've gotten among the highest quality ffmetrics readings with that private option and never once made an mpeg-2 ts file to do it.

Yelandkeil wrote on 6/8/2021, 3:17 AM

As with all long-GOP interframe encoders, it is 97% dependent on the motion complexity of each individual source. A slide show or talking head with straight cuts? -- Maybe 1 Mbps, if it even reaches that. A seashore with rolling waves, or the Blade Runner movie? - Easily 100 times that, or 100+ Mbps unless you tame the grain.

Absolutely correct!

And we can also refer to the bandwidth of a monitor cable, it decides the picture motion quality, sure its resolution, too.

And which codec we should take is depending on the decoding power of our hardware.

Besides, I don't think the film tachograph really follows a UHD-HDR10 video.

Last changed by Yelandkeil on 6/8/2021, 3:17 AM, changed a total of 1 times.

-- Hard&Software for 5.1RealHDR10 --

ASUS TUF Gaming B550plus BIOS3202: 
*Thermaltake TOUGHPOWER GF1 850W 
*ADATA XPG GAMMIX S11PRO; 512GB/sys, 2TB/data 
*G.SKILL F4-3200C16Q-64GFX 
*AMD Ryzen9 5950x + LiquidFreezer II-240 
*XFX Speedster-MERC319-RX6900XT <-AdrenalinEdition 24.12.1
Windows11Pro: 24H2-26100.3915; Direct3D: 9.17.11.0272

Samsung 2xLU28R55 HDR10 (300CD/m², 1499Nits/peak) ->2xDPort
ROCCAT Kave 5.1Headset/Mic ->Analog (AAFOptimusPack 6.0.9403.1)
LG DSP7 Surround 5.1Soundbar ->TOSLINK

DC-GH6/H-FS12060E_HLG4k120p: WB=manual, Shutter=125, ISO=auto/manual
HERO5_ProtuneFlat2.7k60pLinear: WB=4800K, Shutter=auto, ISO=800

VEGASPro22 + XMediaRecode/Handbrake + DVDArchi7 
AcidPro10 + SoundForgePro14.0.065 + SpectraLayersPro7 
K-LitecodecPack17.8.0 (MPC Video Renderer for HDR10-Videoplayback on PC) 

Howard-Vigorita wrote on 6/8/2021, 3:24 AM

@Teagan if you do the straightup math, you'll find that your 4k data is exactly 5x the size of your hd data. Suggesting that if your hd range was 14-16mbps, that the matching 4k range would be 70-80mbps. Though I could see it going higher if the chroma subsampling were bumped up. But given that hevc's compression efficiency is higher than that of avc, the bottom end of the range is probably fine for most cases. One's ultimate choice is often ruled, however, by what will fit onto the disk. As a general rule, I like to fill it up if I'm under capacity by bumping up the bit rate and get quality to spare.

Regarding diminishing returns with regard to the quality/bit-rate trade off, that's totally dependent on the footage being used. For instance, my camera gives me hevc in 60, 129, and 200 mbps. If I shoot 60, there will obviously be no quality gain going above that on the bluray. I think the quality analysis is only needed if you shoot something other than hevc and need to nail down where the 2 format's quality versus bit-rate curves intersect. An alternative conservative rule-of-thumb I've heard is to discount avc by about 20%... i.e, if you shoot 100 mbps avc and transcode, go for about an 80 mbps hevc bit-rate.

JN- wrote on 6/8/2021, 5:49 AM

@Teagan 

Does this include 10 bit color depth and HDR10 metadata or is that just for 8 bit sdr?

The former will be a little higher I suppose, if that's only for 8 bit.”

Its 8 bit 420. Most of the simple renders that I do are that. I doubt there would be much difference if any.

I was addressing only a very single aspect of your post, hevc vs h264, because there's a misconception out there that hevc is just, well, twice as good.

If this aspect is of interest to you also, I contributed similar to user “Kye” on EOSHD site, link here. He was also investigating related topic. So I did those ALL-I tests also, but found that the trend was very similar, law of diminishing returns. Alas, you won’t find much of my contribution at that link as I went the way of many before me, and Andrew removed all of my contributions..

This was an earlier one I did, IPB, and this is the data that it sits on for 14 items.If you are curious re: 10 bit HDR you can always do some tests of your own to see what's what.

Ignore the fact that I used a positive + or negative - value in the tables I posted, the results, trends are what matters.

Last changed by JN- on 6/8/2021, 6:07 AM, changed a total of 6 times.

---------------------------------------------

VFR2CFR, Variable frame rate to Constant frame rate link to zip here.

Copies Video Converts Audio to AAC, link to zip here.

Convert 2 Lossless, link to ZIP here.

Convert Odd 2 Even (frame size), link to ZIP here

Benchmarking Continued thread + link to zip here

Codec Render Quality tables zip

---------------------------------------------

PC ... Corsair case, own build ...

CPU .. i9 9900K, iGpu UHD 630

Memory .. 32GB DDR4

Graphics card .. MSI RTX 2080 ti

Graphics driver .. latest studio

PSU .. Corsair 850i

Mboard .. Asus Z390 Code

 

Laptop… XMG

i9-11900k, iGpu n/a

Memory 64GB DDR4

Graphics card … Laptop RTX 3080