Tag Archives: cinegamma

Choosing the right gamma curve.

One of the most common questions I get asked is “which gamma curve should I use?”.

Well it’s not an easy one to answer because it will depend on many things. There is no one-fits-all gamma curve. Different gamma curves offer different contrast and dynamic ranges.

So why not just use the gamma curve with the greatest dynamic range, maybe log? Log and S-Log are also gamma curves but even if you have Log or S-Log it’s not always going to be the best gamma to use. You see the problem is this: You have a limited size recording bucket into which you must fit all your data. Your data bucket, codec or recording medium will also effect your gamma choice.

If your shooting and recording with an 8 bit camera, anything that uses AVCHD or Mpeg 2 (including XDCAM), then you have 235 bits of data to record your signal. A 10 bit camera or 10 bit external recorder does a bit better with around 940 bits of data, but even so, it’s a limited size data bucket. The more dynamic range you try to record, the less data you will be using to record each stop. Lets take an 8 bit camera for example, try to record 8 stops and that’s about 30 bits per stop. Try to extend that dynamic range out to 11 stops and now you only have about 21 bits per stop. It’s not quite as simple as this as the more advanced gamma curves like hypergammas, cinegammas and S-Log all allocate more data to the mid range and less to highlights, but the greater the dynamic range you try to capture, the less recorded information there will be for each stop.

In a perfect world you would choose the gamma you use to match each scene you shoot. If shooting in a studio where you can control the lighting then it makes a lot of sense to use a standard gamma (no knee or knee off) with a range of up to 7 stops and then light your scene to suit. That way you are maximising the data per stop. Not only will this look good straight out of the camera, but it will also grade well provided your not over exposed.

However the real world is not always contained in a 7 stop range, so you often need to use a gamma with a greater dynamic range. If your going direct to air or will not be grading then the first consideration will be a standard gamma (Rec709 for HD) with a knee. The knee adds compression to just the highlights and extends the over-exposure range by up to 2 or 3 stops depending on the dynamic range of the camera. The problem with the knee is that because it’s either on or off, compressed or not compressed it can look quite electronic and it’s one of the dead giveaways of video over film.

If you don’t like the look of the knee yet still need a greater dynamic range, then there are the various extended range gammas like Cinegamma, Hypergamma or Cinestyle. These extend the dynamic range by compressing highlights, but unlike the knee, the amount of compression starts gradually and get progressively greater. This tends to look more film like than the on/off knee as it tends to roll off highlights much more gently. But, to get this gentle roll-off the compression starts lower in the exposure range so you have to be very careful not to over expose your mid-range as this can push faces and skin tones etc into the compressed part of the curve and things won’t look good. Another consideration is that as you are now moving away from the gamma used for display in most TV’s and monitors the pictures will be a little flat so a slight grade often helps with these extended gammas.

Finally we come to log gammas like S-Log, C-Log etc. These are a long way from display gamma, so will need to be graded to like right. In addition they are adding a lot of compression (log compression) to the image so exposure becomes super critical. Normally you’ll find the specified recording levels for middle grey and white to be much lower with log gammas than conventional gammas. White with S-Log for example should only be exposed at 68%. The reason for this is the extreme amount of mid to highlight compression, so your mid range needs to be recorded lower to keep it out of the heavily compressed part of the log gamma curve. Skin tones with log are often in the 40 – 50% range compared to the 60-70% range commonly used with standard gammas.  Log curves do normally provide the very best dynamic range (apart from raw), but they will need grading and ideally you want to grade log footage in a dedicated grading package that supports log corrections. If you grade log in your edit suite using linear (normal gamma) effects your end results won’t be as good as they could be. The other thing with log is now your recording anything up to 13 or 14 stops of dynamic range. With an 8 bit codec that’s only 17 – 18 bits per stop, which really isn’t a lot, so for log really you want to be recording with a very high quality 10 bit codec and possibly an external recorder. Remember with a standard gamma your over 30 bits per stop, now were looking at almost half that with log!

