54 points · by janandonly · 3y ago · 103 comments
https://www.iso.org/standard/81863.html
Note that, in this specification’s title, “HDR” refers to luminosity ranges that are broader than sRGB supports, and “WCG” refers to colorspaces that are broader than sRGB supports.
Apple’s video is focused on the HDR component of still images, which is relatively new and not yet finalized into any ISO or W3C standards.
Support for WCG images is already widespread courtesy of ICC profiles, though many holdouts (such as Slack and Discord) continue to damage WCG images posted to their services.
Quoting Apple’s video transcript at this time index:
https://developer.apple.com/wwdc23/10181?time=205
> This specification, TS22028-5, provides a structure for encoding HDR content into existing still image formats without compromising quality.
> The specification requires Hybrid Log-Gamma, HLG, or Perceptual Quantizer, PQ, as the encoding transfer function. These are functionally analogous to the gamma curves used in SDR images.
> The color primaries for ISO HDR files are the BT.2020 primaries
> HDR images are required to be 10 bits or more per component. This means that some formats, like HEIF, can encode HDR, but some others, like traditional JPEG, are not able to be 22028-5 compliant, as they only support 8 bits per component.
PNG only supports 8-bit or 16-bit, making it quite inefficient for 10- and 12-bit HDR. However, JPEG-XL seems to support 10 bits or more per component. This may provide supporting context for why Apple began supporting a new image format this fall.
> for required metadata, both traditional ICC profiles and CICP tags are valid.
https://stage.color.org/hdr/07-Nicolas_Bonnier.pdf (slide “Motivations”):
> Several attempts to use PQ/HLG and BT.2020 for still photography are surfacing
> But so far, the digital still imaging industry has not settled on a reference HDR/WCG image encoding for consumers
> The purpose of TS 22028-5 is to provide requirements and guidelines for HDR/WCG colour encoding of still images
And a bit further down, referring specifically to BT.2100:
> Shall use ITU-R BT.2020/2100-2 colour primaries
Especially with monitors. I am so sick of every monitor with Vesa HDR-400 claiming they're an "HDR" monitor. I'm sorry, but that standard is garbage. It's so bad it's meaningless.
Not only is that a pathetic amount of brightness, but the local dimming required is just awful. You can have a screen with a whopping 4 zones that react terribly and slap an HDR label on it.
HDR-600 is barely any better, frankly.
I use an LG OLED TV as a monitor for work (and a game here and there), 4k 120Hz and I'm more than happy with the brightness in HDR content. In fact, it's kind of just at the edge of being too bright for me... given the distance.
That's a huge improvement compared to a lot of the garbage HDR 400 rated LCD monitors.
Trying to play HDR content on a regular SDR screen is a mess.
If you rip an HDR version of a movie:
- VLC does nothing. It shows it as so dark it's unwatchable
- IINA shows it as brightness comparable to an SDR version of the movie, but with a weird green tint
- QuickTime is weirdly in-between, brighter than VLC but not as bright as an SDR version
- Infuse got fixed this year so that it plays HDR content to visually match the SDR version of the same content on a SDR screen (the only player I've found that can on Macs)
And if you want to convert your file in ffmpeg, good luck. I still haven't found the magic settings that reverses whatever entertainment studios are doing to translate their SDR into HDR. (The magic settings that Infuse has somehow figured out.) There's no flag or setting for it -- you have to input a bunch of custom values.
ffmpeg -hide_banner -y -probesize 100M -i "$file" -map 0:v:0 -c:v h264_nvenc -x264-params b_pyramid=2:ref=4:vbv-maxrate=30000:vbv-bufsize=15000 -refs 4
-crf 17 -preset:v fast -profile:v high -b_strategy 2 -rc-lookahead 900 -level 4.1 -pix_fmt yuv420p -color_range 1 -colorspace 1 -color_primaries bt709 -color_trc bt709 -subq 10 -vf zscale=tin=smpte2084:min=bt2020nc:pin=bt2020:rin=tv:t=smpte2084:m=bt2020nc:p=bt2020:r=tv,zscale=t=linear,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p,zscale=s=1280x720 -c:a copy output.mkvIf you want to say what you think is important about an article, that's fine, but do it by adding a comment to the thread. Then your view will be on a level playing field with everyone else's: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so...
I am aware of this guideline. The problem is that the original title is so... meaningless? that I decided to give the site a title that explains why it's interesting.
In no way do I disrespect the idea behind this rule, I can see how it would lead to clickbait titles and such. I also didn't want to write a blogpost with a better title that simply refers to this resource at Apple's.
For full transparency, I came across this site because this interesting blogpost referred to it: https://www.lux.camera/halide-for-ios-17/
The reference is in this sentence: > Apple wants to avoid a similar fate in still photography, so this year they put their weight behind an open standard called "ISO HDR." Ok, technically it's ISO/TS 22028-5, which doesn't quite roll off the tongue. The important thing is that with iOS 17, Halide captures HDR photos. In fact, it has for years!
I don't want to say "it's ok to break the rule in such a case for such a purpose" because one can't say that with any precision—it will just be heard as "ignore the rule and do whatever you want".
It seems generally better (or at least in keeping with HN's 'DNA') to err on the side of keeping things minimal and trust users to figure them out.
When the ambient light is given by the screen ...
So, presumably, the existence of a standard under development — and the endorsement of it by a major manufacturer of cameras and displays — was considered newsworthy by the OP.
Yes, I'm hoping that the mess that is "HDR" video standards can be prevented in the still images arena.
Hopefully, with Apple's weight behind this open standard, other producers will adopt it as well.
I think it's terrible. The only time I even remember that HDR is a thing is when some embedded video in a web page gets much brighter than the rest of the screen and the rest of the screen looks dim as a result. It's never a "wow that sun looks amazing" style experience, it's always a "wow most of my screen just got really dark" style experience.
I think maybe HDR has a place in movies and TV shows and even maybe YouTube style videos (not that I've experienced that), but I think enabling HDR for small video embeds on a web page was a terrible decision.
If everything is dim in comparison because the HDR is so bright, is that happening only in especially bright scenes, or is that happening all the time?
I'm not talking about this in the context of watching long videos or something, but when just browsing through stuff on sites like Reddit. I'll be clicking on the "expand image" button on a series of posts (using the old reddit design) and then suddenly one of them is a HDR video which makes the rest of the screen appear to dim until I close it. So we're not talking about "especially bright scenes". And I'm sure that if I fullscreened the video and the whole screen was covered by that single piece of HDR media, it would look alright.
My guess is that those videos are filmed on an iPhone in HDR mode.
Right now it’s basically OLED in a dark room or don’t bother. Large TVs can get away with FALD, maybe.
It's very different from the experience I've had in Windows where if you enable the HDR setting everything looks shitty and washed out.
I regret that hn doesn't have HDR support so as to properly emphasize that <em><blink><pain>THIS IS NOT A FEATURE.</pain></blink></em>
I think the reason you don't want to drive OLEDs as hard (so there's current limitation/ABL) is more about burn-out than burn-in.
But you'll have to turn HDR on and off depending on the content you're looking at. If you're looking at SDR content, it will look wrong if the display is in HDR mode. That sucks, and I hope some day is properly fixed.
OLED is also nice because it has perfect blacks (no local dimming needed), but it struggles with brightness, which is the other half of HDR. We still haven't figured out how to get both.
Windows HDR support is a very mixed bag, just like their early support for high DPI, and I think that’s probably what leads some reviewers to dismiss it.