combatentropy
Veteran
For all practical purposes when refering to LOG vs RAW (and especially when comparing a camera that can record RAW vs a camera that can't) it is understood that we are talking about using LOG compression to represent a wider dynamic range within the narrower signal of an RGB or YUV signal, not, of course, the broad mathematical concept of a logarithmic curve. That would be uselessly academic.
Log isn't compression.
As John Brawley pointed out, there are cameras whose RAW format is logarithmic. Logarithmic has been a mode in scientific and industrial cameras for a long time. Log recording dates back at least to Kodak's Cineon system, from the early 90s. I first heard about it with the Thomson Viper Filmstream camera (NAB 2002) famous for its uncompressed RGB log output. Whether you're recording compressed or uncompressed, 8-bit or 12-bit, I believe log is a better use of of your bits.
Linear is wasteful. Look at how many levels are given to the upper f-stops and how few to the lower ones, even with 12 bits:
| F-stop | Levels |
| 1 | 1 |
| 2 | 2 |
| 3 | 4 |
| 4 | 8 |
| 5 | 16 |
| 6 | 32 |
| 7 | 64 |
| 8 | 128 |
| 9 | 256 |
| 10 | 512 |
| 11 | 1024 |
| 12 | 2048 |
whereas if you convert the signal from analog to digital logarithmically, these are the levels per f-stop, even at just 10 bits:
| F-stop | Levels |
| 1 | 85 |
| 2 | 85 |
| 3 | 85 |
| 4 | 85 |
| 5 | 85 |
| 6 | 85 |
| 7 | 85 |
| 8 | 85 |
| 9 | 85 |
| 10 | 85 |
| 11 | 85 |
| 12 | 85 |
10-bit log has more shades per f-stop than the first 7 stops of 12-bit linear.
Its inefficiency is only in the first f-stop, as I understand it, where it is pretty noisy. So you just encoded 85 shades of noise. I think this is an okay trade-off, since the rest of the f-stops aren't starved for bits, or drowned in them.
I wonder if that's why we have Sony S-Log, Panalog, Log-C, etc. These are all slightly different curves. If they all were purely logarithmic, it would be silly to name it after your brand. Just call it log. But Sony, Panasonic, Canon, and Arri have tweaked the curve for the most information-to-data ratio. So I wonder if it's particularly in that noisy low end that they made it a bit more linear, so as not to devote quite so many bits to sheer noise.
Actually, those are the numbers only if your image is purely monochromatic. A 10-bit image is 10 bits per channel, so it's 85x85x85 shades per f-stop, or 614,125. A 10-bit RGB or YUV image has a palette of a little over a billion colors.
Um, no. By very definition a 4:2:2 signal throws away half of the color resolution.
Well, I was referring to SMPTE 292M, which they call uncompressed 10-bit 4:2:2 HD. Sure, the 4:2:2 means that they've tossed half the color resolution away. But usually they distinguish it by calling it subsampling, instead of compression. Compression implies decompression, but there's no getting that color information back. But then again, if you call that compression then every camera is compressed, because right off the bat it has subsampled reality to 4K or 6K or 8K. Any camera whose pixels are larger than the Planck Length would be compressing, by that definition.
It all boils down to what's visible. And anyone who walks by this forum should laugh at us or something, because cameras have been visually good enough since the 5D Mark II.
Yaaaawwwwnnnnnnn............
Yes, TubEfingers has the right idea.
But here's something more practical: $300 vs $60. That's the difference between recording 4K RAW and AVC-Intra 400. RAW, uncompressed 4K is about 1 TB per hour, which is around $300 at the average price per GB --- probably closer to $500. AVC-Intra 400 is about 180 GB per hour, 80% less!
Now actually, if you're going to talk sheer visibility, pure practicality, I think you would be better off setting your GH5 to HD resolution and recording AVC-Intra 200. That is a codec that professional technicians have said is indistinguishable from uncompressed. And we could have a looooong debate about 4K vs 2K again, but let me just say you know which side I fall on. So if you record HD AVC Intra 200, that's actually a codec that's twice as mild as AVC-Intra 400 (5:1 vs 10:1). It's basically the bitrate of ProRes HQ but with a better algorithm. It's only 90 GB per hour, so it has the added ergonomic benefit of making it easy to remember how many minutes a card will give you. Just move the decimal. A card that is 128 GB will give you about 1.28 hours, a 256 GB card will give you about 2.56 hours, etc. Each card will give you a bit more than that, actually, since it's 90 not 100 GB per hour. But just that little ergonomic convenience I think is weightier than the difference between uncompressed RAW and AVC-Intra.
Here's another thing AVC has going for it. Suppose you have the choice between (A) uncompressed, RAW, 12-bit 1920x1080, and (B) 10-bit AVC-Intra 4:2:2 at 1920x1080. Which will look better? Well, if you allow that the AVC-Intra could have been downsampled from a higher resolution (2880x1620 or above), then it can be free of moire and aliasing. Meanwhile the RAW format will either (a) be prone to moire and aliasing, or (b) have an optical low-pass filter that lowers its effective resolution to more like 1400x800. And yet the AVC-Intra is a fraction of the disk space (money). Whatever resolution of uncompressed RAW you trot out, there will always be a lightly compressed doppelganger that is about a tenth the space and visually indistinguishable, even after intensive grading.
I'm not against RAW. I like it for one particular reason: it is the easiest to implement. I would love for another Ikonoskop or Digital Bolex to come out, and if they can't afford the hardware to compress, then just copy that sensor to disk (RAW).
Last edited: