output h.265 CBR

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Lauri Astala

  • Posts: 55
  • Joined: Sun Nov 19, 2017 4:08 pm

output h.265 CBR

PostMon Jan 17, 2022 11:47 am

Hi,

I'm trying to find a way to deliver a 4K video file in h.265 CBR, but cannot find anywhere how to make the setting to CBR. Is that not possible? And if it is possible, how to do that?

(I can easily deliver 4K h.265, but there is no setting for CBR.)

Thanks in advance!

DR 16.2.8, OSX 10.14.6
Offline
User avatar

Uli Plank

  • Posts: 21281
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: output h.265 CBR

PostMon Jan 17, 2022 11:49 am

Export in good intermediate codec and then use HandBrake.
No, an iGPU is not enough, and you can't use HEVC 10 bit 4:2:2 in the free version.

Studio 18.6.5, MacOS 13.6.5
MacBook M1 Pro, 16 GPU cores, 32 GB RAM and iPhone 15 Pro
Speed Editor, UltraStudio Monitor 3G, iMac 2017, eGPU
Offline

ChipKng

  • Posts: 82
  • Joined: Fri Jun 28, 2019 7:39 am
  • Real Name: Csaba Simon

Re: output h.265 CBR

PostMon Jan 17, 2022 1:06 pm

Have you tried with DR 17.4.3 ?
Windows 10 | Resolve 18.0.3 Studio | GTX 1070Ti (studio 472.84) 8Gb VRAM | 32 Gb RAM | i7-4790K
Offline

Lauri Astala

  • Posts: 55
  • Joined: Sun Nov 19, 2017 4:08 pm

Re: output h.265 CBR

PostMon Jan 17, 2022 8:01 pm

Thank you for your replies!

@Uli, I tried HandBreak, but it seems that "constant quality" does not mean CBR. So, I still wonder if it can do CBR?

@Csaba, no I haven't tried DR17 for other reasons (middle of a project). However, it would be very useful and nice if you (or someone else) could confirm that outputting h.265 with CBR was possible with DR17.4.3

Thanks again in advance!
Offline

Mads Johansen

  • Posts: 866
  • Joined: Mon Dec 19, 2016 10:51 am

Re: output h.265 CBR

PostMon Jan 17, 2022 10:51 pm

You can set Resolve to use a constant bitrate with the nvidia encoder. You can not set what the bitrate is.

The more interesting question is, why? What do you need a constant bitrate for?
Davinci Resolve Studio 18.6.6 Build 7, Windows 11, Nvidia 3060 TI, 551.86 Studio
Offline
User avatar

Uli Plank

  • Posts: 21281
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: output h.265 CBR

PostMon Jan 17, 2022 11:38 pm

Constant quality is the logical opposite of CBR for GOP codecs
No, an iGPU is not enough, and you can't use HEVC 10 bit 4:2:2 in the free version.

Studio 18.6.5, MacOS 13.6.5
MacBook M1 Pro, 16 GPU cores, 32 GB RAM and iPhone 15 Pro
Speed Editor, UltraStudio Monitor 3G, iMac 2017, eGPU
Offline

Lauri Astala

  • Posts: 55
  • Joined: Sun Nov 19, 2017 4:08 pm

Re: output h.265 CBR

PostTue Jan 18, 2022 9:12 am

Thanks again for your replies!

@Mads, well, I need the file for an exhibition projection, and (in this case) I need to play the file from a player. Players have bitrate limits, and I need to maximise the quality. Therefore, to maximise the quality, I need to have constant bitrate that is set close to the max bit rate of the player.

@Uli, ok, yes, very logical. But then HandBrake cannot deliver CBR – the other option (instead of Constant Quality) is Average Bitrate, which is not constant bitrate either.
Offline

Mario Kalogjera

  • Posts: 1201
  • Joined: Sat Oct 31, 2015 8:44 pm

Re: output h.265 CBR

PostTue Jan 18, 2022 9:35 am

Lauri Astala wrote:Thanks again for your replies!

@Mads, well, I need the file for an exhibition projection, and (in this case) I need to play the file from a player. Players have bitrate limits, and I need to maximise the quality. Therefore, to maximise the quality, I need to have constant bitrate that is set close to the max bit rate of the player.

@Uli, ok, yes, very logical. But then HandBrake cannot deliver CBR – the other option (instead of Constant Quality) is Average Bitrate, which is not constant bitrate either.


You don't need CBR with h.265 to get best quality at a player's max bitrate, unless someone insists that VBR file is "too small" as it happened to me so I HAD to produce CBR to meet their weird conception of acceptable file size.

If you're on OSX with AMD GPU, AMD GPU's VCEENC encoder should allow for h.265 CBR.
Asus Prime X370-Pro+R7 3700X@PBO+32 GB G.Skill AEGIS DDR-4@3200MHz
Sapphire RX6700 10GB
Adata A400 120GB System,A2000 500GB Scratch SSDs
Media storage:"Always in motion is it"
BMD Mini Monitor 4K
Windows 11 Pro+Resolve Studio 18+Fusion Studio 18
Offline

Andrew Kolakowski

  • Posts: 9209
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: output h.265 CBR

PostTue Jan 18, 2022 11:41 am

Lauri Astala wrote:@Uli, ok, yes, very logical. But then HandBrake cannot deliver CBR – the other option (instead of Constant Quality) is Average Bitrate, which is not constant bitrate either.