Shooting flat: There is a lot of talk about shooting flat. Some of this comes from people that have seen high dynamic range images from cameras with S-Log or similar which do look very flat. You see, the bigger the captured dynamic range the flatter the images will look. Consider this: On a TV, with a camera with a 6 stop range, the brightest thing the camera can capture will appear as white and the darkest as black. There will be 5 stops between white and black. Now shoot the same scene with a camera with a 12 stop range and show it on the same TV. Again the brightest is white and black is black, but the original 6 stops that the first camera was able to capture are now only being shown using half of the available brightness range of the TV as the new camera is capturing 12 stops in total, so the first 6 stops will now have only half the maximum display contrast. The pictures would look flatter. If a camera truly has greater dynamic range then in general you will get a flatter looking image, but it’s also possible to get a flat looking picture by raising the black level or reducing the white level. In this case the picture looks flat, but in reality has no more dynamic range than the original. Be very careful of modified gammas said to give a flat look and greater dynamic range from cameras that otherwise don’t have great DR. Often these flat gammas don’t increase the true dynamic range, they just make a flat picture with raised blacks which results in less data being assigned to the mid range and as a result less pleasing finished images.

So the key points to consider are:

Where you can control your lighting, consider using standard gamma.

The bigger the dynamic range you try to capture, the less information per stop you will be recording.

The further you deviate from standard gamma, the more likely the need to grade the footage.

The bigger the dynamic range, the more compressed the gamma curve, the more critical accurate mid range exposure becomes.

Flat isn’t always better.

Convergent Design Gemini throws up a ProRes Issue. Watch out for Clipping with S-Log.

OK, I wrote about this without digging deep enough. If you read the original article I claimed that ProRes was clipping my files at 104%. Well it’s NOT. The ProRes files are just fine, BUT some Quick Time applications are clipping the files at playback. In FCP the files are OK. Premiere appears to be reducing the level of the files a little and Quick Time player is clipping the files at approx 104. So this isn’t as big an issue as I thought, but you do need to keep an eye out as to what is happening with highlights and super whites depending on what software you are using. I was wondering why I hadn’t seen this before. In part it because I am no longer using FCP.

Convergent Design Gemini throws up a ProRes Issue. NOT THE PROBLEM I THOUGHT IT IS

OK, I wrote about this without digging deep enough. If you read the original article I claimed that ProRes was clipping my files at 104%. Well it’s NOT. The ProRes files are just fine, BUT some Quick Time applications are clipping the files at playback. In FCP the files are OK. Premiere appears to be reducing the level of the files a little and Quick Time player is clipping the files at approx 104. So this isn’t as big an issue as I thought, but you do need to keep an eye out as to what is happening with highlights and super whites depending on what software you are using. I was wondering why I hadn’t seen this before. In part it because I am no longer using FCP.

Exposing when shooting S-Log.

The question over whether to deliberately underexpose or not with S-Log came up recently. I believe that you need to evaluate the entire scene when shooting S-Log and that the often heard “underexpose by a stop” methodology may have some issues. Here’s my take on the situation:

A couple of caveat’s first: Most of my F3 S-Log work has been in indoor situations as I have been tied to recording to various less than portable 10 bit recording solutions, so very often using a restricted contrast range. I’ve only owned S-Log for my F3’s for a short while now, so many of my earlier tests were on 3rd party cameras, some of these were beta cameras.

