Tag Archives: gain

Why gain is bad for your dynamic range.

One way to reduce the noise in a video camera image is to reduce the cameras gain. One way to increase the brightness of the image is to add gain.

We all know that increasing the gain to lets say +6db will increase noise and generally the reverse holds true when you reduce the gain, the noise typically reduces and this may be helpful if you are going to do a lot of effects work, or just want a clean image.

However in most cases adding or removing gain reduces the cameras dynamic range as it will artificially clip or limit your low key or high key parts of the image. The maximum illumination level that a camera can capture is limited by the sensor or the gamma curves that the camera has. The black level or darkest part of the image is the point where the actual image signal compared to the sensor noise level is high enough to allow you to see some actual picture information (also known as noise floor). So the dynamic range of the camera is normally the range between the sensors noise floor and recording or sensor clipping point.

To maximise the cameras dynamic range the designers will have carefully set the nominal zero db gain point (native ISO) so that the noise floor is at or very close to black and the peak recording level is reached at the point where the sensor itself starts to clip.

The gain of the camera controls the video output and recording level, relative to the sensors signal level. If you use -3db gain you attenuate (reduce) the relative output signal. The highlight handling doesn’t change (governed by the sensor clipping or gamma curve mapping) but your entire image output level gets shifted down in brightness and as a result you will clip off or loose some of your shadow and dark information, so your overall dynamic range is also reduced as you can’t “see” so far into the shadows. Dynamic range is not just highlight handling, it is the entire range from dark to light. 3db is half a stop (6db = 1 stop) so -3db gain reduces the dynamic range by half a stop, reducing the cameras underexposure range without (in most cases) any change to the over exposure range, so overall the total dynamic range is reduced.

When you add gain the reverse happens. Generally how far the sensor can see into the shadows is limited by the sensors noise floor. Add 6db of gain and you will make the darkest parts of the image brighter by 6db, but you will also raise the noise level by the same amount. So while you do end up with brighter shadow details you can’t actually see any more picture information because the noise level has increased by the same amount. At the top end as the brightest sensor output is mapped to the maximum recording level at 0db, when you add gain this pushes the recording level beyond what can be recorded, so you loose 6db off the top end of your recordings because the recordings and output clips 6db earlier. So positive gain maintains the same shadow range but reduces the highlight recording range by 6db.

However you use it gain tends to reduce your dynamic range. Adding gain to cope with poor lighting tends to be the lesser of the two evils as generally if your struggling for light then overexposure and blown out highlights is often the last of your worries.

Negative gain is sometimes used in camera to try to reduce noise, but the reality is that you are loosing dynamic range. Really a better solution would be to expose just a tiny bit brighter and then bring your levels down a bit in post production.

Camera Gain: It doesn’t make the camera more sensitive! (also relevant EI S-Log).

This is something that’s not well understood by many people. It helps explain why the PMW-F3 (and other cameras) EI S-Log function is so useful.

You see, camera gain does not normally actually change the cameras ability to capture photons of light. A CCD or CMOS sensor has a number of photo sites that capture photons of light and convert those photons into electrons or electrical charge. The efficiency of that capture and conversion process is fixed, it’s known as the QE or quantum efficiency. There are a  lot of factors that effect this efficiency, such as the use of micro lenses, whether the sensor is back or front illuminated etc. But all of these factors are physical design factors that do not change when you add extra camera gain. The sensitivity of the sensor itself remains constant, no matter what the camera gain is set to.

Camera gain is applied to the signal coming out of the sensor. It’s a bit like turning up the volume on a stereo amplifier. If you have a quite piece of music, turning up the volume makes it louder, but the original piece of music is still a quiet piece of music. Turning up the volume on your stereo, as well as making the music louder will also make any hiss or background noise in the music louder and it’s exactly the same with a video camera. As you increase the gain, as well as the wanted video signal getting bigger (brighter) all the unwanted noise also get bigger. So adding gain on your video camera doesn’t actually make the camera more sensitive, but it does make what light the camera has captured brighter in the recordings and output, giving the impression that the camera has become more sensitive, however this is at the penalty of increased background noise.

As well as adding gain to the image in the camera, we can also add gain in post production. Traditionally gain has been added in camera because the gain is added before the recording process. In the uncompressed analog days the recording process itself added a lot of noise. In the digital age the process of compressing the image adds noise.  8 bit recordings have quite small number of grey shades. So any gain added in post production amplifies not only the camera signal but also the added recording or compression noise so generally gives an inferior result to adding gain in camera. With an 8 bit signal the stretching of the relatively few grey shades results in banding.

Now, however the use of lower noise sensors and much improved 10 bit or higher recording codecs or even uncompressed recording means that adding gain in post as opposed to in camera is not such a bad thing. In some cases you can use post production noise reduction prior to adding post gain and by leveraging the processing and rendering power of a computer, which will normally be of greater quality than the in camera processing, you can get a cleaner, lower noise output than you would using in camera gain. So before you flick on the gain switch of your camera, if your using only very light 10 bit or higher compression (HDCAM SR, Cineform, ProRes HQ) or uncompressed do consider that you may actually be better waiting until you get into post before you add gain.

Some modern cameras, like Red or the Sony F3 can use something called EI gain. EI gain does not actually add any gain to the recorded signal (or signal output in the case of the F3). Instead it adds gain to the monitor output only and adds metadata to the recording to tell the post facility or conversion software to add gain. This way you see on the monitor what the image should look like when the gain has been added, but the recording itself has no gain added giving the post production team the ability to fine tune exactly how much gain is applied.