It does, you just need to set it properly with custom command option.
eg.
vbv-maxrate=15000:vbv-bufsize=15000:bitrate=15000:strict-cbr=1
Offline

stesin

  • Posts: 139
  • Joined: Sat Oct 24, 2020 4:25 pm
  • Location: Cyprus
  • Real Name: Andreas Stesinou

Re: output h.265 CBR

PostTue Jan 18, 2022 12:32 pm

Lauri Astala wrote:@Mads, well, I need the file for an exhibition projection, and (in this case) I need to play the file from a player. Players have bitrate limits, and I need to maximise the quality.
Dear Lauri, are you completely sure about the player having some "limits" and what exactly the limit is? From my experience, in the last 10+ years, you can play virtually anything in FHD resolution on any FHD-capable device, no matter what the codec and bandwidth are. Though I am not familiar with UHD-capable players, do you really have one there? But Okay, let's suppose there really is a limit. Then,
Lauri Astala wrote:Therefore, to maximise the quality, I need to have constant bitrate that is set close to the max bit rate of the player.
Nope. Actually, to maximize the quality you need just... to maximize the quality! (within the given bitrate limit).

So my bet is you don't need CBR but the CQ mode is your way to go instead. I'd suggest starting with the delivery of the master original of your video into one of the "good" codecs (ProRes or DNxHR) in "good" quality, think DNxHR HQ or maybe even HQX profile.

The next step is to use the transcoding software (ffmpeg or Handbrake or whatever) and transcode your master into H.265 VBR with the CQ level fixed to i.e. 18. Look at what was produced, check the size and bitrate.

If the bitrate has some window to increase inside your limit, try a smaller CQ level value, say 10 and see if the bitrate still fits. If the resulting bitrate exceeds the limit, then try a larger CQ level value, say 23. Note: CQ is a floating-point number so you can try values with a decimal point for it.

After a few try-and-fail attempts, you will get the best quality possible which still fits your bitrate limit.
Blackmagick DaVinci Resolve Studio 17.4.6
Blackmagick Speed Editor USB cable connected
Linux Ubuntu 22.04 (5.18.14)
Asus G750 i7-4860HQ 32GB RAM
NVidia 980M 8Gb (510.85.02 CUDA: 11.6)
2x166GB SSDs in RAID0 - DVRS Caches
1x4TB Samsung EVO 870 SSD
Offline

Andrew Kolakowski

  • Posts: 9209
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: output h.265 CBR

PostTue Jan 18, 2022 1:01 pm

CBR is still needed but only for specific cases ( VOD, streaming, etc.). For any local playback or passing file to YT, client etc. CBR is rather useless as already said.
Offline

Lauri Astala

  • Posts: 55
  • Joined: Sun Nov 19, 2017 4:08 pm

Re: output h.265 CBR

PostTue Jan 18, 2022 2:31 pm

Well, I already have my 4K master file (ProRes4444), and I have played the work from a computer before (4K ProResLite) and it looked good! So the question is not about delivering a good quality file, it is the question of delivering a good quality 4K HEVC file to be played from a player that has 80Mbps limit.

I've seen the ProResLite projected and shown in my exhibition and it looked very good. I've seen the ProResLite file and the HEVC file on a timeline and can compare that the HEVC (limited to 80000kbps) is not as good quality already. So I don't want to go lower quality, I want to maximise the quality in the given premises.

The technician told me to make it CBR, because he has had problems with VBR. He says this is crucial when having multi-cannel videos synced between players, and I know he knows what he is talking about.

Now, my project is only single channels, so in this case we will try to have VBR straight from DR (limit max bitrate say 75Mbps). Hopefully that works.

If the video file goes temporarily over the 80000kbps, the player cannot keep on the frame rate and starts to jitter, loose frames, pause,... Then, if I export from HandBrake, I will not have control of the peak bitrate, and finding out whether the file goes over the limit in any point is impossible – or possible by an endless try&error with the player. But I don't want to waste my time on making endless experiments. There should be a setting for this that I can control. (DR seems to have it.)

I'm not saying whether CBR is good or bad or what ever, but there are still instances that you need to have it.
Offline

Lauri Astala

  • Posts: 55
  • Joined: Sun Nov 19, 2017 4:08 pm

Re: output h.265 CBR

PostTue Jan 18, 2022 6:10 pm

...and thanks to @Andrew and @Uli, you were the only ones who said something productive!
Offline

stesin

  • Posts: 139
  • Joined: Sat Oct 24, 2020 4:25 pm
  • Location: Cyprus
  • Real Name: Andreas Stesinou

Re: output h.265 CBR

PostTue Jan 25, 2022 6:36 pm

Lauri Astala wrote:...and thanks to @Andrew and @Uli, you were the only ones who said something productive!
I apologize for taking your time with my useless speech. Regards, Andreas
Blackmagick DaVinci Resolve Studio 17.4.6
Blackmagick Speed Editor USB cable connected
Linux Ubuntu 22.04 (5.18.14)
Asus G750 i7-4860HQ 32GB RAM
NVidia 980M 8Gb (510.85.02 CUDA: 11.6)
2x166GB SSDs in RAID0 - DVRS Caches
1x4TB Samsung EVO 870 SSD

Return to DaVinci Resolve

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], Jim Simon, peeceful and 158 guests