I have not fully tied down my workflow. I’m still investigating external recorders, everything from the Ninja, Ki-Pro, Sound Devices and of course Gemini. I’m leaning very heavily towards the Gemini as I do a lot of 3D and the Gemini LCD makes for a fantastic monitor.
Back to exposure, this is obviously going to be a slightly contentious area as there is no real “correct way to do it”. While I might not agree with pinning skin tones or anything else for that matter to one particular brightness range, that does not mean I’m right and anyone else is wrong, it is just a different approach and methodology. At the end of the day, if it works for you and gets the results you want, then that will be the way you should go, these things are not black and white, right or wrong.
A very un-scientific test that a did a while back was an eye opener for me. I was exploring the finite latitude of S-Log compared to the F3’s cinegammas. I did a couple of very quick shots, you will find them here: http://www.xdcam-user.com/2011/06/pmw-f3-s-log-and-cinegamma-quick-look/
When I filmed these two examples I was looking at dynamic range, I exposed in both cases with the bright whites of the back wall behind the girl just going into clipping so I could then see how far into the shadows I could still see useable detail. I was not concerned about getting the skin tone exposure correct. When you look at the raw S-Log it really looks pretty shocking and even I wasn’t sure how much I would recover from the highlights and the girl is a good stop overexposed. However after a very simple grade using only the colour corrector in FCP, I was able to extract a pretty good looking image and it’s amazing how much detail was actually retained in what looked like over exposed high lights.  The Girl’s skin tones which I’ve measured at over 85IRE came down very nicely without any issue. A proper grade in a grading suite would I’m sure improve them still further.
What this very crude test told me was that you have incredible flexibility over where you put skin tones, you can comfortably move them up and down in post by a quite significant margin. Also seemingly overexposed S-Log highlights will contain surprisingly large amounts of fully recoverable detail. In the same test I graded the Cinegamma material to try to recover the shadow detail that was lost by due to the reduced latitude. This involved attempting to pull up the shadow areas. While this was somewhat successful, what became very apparent was the way the noise increased quite dramatically, this is something I have been aware of since I started using Cinegammas many years ago, pulling levels up will increase noise.
So… when I expose with Cinegammas (as I have done for many years) I have always been very conscious of the noticeable effect on noise that trying to lift underexposed parts of the image has. Very often in the grade the limiting factor as to how far you can push the image has been down to the noise floor and noise effects. This has mainly been with Sony EX’s which have a 54db noise floor.
Now with the F3 with have a dilemma! S-Log gives us another +1.5ish stops of dynamic range, but at the expense of a +6db increase in noise due to the +1 stop increase in sensitivity associated with S-Log.
Lets say for example that we shoot a shot with a person and we under expose the face by one stop (one stop = 6db).
If we do this with with the Cinegammas and then grade the shot bringing the face up one stop then the noise will increase by 6db from the base noise figure of 63db giving a final noise figure of approx 57db (in the case of signal to noise, a lower number is worse).
If we do this with S-Log and then grade the shot bringing up the face by one stop then the noise will increase by 6db from the base of 57db giving a final noise figure of approx 51db.
So the S-Log image becomes twice as noisy as the cinegamma material and therefore depending on the footage, it is quite possible that you would actually be able to push mid ranges and shadows further with Cinegammas than S-log in an underexposed situation due to noise issues. The S-Log and Cinegamma curves are almost identical up to over 50IRE, so latitude performance under 50IRE is essentially the same. See the charts on this page: http://www.xdcam-user.com/2011/05/s-log-a-further-in-depth-look/
If I get some time at IBC I might see if I can set up some tests to show this in practice.
Now given that I have seen for myself how with S-Log skin tones can be pushed down just as much as up in post, I tend to try to evaluate the entire scene and consider how it will be treated in post before choosing how to expose. In particular I don’t want to expose so that the entire scene will end up being lifted by a significant amount, as noise will become a concern. This isn’t always going to be possible as there are many shots where highlights have to be protected, but I don’t believe that you have to set skins etc at any particular narrow brightness range, I tend to let skin ride somewhere between 45IRE and 70IRE depending on the overall scene.
If I can fit the contrast range of the scene into the 11.5 stops of a cinegamma then I will often use the cinegammas over S-Log because of the noise improvement. S-Log comes into it’s own where you have an extreme contrast range that needs to be captured. However at the end of the day you do still have to remember that the end display device is unlikely to be able to display more than 7 stops with any accuracy!
One tool I have found very useful is the BlackMagic HDLink box. I often use this to connect to a monitor as it has the ability to apply LUT’s very quickly. If you have a PC connected to the HDLink you can go in an modify the LUT curve in real time and in effect do an on-set grade. The HDLink is only $499 USD.

More on S-Log and Gamma Curves

A lot of the issues with any camera and the dynamic range it can record are not due to limitations of the cameras hardware but to retain compatibility with existing display technologies, in particular the good old fashioned TV set that has been around for half a century. The issue being that in order for all TV owners to see a picture that looks “natural” there has to be a common standard for the signal sent to the TV’s that will work with all sets from the very oldest to the most recent.