Why using negative gain can be bad, unless you have an F3.

One way to reduce the noise in a video camera image is to reduce the cameras gain. We all know that increasing the gain to lets say +6db will increase noise and generally the reverse holds true when you reduce the gain, the noise typically reduces and this may be helpful if you are going to do a lot of effects work, or just want a clean image.

However in most cases negative gain reduces dynamic range as it will artificially clip your low key parts of the image. The brightness range is restricted by the cameras DSP (Digital Signal Processor), it only has so many bits of data to sample the sensors output, from dark to light. If you reduce the gain the highlight handling doesn’t change (DSP bit depth limited) but your entire image get shifted down in brightness and as a result you will clip off some of your shadow and dark information, so your overall dynamic range is also reduced. Dynamic range is not just highlight handling, it is the entire range from dark to light. 3db is half a stop (6db = 1 stop) so -3db gain reduces the dynamic range by half a stop.

So for cameras like the EX1 and EX3 or even PMW-500/PDW-700 using negative gain can be a bad thing to do. You need to be aware that there is a trade off of noise against dynamic range and need to be sure that the small noise benefit are worth the sacrifice of some latitude. The problem is further compounded on the EX1 and EX3 where the use of -3db gain also reduces the peak white recording level by 3db and with Cinegamma 2 this will prevent you from actually reaching peak white (unless you change the gamma curve gain).
Interestingly the PMW-F3 has an excess of dynamic range for the normal gammas and cinegammas and the processing appears to take advantage of this to keep the images very clean. When you shoot with the standard gammas and cinegammas on the F3 the cameras base ISO (sensitivity) is 400 asa at 25p. This gives a very clean, ultra low noise image with 11.5 stops of dynamic range. When you switch the camera to S-Log, which gives a greater dynamic range (approx 13 stops by my estimation) the base ISO increases to 800 asa.  Looking at some of my S-Log test footage a clear increase in under exposure latitude can be seen when you use S-Log. I suspect that the “0db” point in the F3 is actually 800 asa as used by S-Log, where maximising dynamic range and using the full sensor range is the priority. Meanwhile with standard gammas, which are limited to 11.5 stops anyway, you can reduce the gain by 6db (1 stop) sacrificing one stop of underexposure but still have the full 11.5 stops but with 6db less noise.

What is ISO and how does it compare to gain?

With more and more people using 35mm size sensors, more of the old traditional filming styles and techniques are trickling down from the high end to lower and lower production levels. This is a good thing as it often involves slowing down the pace of the shoot and more time being taken over each shot. One of the key things with film is that you can’t see the actual exposure on a monitor as you can with a video camera. A good video assist system will help, but at the end of the day exposure for film is set by using a light meter to measure the light levels within the scene and then you calculate the optimum exposure using the films ISO rating.
So what exactly is an ISO rating?

Well it is a measure of sensitivity. It tells you how sensitive the film is to light, or in the case of a digital stills or video camera how sensitive the sensor is to light. Every time you double the ISO number you are looking at doubling the sensitivity. So ISO 200 is twice as sensitive as ISO 100. ISO 1600 is twice as sensitive as ISO 800 etc.
Now one very important thing to remember is that ISO is a measure of sensitivity ONLY. It does not tell you how noisy the pictures are or how much grain there is.  So you could have two cameras rated at 800 ISO but one may have a lot more noise than the other. It’s important to remember this because if you are trying, for example, to shoot in low light you may have a choice of two cameras. Both rated with a native sensitivity of 800 ISO but one has twice as much noise as the other. This would mean that you could use gain (or an increased ISO) on the less noisy camera and get greater sensitivity, but with a final picture that is no more noisy than the noisier camera.
How does this relate to video cameras?

Well most video camera don’t have an ISO rating, although if you search online you can often find someone that has worked out an equivalent ISO rating. The EX1 is rated around 360 ISO. The sensitivity of a video camera is adjusted by adding or reducing electronic gain, for example +3db, +9db etc. Every 6db of gain you add, doubles the sensitivity of the camera. So taking an EX1 (360 ISO) if you add 6db of gain you double the sensitivity and you double the ISO to 720 ISO, but you also double the amount of noise.
Now lets compare two cameras. The already mentioned EX1 rated at approx 360 ISO and the PMW-350 rated at approx 600 ISO. As you can see from the numbers the 350 is already almost twice as sensitive as the EX1 at 0db gain. But when you also look at the noise figures for the cameras, EX1 at 54db and 350 at 59db we can see that the 350 has almost half as much noise as the EX1. In practice what this means is that if we add +6db gain to the 350 we add +6db of noise so that brings the noise level 53db, very close to the EX1. So for the same amount of noise the 350 is between 3 and 4 times as sensitive as the EX1.
Does your head hurt yet?
There is also a good correlation between sensitivity and iris setting or f-stop. Each f stop represents a doubling or halving of the amount of light going through the lens. So 1 f-stop is equal to 6db of gain, which is equal to a doubling (or halving) of the ISO. You may also hear another term in film circles and that is the T-stop. A T stop is a measured f-stop, it includes not only the light restriction created by the iris but also any losses in the lens. Each element in a lens will lead to a reduction in light and T stops take this into account.

So there you go. The key thing to take away is that ISO (and even the 0db gain setting on a video camera) tells you nothing about the amount of noise in the image. Ultimately it is the noise in the image that determines how much light you need in order to get a decent picture, not the ISO number.