22:18
@JordanSzubert @cegaton covered everything very well. If we play the mental game where you knew the camera's secret sauce baked into a JPEG, yes the results would be much better than where you started, but equally yes it would be quite sub optimal. Best source of comprehension here is to try it!
@JordanSzubert The main issue would be as per the 256 steps comment from @cegaton above; if you try to map the original scene's values into those 256 tones, and we assume even a less than optimal ten or so stops, we can begin to see the problem.
@JordanSzubert The first issue is that the JPEG is "aesthetically encoded", that is, it is encoded to look like a photo that someone would look at. That means that the scene values have been bent nonlinearly to augment contrast and appearance. If we were to start with a perfect log encoded image (log only because it is efficient to encode scene referred values into) we would have a close to uniform distribution of bits to stops of light. 256/10 = about 25 code values per stop.
@JordanSzubert But with an aesthetic image, we have permanently compressed and extended some regions that we can't recover that data from. So our less than optimal 25 steps would be diminished quite significantly for some regions and more for others.
@JordanSzubert As a general rule, log encodes are quite sub-optimal at 8 bits or less. A minimum would be around 10 bits or greater. So if we realize this and couple it with an aesthetic baked result, one ends up quite significantly crippling the data.
Hope that makes it a little clearer.
The TL;DR is that once one understands the value of scene referred data, it leads to "How to encode a file using optimized bits but still have access to scene referred data?" which leads to log encoded imagery. Once you understand why log exists (and there are many different log encodes, like many-many :) ) you can begin to see why output referred aesthetic encodes are sort of a one-way street. Think of it as being an optimized for streaming low bitrate MP3, and +
- wanting to remix / mix / master off of it. It would be a very tough chore due to the compression of the values.
At any rate, good on you for sticking at it and asking questions. Keep on it, and everything will only get more and more clear. Ask more questions and I am quite sure folks that frequent here can help you to flesh things out further.
Most importantly, try things. Seeing how an aesthetic image bent back to the scene referred domain can be very useful. You can luckily do this already, perfectly, with perfect decoding. How? Use the Filmic set.
If you save out a complex scene (try classroom lit to filmic and render) to 8 bit JPEG using Filmic Log, you could then load that 8 bit image and flag it as Filmic Log Encoding Base and it will get returned to the scene referred domain accurately, albeit with reduced bit depth.
Try adjusting exposure on it in the scene referred domain. How does it degrade? Try doing other things. You will see that it, even in the base log, will fall apart quite quickly.
With a little help and effort, you could take that further and decode an aesthetic version using Base Contrast and you would very likely see things immediately.
@cegaton Almost finished the blasted project?
I am very keen to hear all of the issues along the way.