As even the most recent TV’s and monitors often struggle to display a contrast range greater than 7 stops there is no point in attempting to  feed them with more, Taking 12 stops and simply squashing it into 7 stops will create a disappointing, flat and dull looking image. So for productions where extensive grading is not taking place, it is not desirable to record information beyond that which the existing broadcast system can handle. This is why the vast majority of modern camcorders with the knee off and using a standard gamma curve all exhibit very similar dynamic ranges (7 to 8 stops typically), because the limitation is generally not that of the sensor, but that of the gamma curves used in broadcast television. By adding a bit of highlight compression through a cameras knee circuit we can stretch out the dynamic range a bit as our visual system is most acute to inaccuracies in the the mid ranges of an image where faces, people and natural subjects normally appear so we don’t tend to notice strong compression occurring in highlights such as the sky or reflections. A well designed knee circuit can help gain an extra 2 or 3 stops by compressing the hell out of highlights, but as most of us are probably aware it can create it’s own issues with the near complete loss of real detail in clouds and the sky as well as color saturation issues on skin highlights, this is gamma curve compression rearing it’s ugly head. Moving on, we come to cinegammas, hypergammas and other similar extended range gammas. One of the issues with a traditional aggressive knee circuit is that it is either on or off, compressing or not compressing, there is no middle ground and this makes grading problematic as it is all but impossible to extract any meaningful data from very highly compressed highlights. Cinegammas etc address this by slowly increasing the amount of compression used as image brightness increases. In addition the gamma curve compression starts much earlier, long before you get to what would traditionally be regarded as “highlights”. This slow and gentle onset of compression grades in a more pleasing manner than a conventional knee. If you don’t grade the added mid-to-highlight compression results in a picture that looks a little flat and lacks “punch”, but is not overly objectionable to view. There is however a limit to just how much data you can cram into a compressed codec or recording system. Cinegammas and Hypergammas are tailored to give optimum performance with existing 8 bit and 10 bit high compression systems and workflows so the design engineers chose to only record a range of about 11 stops as trying to extract more than this from systems essentially designed to only record 7 to 8 stops will lead to visible compression artefacts. Technologies have continued to advance and now it’s remarkably easy (compared to just a couple of years ago) to record 10 bits of 4:2:2 or 4:4:4 data without compression or with only minimal compression. By eliminating or at least significantly reducing the compression artefacts it’s now possible to extract more meaningful data from a compressed gamma curve than was possible previously. S-Log is in effect nothing more than a heavily modified gamma curve, taking cinegammas and hypergammas to the next level. S-Log needs 10 bit recording to work as the curve compression starts much lower in the curve, so when grading those crucial skin tones and natural objects will need to be un-compressed to look natural and 8 bits of data just would not give enough range. As the image brightness increases the amount of gamma curve compression is increased logarithmically. If you look at the data being recorded this means that the majority of the 10 bit data is allocated to shadow areas then mid tones with less and less data being used to record highlights.
Most modern cameras, not just the XDCAM’s simply ignore highlight information beyond what can be recorded, this results in the image getting clipped at a given point depending on the gamma curve being used. Interestingly using negative gain on a camcorder can act as a low end clip as very small brightness changes will be reduced by the negative gain, possibly to the point where they are no longer visible. This  normally results in a reduction in dynamic range (as well as noise). I suspect this is why the F3 has less noise using standard gammas because the sensor has excess dynamic range for theses curves and good sensitivity, so Sony can afford to set the arbitrary 0db point in negative space without impacting the recorded DR but giving a low noise floor benefit. For S-Log however it’s possible to record a greater dynamic range so 0db is returned to true zero and as a result the noise floor increases a little.
LUT’s are just a reverse gamma curve applied to the S-Log curve to restore the curve to one that approximates a standard gamma, normally REC-709. They are there for convenience to provide an approximation of what the finished image might look like. However applying an off the shelf LUT will impact the dynamic range as an assumption has to be made as to which parts of the image to keep and which to discard as we are back to squeezing 12 bits into 7 bits. As every project, possibly every shot will have differing requirements you would need an infinite number of LUT’s to be able to simply hit an “add LUT” button to restore your footage to something sensible. Instead it is more usual for the colorist or grader to generate their own curves to apply to the footage. Most NLE’s already have the filters to do this, it’s simply a case of using a curves filter or gamma curve correction to generate your own curves that can be applied to your clips in lieu of a LUT.

When should I use a Cinegamma or Hypergamma?

Cinegammas are designed to be graded. The shape of the curve with steadily increasing compression from around 65-70% upwards tends to lead to a flat looking image, but maximises the cameras latitude (although similar can be achieved with a standard gamma and careful knee setting). The beauty of the cinegammas is that the gentle onset of the highlight compression means that grading will be able to extract a more natural image from the highlights. Note than Cinegamma 2 is broadcast safe and has slightly reduced lattitude than CG 1,3 and 4.

Standard gammas will give a more natural looking picture right up to the point where the knee kicks in. From there up the signal is heavily compressed, so trying to extract subtle textures from highlights in post is difficult. The issue with standard gammas and the knee is that the image is either heavily compressed or not, there’s no middle ground.

