Whilst Hybrid Log Gamma (HLG) is continuing to gain popularity for recordings and broadcast, there is often a lot of confusion and misinformation out there regarding HLG as an acquisition and grading format, so I thought to write up a few points that will hopefully provide some clarity for those looking to produce content using it.
This post is not intended to go through the low-level in’s and out’s of the HLG format – there is already a plethora of information available from the BBC, NHK and ITU as well as associated recommendations. We will instead focus on the specifics around recording and subsequently editing HLG content for delivery to SDR and HDR formats. In Part 1 we will focus on Recording content using the HLG format.
Recording with HLG
To understand how to properly record with Hybrid Log Gamma, we must first look at the ITU-R BT.2100 specification and the ITU-R BT.2408 recommendations.
The ITU-R BT.2100 specification has a nominal range of 0 – 12 for HLG, whereas the ITU-R BT.709 specification and most other Log formats have a nominal range of 0-1. In practical terms, the Rec.709 Opto-Electronic Transform (OETF) maps a Camera’s 18% Middle Gray reference to 40.9% IRE (rounded to 41%) when recording at video levels (40.5% when recording data levels). In the case of HLG, whilst keeping the nominal 0-12 range in mind, the HLG OETF maps a camera’s 18% Middle Gray reference to 21.2% IRE when recording at video levels. This has been rounded up to 22% on some sites, though rounding down to 21% IRE is perhaps more accurate.
Using BT.2100 as a base reference, the BT.2408 recommendation provides further guidance for production practices and recommends an 18% Middle Gray be exposed at 38% IRE with a nominal luminance of 26 cd/m2 for HLG.
What this means is that when referencing the BT.2408 recommendation, pointing a camera’s exposure meter at an 18% Middle Gray card will result in an output of 38% IRE on a waveform monitor. Similarly, when referencing the BT.2100 specification, a camera will display an output of 21% IRE on the waveform monitor against an 18% Middle Gray card.
In order to visualize what all this means, I’ve plotted the HLG BT.2408 recommendation and the BT.2100 Specification (i.e. what the camera natively sees) against a Characteristic Curve in the diagram below.
At first glance, the Camera Native output exhibits more latitude in the highlights – approximately 1 ⅔ stops more compared to BT.2408 – however, the downside of this additional highlight range is that there is more range given to the darker parts of the scene as well. Considering that many Log curves have an 18% middle gray around the 34-45% IRE range, the HLG BT.2100 specification’s 21% IRE for middle gray is quite low and by extension more susceptible to visible noise. This becomes apparent in low-light scenarios and on crop sensors such as 1″, m4/3 or APS-C with some full-frame sensors also exhibiting increased noise – largely due to the lower dynamic range capabilities of all those sensors. Below is a 10x magnification of comparative clips shot on a Lumix GH5 using HLG exposed at approximately 21% and 38% IRE respectively.
The noise is visible when exposed at the native 21% IRE, though some may find this luma noise acceptable or even aesthetically pleasing, much like the desirable grain of film stock footage. Whilst Panasonic seem to do a great job of controlling the nasty chroma noise across the image, cameras from other vendors (looking at you Sony) may not be as forgiving and exhibit blotchy chroma colors, especially in the shadows. The noise is significantly reduced when exposing to the BT.2408 recommendation of 38% IRE, though it comes at the cost of reduced range in the highlights. This is to be expected when Exposing To The Right (ETTR) and may be a downside if delivering for HDR formats.
There may be other caveats when exposing footage at 38% IRE though. Firstly, the Camera’s Exposure Meter will be offset. When an 18% Gray Card is correctly exposed for HLG BT.2100, the Exposure Meter will show a value of zero to reflect 21% IRE. However, when adjusting for 38% IRE, the image will need to be over-exposed by 1 ⅔ stops and this delta will need to be kept in mind whist recording content with changing brightness levels. In-camera exposure readouts are therefore very important and some cameras will display accurate exposure values when moving up and down the brightness levels , whereas others will show a very limited range or even worse a rough estimate.
To adjust the exposure levels for BT.2408, there needs to be an increase in the amount of light reaching the sensor. This can be done artificially by increasing the ambient lighting or reducing the ND filter strength, if one is being used. It’s also a win-win scenario if highlight preservation is not required. However, many “run and gun” scenarios will have limited ability to modify ambient lighting and possibly may not use Neutral Density filters altogether. In this situation, exposure adjustments can be achieved in-camera by increasing the aperture (lowering the ƒ-stops) by approximately 1 ⅔ stops or increasing the Gain/ISO accordingly.
An increase in the aperture will ultimately result in a shallower depth of field and further blurring of out-of-focus areas, which may be desirable or undesirable based on the circumstances. In some instances, an increase to the aperture may not be possible due to it already being at the maximum. This would then require that the Gain/ISO be increased as a last resort. An increase in the Gain/ISO will effectively amplify the signal coming from the sensor. This will also amplify any noise that has been captured with the addition of further signal degradation due to interference from other electronic components. A signal degradation would effectively mean a reduced Signal to Noise Ratio (SNR), in which case any benefits of opting for the BT.2408 recommendation over the BT.2100 specification could potentially be nullified. In real-world tests however, when increasing the base ISO by 1 ⅔ stops, there was only a slight reduction in the SNR and the overall image exhibited far less noise than when exposed at the default 21% IRE. With that said, as a general rule of thumb, it’s recommended to record with the camera’s base ISO/Gain/SNR where possible to maximize the available dynamic range.
So, what parameters should you use for recording with Hybrid Log Gamma?
Firstly, select spot metering on your camera and point the center at your 18% Gray Card to ensure your exposure readings are correct. The quality of your Gray Card is also important as some of the $2 cards tend to be cheap & nasty. If you’re unable to use a Gray Card, then the BT.2408 recommendation also provides a rough guide on skin tone exposure levels. Based on 38% IRE Middle Gray, the skin tone levels range from 25% IRE for the darker skin tones up to 65% for the lightest of skin tones, with the average skin tone sitting within the 45-60 IRE range. This would equate to roughly -1 ⅓ stops below middle gray for the darker skin tones and up to +1 ⅔ stops above middle gray for the lightest skin tones, whilst the average skin tones would be roughly between +⅓ to +1 ½ stops above middle gray. Once exposure metering has been set, the next question is whether to to go with BT.2408 recommendations or the HLG BT.2100 specification?
Think of BT.2408 recommendations as “Exposing To the Right” of the BT.2100 specification. The benefits are there if you would like to reduce visible noise, even if only done by increasing the Gain/ISO by 1 ⅔ stops. If you are delivering to a Standard Dynamic Range (SDR) format such as Rec.709 where bright highlights will be clipped regardless, then go with the BT.2408 recommendation.
If you are delivering for HDR and would like to eke out those extra NITs in the highlights, then go with the BT.2100 specification as native to the camera, provided the noise is manageable. If the noise in the shadows and mid-tones is too ugly, then go for the BT.2408 recommendation instead.
Another option may be to over-expose or under-expose shots – whether choosing the BT.2408 recommendation or BT.2100 HLG Spec. – in order to preserve highlights, shadows or further reduce noise. For example, you could over-expose the HLG BT.2100 reference by 1 stop at 30% IRE to reduce visible noise but still leave additional headroom in the highlights (approximately ⅔ EV more room compared to BT.2408). The over/under exposure can then be corrected later in post manually or by using tools such as the HLG Normalized Transform or the Exposure Correction OFX / Exposure Correction Transform.
The following Tables provide a handy reference when under-exposing or over-exposing relative to the BT.2408 recommendation or HLG.BT2100 specification respectively.
When in doubt about what settings to use for recording Hybrid Log Gamma, stick to the camera’s Base ISO and go with the BT.2408 recommendation of 38% IRE.
Once you’ve decided on the technical parameters, how do you then go about ingesting and correcting the footage in Video Editing Software? Why does some footage show black splotches? Why does some HLG footage look dull or dark or too bright when imported? Can I use Rec.709 settings for HLG? Can I use HLG with ACES? How do I use the HLG Normalized Transform with BT.2408 or BT.2100? All of that will be covered in Part 2.