In a perfect world you would control your lighting (turning down the sun if necessary ;-o) so that you could use standard gamma 3 (ITU 709 standard HD gamma) with no knee. Everything would be linear and nothing blown out. This would equate to a roughly 7 stop range. This nice linear signal would grade very well and give you a fantastic result. Careful use of graduated filters or studio lighting might still allow you to do this, but the real world is rarely restricted to a 7 stop brightness range. So we must use the knee or Cinegamma to prevent our highlights from looking ugly.

If you are committed to a workflow that will include grading, then Cinegammas are best. If you use them be very careful with your exposure, you don’t want to overexpose, especially where faces are involved. getting the exposure just right with cinegammas is harder than with standard gammas. If anything err on the side of caution and come down 1/2 a stop.

If your workflow might not include grading then stick to the standard gammas. They are a little more tolerant of slight over exposure because skin and foliage won’t get compressed until it gets up to the 80% mark (depending on your knee setting). Plus the image looks nicer straight out of the camera as the cameras gamma should be a close match to the monitors gamma.

Understanding Gamma, Cinegamma, Hypergamma and S-Log


Standard Gamma Curve

The graph to the left shows and idealised, normal gamma curve for a video production chain. The main thing to observe is that the curve is in fact pretty close to a straight line (actual gamma curves are very gentle, slight curves). This is important as what that means is that when the filmed scene gets twice as bright the output shown on the display also appears twice as bright, so the image we see on the display looks natural and normal. This is the type of gamma curve that would often be referred to as a standard gamma and it is very much what you see is what you get. In reality there are small variations of these standard gamma curves designed to suit different television standards, but those slight variations only make a small difference to the final viewed image. Standard gammas are typically restricted to around a 7 stop exposure range. These days this limited range is not so much to do with the lattitude of the camera but by the inability of most monitors and TV display systems to accurately reproduce more than a 7 stop range and to ensure that all viewers whether they have 20 year old TV or an ultra modern display get a sensible looking picture. This means that we have a problem. Modern cameras can capture great brightness ranges, helping the video maker or cinematographer capture high contrast scenes, but simply taking a 12 stop scene and showing it on a 7 stop display isn’t going to work. This is where modified gamma curves come in to play.

Standard Gamma Curve and Cinegamma Curve

The second graph here shows a modified type of gamma curve. This is similar to the hypergamma or cinegamma curves found on many professional camcorders. What does the graph tell us? Well first of all we can see that the range of brightness or lattitude is greater as the curve extends out towards a range of 10 T stops compared to the 7 stops the standard gamma offers. Each additional stop is a doubling of lattitude. This means that a camera set up with this type of gamma curve can capture a far greater contrast range, but it’s not quite as simple as that.

Un-natural image response area

Un-natural response

Look at the area shaded red on the graph. This is the area where the cameras capture gamma curve deviates from the standard gamma curve used not just for image capture but also for image display. What this means is that the area of the image shaded in red will not look natural because where something in that part of the filmed scene gets 100% brighter it will only be displayed as getting 50% brighter for example. In practice what this means is that while you are capturing a greater brightness range you will also need to grade or correct this range somewhat in the post production process to make the image look natural. Generally scenes shot using hypergammas or cinegammas can look a little washed out or flat. Cinegammas and Hypergammas keep the important central exposure range nice an linear, so the region from black up to around 75% is much like a standard gamma curve, so faces, skin, flora and fauna tend to have a natural contrast range, it is only really highlights such as the sky that is getting compressed and we don’t tend to notice this much in the end picture. This is because our visual system is very good at discerning fine detail in shadow and mid tones but less accurate in highlights, so we tend not to find this high light compression objectionable.

S-Log Gamma Curve

S-Log Gamma Curve

Taking things a step further this  even more extreme gamma curve is similar to Sony’s S-Log gamma curve. As you can see this deviates greatly from the standard gamma curve. Now the entire linear output of the sensor is sampled using a logarithmic scale. This allows more of the data to be allocated to the shadows and midtones where the eye is most sensitive. The end result is a huge improvement in the recorded dynamic range (greater than 12 stops) combined with less data being used for highlights and more being used where it counts. However, the image when viewed on a standard monitor with no correction that looks very washed out, lacks contrast and generally looks incredibly flat and uninteresting.

S-Log Looks Flat and Washed Out

Red area indicates where image will not look natural with S-Log without LUT

In fact the uncorrected image is so flat and washed out that it can make judging the optimum exposure difficult and crews using S-Log will often use traditional light meters to set the exposure rather than a monitor or rely on zebras and known references such as grey cards. For on set monitoring with S-Log you need to apply a LUT (look Up Table) to the cameras output. A LUT is in effect a reverse gamma curve that cancels out the S-Log curve so that the image you see on the monitor is closer to a standard gamma image or your desired final pictures. The problem with this though is that the monitor is now no longer showing the full contrast range being captured and recorded so accurate exposure assessment can be tricky as you may want to bias your exposure range towards light or dark depending on how you will grade the final production. In addition because you absolutely must adjust the image in post production quite heavily to get an acceptable and pleasing image it is vital that the recording method is up to the job. Highly compressed 8 bit codecs are not good enough for S-Log. That’s why S-Log is normally recorded using 10 bit 4:4:4 with very low compression ratios. Any compression artefacts can become exaggerated when the image is manipulated and pushed and pulled in the grade to give a pleasing image. You could use 4:2:2 10 bit at a push, but the chroma sub sampling may lead to banding in highly saturated areas, really Hypergammas and Cinegammas are better suited to 4:2:2 and S-Log is best reserved for 4:4:4.

Understanding Gamma, Cinegamma, Hypergamma and S-Log


Standard Gamma Curve

The graph to the left shows and idealised, normal gamma curve for a video production chain. The main thing to observe is that the curve is in fact pretty close to a straight line (actual gamma curves are very gentle, slight curves). This is important as what that means is that when the filmed scene gets twice as bright the output shown on the display also appears twice as bright, so the image we see on the display looks natural and normal. This is the type of gamma curve that would often be referred to as a standard gamma and it is very much what you see is what you get. In reality there are small variations of these standard gamma curves designed to suit different television standards, but those slight variations only make a small difference to the final viewed image. Standard gammas are typically restricted to around a 7 stop exposure range. These days this limited range is not so much to do with the lattitude of the camera but by the inability of most monitors and TV display systems to accurately reproduce more than a 7 stop range and to ensure that all viewers whether they have 20 year old TV or an ultra modern display get a sensible looking picture. This means that we have a problem. Modern cameras can capture great brightness ranges, helping the video maker or cinematographer capture high contrast scenes, but simply taking a 12 stop scene and showing it on a 7 stop display isn’t going to work. This is where modified gamma curves come in to play.

Standard Gamma Curve and Cinegamma Curve

The second graph here shows a modified type of gamma curve. This is similar to the hypergamma or cinegamma curves found on many professional camcorders. What does the graph tell us? Well first of all we can see that the range of brightness or lattitude is greater as the curve extends out towards a range of 10 T stops compared to the 7 stops the standard gamma offers. Each additional stop is a doubling of lattitude. This means that a camera set up with this type of gamma curve can capture a far greater contrast range, but it’s not quite as simple as that.

Un-natural image response area

Un-natural response

Look at the area shaded red on the graph. This is the area where the cameras capture gamma curve deviates from the standard gamma curve used not just for image capture but also for image display. What this means is that the area of the image shaded in red will not look natural because where something in that part of the filmed scene gets 100% brighter it will only be displayed as getting 50% brighter for example. In practice what this means is that while you are capturing a greater brightness range you will also need to grade or correct this range somewhat in the post production process to make the image look natural. Generally scenes shot using hypergammas or cinegammas can look a little washed out or flat. Cinegammas and Hypergammas keep the important central exposure range nice an linear, so the region from black up to around 75% is much like a standard gamma curve, so faces, skin, flora and fauna tend to have a natural contrast range, it is only really highlights such as the sky that is getting compressed and we don’t tend to notice this much in the end picture. This is because our visual system is very good at discerning fine detail in shadow and mid tones but less accurate in highlights, so we tend not to find this high light compression objectionable.

S-Log Gamma Curve

S-Log Gamma Curve

Taking things a step further this  even more extreme gamma curve is similar to Sony’s S-Log gamma curve. As you can see this deviates greatly from the standard gamma curve. Now the entire linear output of the sensor is sampled using a logarithmic scale. This allows more of the data to be allocated to the shadows and midtones where the eye is most sensitive. The end result is a huge improvement in the recorded dynamic range (greater than 12 stops) combined with less data being used for highlights and more being used where it counts. However, the image when viewed on a standard monitor with no correction that looks very washed out, lacks contrast and generally looks incredibly flat and uninteresting.

S-Log Looks Flat and Washed Out

Red area indicates where image will not look natural with S-Log without LUT

In fact the uncorrected image is so flat and washed out that it can make judging the optimum exposure difficult and crews using S-Log will often use traditional light meters to set the exposure rather than a monitor or rely on zebras and known references such as grey cards. For on set monitoring with S-Log you need to apply a LUT (look Up Table) to the cameras output. A LUT is in effect a reverse gamma curve that cancels out the S-Log curve so that the image you see on the monitor is closer to a standard gamma image or your desired final pictures. The problem with this though is that the monitor is now no longer showing the full contrast range being captured and recorded so accurate exposure assessment can be tricky as you may want to bias your exposure range towards light or dark depending on how you will grade the final production. In addition because you absolutely must adjust the image in post production quite heavily to get an acceptable and pleasing image it is vital that the recording method is up to the job. Highly compressed 8 bit codecs are not good enough for S-Log. That’s why S-Log is normally recorded using 10 bit 4:4:4 with very low compression ratios. Any compression artefacts can become exaggerated when the image is manipulated and pushed and pulled in the grade to give a pleasing image. You could use 4:2:2 10 bit at a push, but the chroma sub sampling may lead to banding in highly saturated areas, really Hypergammas and Cinegammas are better suited to 4:2:2 and S-Log is best reserved for 4:4:4.

Brewing up a Scene File: Gamma and Knee

Before anyone complains that I have missed stuff out or that some technical detail is not quite right, one of the things I’m trying to do here is simplify the hows and why’s to try and make it easier for the less technical people out there. Lets face it this is an art form, not a science (well actually a bit of both really).

So what is a gamma curve anyway? Well the good old fashioned cathode ray tube television was a very non-linear device. You put 1 unit of power in and get one unit of light out. You put 2 units in and get 1.5 units out, put 3 in and get 2 out… and so on. So in order to get a natural picture the output of the camera also has to be modified to compensate for this. This compensation is the gamma curve, an artificial modification of the output signal from the camera to make it match TV’s and monitors around the world. See Wikipedia for a fuller explaination:   http://en.wikipedia.org/wiki/Gamma_correction

So, all video cameras will have a gamma curve, whether you can adjust it or not is another matter. Certainly most pro level cameras allow you some form of gamma adjustment.

The PMW-350 has 6 standard gamma curves, these are all pretty similar, they have to be otherwise the pictures wouldn’t look right, but small changes in the curve effect the relationship between dark and bright parts of the pictures. Todays modern cameras have a far greater dynamic range (range of dark to bright) than older cameras. This means that the full dynamic range of the sensor no longer fits within the gamma curves used for TV’s and monitors. In broadcast television any signal that goes over 100% gets clipped off and is discarded, so the cameras entire brightness range has to be squeezed into 0 to 100%. The PMW-350 sensors are capable of far more than this (at least 600%) so what can you do?

The older and simpler solution is called the “Knee”. The knee works because in most cases the brightest parts of a scene contains little detail and is generally ignored by our brains. We humans tend to focus on mid-tone faces, animals and plants rather than the bright sky. Because of this you can compress the highlights (bright) parts of the picture quite heavily without it looking hugely un-natural (most of the time at least). What the knee does is takes a standard gamma curve and up near it’s top, bends it over. This has the effect of compressing the brighter parts of the image, squashing a broad range of highlights (clouds for example) into a narrow range of brightness. While this works fairly well, it does tend to look rather “electronic” as the picture is either natural (below the knee) or compressed (above the knee).

The answer to this electronic video look is to replace the hard knee with gentle bend to the gamma curve. This bend starts some way down the gamma curve, very gentle at first but getting harder and harder as you go up the gamma curve. This has the effect of compressing the image gently at first with the compression getting stronger and stronger as you go up the curve. This looks a lot more natural than a hard knee and is far closer to the way film handles highlights. The downside is that because the compression starts earlier a wider tonal range is compressed. This makes the pictures look flat and uninteresting. You have to watch exposure on faces as these can creep into the compressed part of the curve. The plus point is that it’s possible to squeeze large amounts of latitude into the 100% video range. This video can then be worked on in post production by the editor or colorist who can pull out the tonal range that best suits the production.

These compressed gamma curves are given different names on different products. Panasonic call them “Film Rec”, on the EX1 they are “Cinegammas” on the PMW-350 they are “Hypergammas”. The 350 has four Hypergammas. The first is 3250. this takes a brightness range the equivalent to 325% and compresses it down to 100%. HG 4600 takes 460% and squeezes that down to 100%. Both of these Hypergammas are “broadcast safe” and the recordings made with them can be broadcast straight from the camera without any issues. The next Hypergamma is 3259. This takes a 325% range and squeezes this down to a 109% range, likewise 4609 takes 460% down to 109%. But why 109%? well the extra 9% gives you almost 10% more data to work with in post production compared to broadcast safe 100%. It also gives you the peak white level you need for display on the internet. Of course if you are doing a broadcast show you will need to ensure that the video levels in the finished programme don’t exceed 100%.

My preferred gamma is Hypergamma 4 (4609) as this gives the maximum dynamic range and gives a natural look, however the pictures can look a little flat so if I’m going direct from the camera to finished video without grading I use either a standard gamma or use the Black Gamma function to modify the curve. I’ll explain the Black Gamma in my next post.

There are 6 standard gammas to choose from. I like to stick with gamma 5 which is the ITU-709 HD standard gamma. To increase the dynamic range I use the Knee. The default knee point setting is 90, this is a reasonable setting, but if your shooting with clipping set to 100% you are not getting all the cameras latitude (the Knee at 90 works very well with clipping at 108%). Lowering the knee down to 83 gives you almost another stop of latitude, but you have to be careful as skin tones and faces can creep up towards 83%. It’s very noticeable if skin becomes compressed so you need to watch your exposure. This is also true of the Hypergammas and with them you may need to underexpose faces very slightly. The other option is to set the knee point to 88 and then also adjust the knee slope. The slope is the compression amount. A positive value is more compressed, negative less compressed. With the knee at 88 and slope set to +20 you get good latitude, albeit with quite highly compressed highlights.

If you want to play with the gammas and knee and see how they work one method you can use is to use a paint package on your PC (such as photoshop) to create a full screen left to right graduated image going from Black to white. Then shoot this with the camera (slightly out of focus) while making adjustments to the curves or knee and record the results along with a vocal description of each setting. Import the clips into your favorite editing package and use the waveform monitor or scopes you should be able to see a reasonable representation of the shape of the gamma curve and knee.

So my Gamma Choices are:

For material that will be post produced: Hypergamma 4609 (HG4)

For material that will be used straight from the camera: Standard Gamma 5 Knee at 90 with clip at 108% for non broadcast or Knee at 88 with slope +20 with white clip at 100% for direct to broadcast.

XDCAM EX Cinegammas

I have been doing a lot of research into the best gammas to use on the EX’s for different lighting situations. The cinegammas are designed for shooting footage that will be graded, the images they produce are not entirely natural looking, however they do maximise dynamic range by compressing highlights and at the same time allocating a large part of the recorded signal range to mid tones and shadow detail. This is why shadows can look washed out or milky. However this also gives you more to play with in the grade.

Cinegamma 1 is tailored for shooting bright scenes or scenes where there will be large areas of highlights. CG1 is tailored for maximum highlight handling with lower shadow dynamic range compared to CG3 and CG4.?Cinegamma 2 is essentially the same as CG1, except the overall level is reduced making it broadcast safe at 0db. Cinegammas 1,3 and 4 all record up to 109% at 0db and 104% at -3db.?Cinegamma 3 has strong highlight compression but the compression starts later than CG1 so it’s not as compressed as CG1. Midtones and shadows are stretched more than CG1. This gives more dynamic range to mid tones and shadows compared to CG1 at the expense of some highlight handling.?Cinegamma 4 is similar to CG3 but with the mid tones lifted still further so that it gives a brighter looking picture overall.

My preference is to use CG1 for outdoor, brightly lit scenes or scenes where highlight handling is critical. Then I use CG3 for indoor and scenes on dull days where extreme highlight handling is less critical, but shadow detail becomes more important. What I have also found is that when shooting interviews the cinegammas work best when they are slightly under exposed compared to standard gammas and then graded in post. If using cinegammas I tend to expose skin tones at around 60%.

Cinegamma 1 on the EX is the same as Hypergamma HG4 on the PDW-700, F900R etc and cineegamma 2 is the same as Hypergamma HG2. With CG1/HG4 : 460% D-range is compressed to 109%.