Skip to content

macOS: displayCapabilities stubs HDR10/HLG/DV to false, so every PQ source plays as SDR #493

Closed

Description

@Rasmusmart57

macOS: displayCapabilities stubs HDR10/HLG/DV to false, so every PQ source plays as SDR

What happened?

On macOS the engine plays every HDR source as SDR. Not only Dolby Vision — plain
HDR10 and HLG too. The player's dynamic-range readout is honest about it and
reports SDR for an HDR master, which is how I noticed.

Environment: 16" MacBook Pro, built-in Liquid Retina XDR, macOS 26. AetherEngine
vendored at the current release, host is a SwiftUI macOS app embedding
AetherPlaybackController through NSViewControllerRepresentable.

Source: a DV profile 8.1 remux — 2160p HEVC, PQ base layer, HDR10+ present,
MKV over HTTP.

Engine log, before any local change:

load ... source-format=dolbyVision effective-format=sdr rate=23.976
[HLSVideoEngine] DV source: profile=8 compat=1 level=6 rpu=1 el=0 bl=1
                 color_primaries=9 color_trc=16 color_space=9
[HLSVideoEngine] serving on http://127.0.0.1:.../master.m3u8
  (dvModeAvailable=false effectiveDvMode=false panelIsHDR=false
   displaySupportsHDR=true matchContent=true sourceIsHDR=true
   useMaster=true videoRange=pq dvVariant=profile81)

Cause

Two independent gates, both of which have to be open.

1. displayCapabilities (AetherEngine.swift). The non-tvOS/iOS branch
returns a table of false:

#else
return DisplayCapabilities(
    supportsHDR: AVPlayer.eligibleForHDRPlayback,
    supportsDolbyVision: false,
    supportsHDR10: false,
    supportsHLG: false
)
#endif

This is what effectiveVideoFormat clamps against, so the DV P8.1 PQ base takes
this branch:

// SMPTE2084 base (P5/P7/P8.1)
return caps.supportsHDR10 ? .hdr10 : .sdr

supportsHDR10 == false therefore downgrades every PQ source to .sdr before
playback starts — HDR10 and HLG included.

Both stubs matter, and I would not want the DV one folded in as a nice-to-have.
supportsDolbyVision: false is what sets dvModeAvailable=false, and that is
the difference between a DV title playing with its RPU applied and playing as a
base layer. On a display that can present it, that is the reason to reach for
this engine over a libmpv-based player in the first place — mpv on macOS cannot
do DV at all, so the engine's AVFoundation path is the only route to it.

2. DisplayCriteriaController.currentPanelIsHDR(). It is #if os(tvOS) and
returns a hard false elsewhere. Since

panelHDRAfterHandshake = options.suppressDisplayCriteria
    ? options.panelIsInHDRMode
    : displayCriteria.currentPanelIsHDR()

a macOS host that does not set suppressDisplayCriteria can never get
panelIsHDR=true, whatever it passes in panelIsInHDRMode. That one is arguably
a host-side documentation gap rather than an engine bug — macOS has no Match
Content handshake, so suppressing criteria is correct there — but it is not
obvious, and the flag's doc comment ("mirror of UIScreen.main.currentEDRHeadroom > 1")
points the wrong way for macOS, where the panel engages EDR on demand and the
live headroom reads ~1.0 until HDR content renders.

What I changed locally, and the result

Host side: pass suppressDisplayCriteria: true on macOS, and derive
panelIsInHDRMode from potential rather than current EDR headroom.

Engine side, the macOS branch of displayCapabilities:

let potentialHeadroom = NSScreen.screens
    .map(\.maximumPotentialExtendedDynamicRangeColorComponentValue)
    .max() ?? 1
let hdrCapable = AVPlayer.eligibleForHDRPlayback || potentialHeadroom > 1
return DisplayCapabilities(
    supportsHDR: hdrCapable,
    supportsDolbyVision: hdrCapable,
    supportsHDR10: hdrCapable,
    supportsHLG: hdrCapable
)

With both in place, the same file plays Dolby Vision on this display, and an
HDR10+ source plays as HDR10. No -11848 or -11868 so far.

Deriving supportsDolbyVision from headroom is the loose part and I will say so
plainly: headroom proves the panel does HDR, not that AVPlayer will accept a
given DV variant, and a refusal surfaces as -11868 with nothing playing. It
held on this display, but it is a heuristic standing in for a capability check I
could not find a public API for.

That is really the ask: a macOS DV capability signal you are willing to stand
behind, rather than the stub. If the honest answer is that no such signal exists,
gating DV behind an opt-in LoadOptions flag — host asserts, engine obliges —
would let a host that knows its hardware get there without the engine having to
guarantee it. The HDR10/HLG half needs no such hedge; that one looks like a
straightforward bug.

Why it may not have surfaced before

The README documents macOS as a supported platform and ships DemoPlayerMac,
but a drag-and-drop demo on an SDR-parked window would look correct — the
downgrade is silent, and nothing in the UI says the format was clamped.


Unrelated, but while I am here: #377 is still open on my side. The host app you
landed in 442d6965 is exactly what was blocking the device arms, and I have not
run them yet because I am away from the Apple TV. Not stalled on you — I will
post the measurements when I am back at the hardware.

Activity

  1. DrHurt commented on Sep 6, 2026

    @DrHurt
    Contributor

    Interesting read and likely related to my recent issue so I'll link it here:
    #459

  2. superuser404notfound commented on Sep 6, 2026

    @superuser404notfound
    Owner

    Thanks for this one. The report is doing most of the work already: correct file, correct branch, correct consequence, and the split between the two gates is exactly right. Confirming both halves and where each lands.

    The capability stub is a real bug and it was forced by an API, which is worth saying because it explains the shape. AVPlayer.availableHDRModes is API_UNAVAILABLE(macos) (AVPlayer.h in the macOS 26.5 SDK, and deprecated on iOS/tvOS as of 26.0 on top of that), so the non-tvOS/iOS branch had nothing to read for the per-mode split and returned a table of false rather than a guess. That was the wrong call: supportsHDR10 == false is not "unknown", it is an assertion, and effectiveVideoFormat clamps a PQ base against it before playback starts. Reading it off the display is the fix, and NSScreen.maximumPotentialExtendedDynamicRangeColorComponentValue is the right property to read it from, on the macOS side of the line specifically. The tvOS-shaped instinct to reach for UIScreen.potentialEDRHeadroom there does not survive contact with hardware: measured on an Apple TV 4K 3rd gen, that property reads 1.00 while the panel is demonstrably in HDR and while currentEDRHeadroom on the same UIScreen reads 1.20 in the same moment. Same name, different platform, and only one of them is maintained.

    One thing the log narrows down, and it makes the defect smaller than the title. serving on ... videoRange=pq useMaster=true says the served variant still advertises PQ, so the stream reaching AVFoundation was not downgraded. What the stub does downgrade for certain is Dolby Vision (dvModeAvailable=false is what strips the RPU route, so a P8.1 plays as its HDR10 base) and the published videoFormat. Whether the HDR10 picture itself was also wrong on that display, or whether only the readout and the DV route were, is worth separating before the fix, because the two have different answers. If a plain HDR10 title (no DV) looked visibly SDR rather than merely being labelled SDR, that is a third thing and I would want to know.

    The label half is a second bug with the same root, and it has a precedent in the file. videoFormat takes the #else branch on macOS, so it goes through presentedVideoFormat(panelPresentsHDR:) with a hard false. iOS already sits outside that branch for exactly the reason you describe: a panel that engages EDR on demand has no handshake to wait for, so the honest label is the effective format. macOS composites EDR per window with no display mode switch, which is the same physics, so it belongs on that branch rather than on the tvOS one. That also means panelIsInHDRMode is not the thing to make work on macOS, and the doc comment ("mirror of UIScreen.main.currentEDRHeadroom > 1") is misleading there, as you say. Worth noting that routing was never the macOS problem: builtInPanelEngagesOnDemand is true off tvOS, so panelReadyForHDR already came out of eligibility, which is why the log shows useMaster=true with panelIsHDR=false. Only the format clamp and the label were wrong.

    On Dolby Vision, your hedge is the right one and I will take the version you proposed. There is no public per-mode capability signal on macOS, and I am not going to derive "this display presents DV" from a headroom number, for the reason you named yourself: it proves EDR, not that AVFoundation will accept a given DV variant. So DV on macOS becomes a host assertion, an opt-in flag rather than an inferred capability. What makes that safe rather than reckless is that the refusal is already handled: -11868 and -11848 are classified as master rejections and the engine falls back to the media playlist once, in place, keeping the position. A host that asserts wrongly gets the HDR10 base layer and a reload, not a dead item.

    That assertion is also the exact change another thread needs from the other direction, which is why I am glad the two got linked. On tvOS the panel-mode readout has stopped answering on at least one box (no HDR reading in 12116ms (max headroom 1.00, 47 samples) on tvOS 27 beta, including across a real SDR to HDR mode switch), and LoadOptions.panelIsInHDRMode cannot help there today because it only counts when the host suppresses display criteria. Two platforms, one gap: the engine derives "what is this display presenting" from a per-platform readout that macOS never had and tvOS may be about to stop providing. Making the host's assertion a first-class input everywhere covers both, and the rejection fallback keeps a wrong assertion cheap.

    Planned, then:

    1. macOS capability table from NSScreen EDR potential plus eligibility, for HDR, HDR10 and HLG. Straight bug fix, no hedge.
    2. macOS on the same videoFormat branch as iOS.
    3. DV behind a host opt-in in LoadOptions, documented as an assertion with the master-rejection fallback as the net, and the same flag made effective on tvOS.

    No release date attached yet. Point 3 is the one that wants care, since it touches the routing gate on the platform where a wrong answer costs a rejected item.

    And noted on #377, no rush at all. The measurements are worth more than their timing.

  3. superuser404notfound commented on Sep 6, 2026

    @superuser404notfound
    Owner

    Both halves that need no hedge are in #501, and building them turned up one correction to the split, measured rather than reasoned.

    effectiveVideoFormat opens with guard detected == .dolbyVision else { return detected }. The capability stub therefore only ever reached Dolby Vision sources. A plain HDR10 clip through aetherctl play on macOS resolves effective-format=hdr10 on the unpatched engine as well, so "HDR10 and HLG too" is not the stub, it is the label branch: videoFormat went through presentedVideoFormat(panelPresentsHDR:) with a hard false, and that one is indifferent to which HDR flavour the source is. Both of your local patches were needed, they just do not overlap the way the title implies, and the same split explains the line in your log that first looked contradictory: effective-format=sdr next to videoRange=pq useMaster=true.

    So the fix ships as two independent things. Capabilities now come from AVPlayer.eligibleForHDRPlayback for HDR, HDR10 and HLG, and macOS moves onto the same videoFormat branch as iOS. NSScreen.maximumPotentialExtendedDynamicRangeColorComponentValue is not in there in the end: eligibility already reads true on your display and false on an SDR-only Mac, and NSScreen is main-actor isolated while that capability read happens per load off the main actor. If a case turns up where eligibility is false on a display that can present EDR, the potential headroom goes in as the OR-term you proposed.

    Dolby Vision stays unclaimed in this round, for the reason you gave yourself. It is the next one, and it lands together with the tvOS side of #459, since both come down to the host asserting what the engine cannot observe.

    The question from my previous comment is still open and is now the only thing that could make this three bugs rather than two: whether a plain HDR10 title (no DV) looked visibly SDR on that display, or whether the picture was right and only the readout was wrong. The measurement above says the served stream and the effective format were both correct for that case, so a genuinely SDR-looking picture would be something else again.

  4. added a commit that references this issue on Sep 6, 2026
  5. superuser404notfound commented on Sep 6, 2026

    @superuser404notfound
    Owner

    Released in 6.69.0 (86fffc98): the capability table on macOS now comes from AVPlayer.eligibleForHDRPlayback for HDR, HDR10 and HLG, and macOS sits on the same videoFormat branch as iOS.

    Dolby Vision is deliberately not in that release, for the reason you gave yourself, and it is the next round: a host assertion rather than an inferred capability, landing together with the tvOS side of #459 since both come down to the engine being unable to observe what the display is doing. Leaving this open for it, and for the question from earlier: whether a plain HDR10 title looked visibly SDR on that display, or whether the picture was right and only the readout was wrong.

    Thanks again for the analysis. Correct file, correct branch, correct consequence, and the local patch already showed the shape of the fix.

  6. Rasmusmart57 commented on Sep 6, 2026

    @Rasmusmart57
    ContributorAuthor

    Answering the open question, measured rather than remembered: the picture was right and only the readout was wrong. Two bugs, not three.

    I could not answer it from memory — the original observation was of the badge, which reads videoFormat, so it was never evidence about the picture. So I measured the display instead.

    Method: a synthetic plain HDR10 clip (HEVC Main 10, PQ, BT.2020, mastering-display and MaxCLL metadata, no RPU — confirmed with ffprobe), played on a 16-inch XDR, sampling NSScreen.maximumExtendedDynamicRangeColorComponentValue — the live value, not the potential one — twice a second. SDR content requests no headroom, so a rise means HDR pixels reached the compositor. The control is the same file through plain AVPlayer/AVPlayerView with the engine entirely out of the path.

    live headroom videoFormat sourceVideoFormat
    desktop idle 1.200 – –
    plain AVPlayer, same file 1.200 → 2.667 – –
    6.57.1, capability stub in place 1.200 → 2.667 sdr hdr10
    6.57.1 + the local patch 1.200 → 2.667 sdr hdr10

    Identical to the control, on a potential of 16.0. The engine's HDR10 output was indistinguishable from AVFoundation's own, with the all-false table still in place. Your reading of the split holds exactly.

    The pipeline half agrees. aetherctl play on the same file, stub versus patch, normalised for port, session hash and timings, differs in one place across the whole log:

    - serving on ... (dvModeAvailable=false effectiveDvMode=false ... useMaster=true videoRange=pq dvVariant=none)
    + serving on ... (dvModeAvailable=true  effectiveDvMode=true  ... useMaster=true videoRange=pq dvVariant=none)
    

    effective-format=hdr10 both ways, transfer=SMPTE_ST_2084_PQ both ways. DV-only, as you said.

    One methodological trap, since you may want to reproduce this. My first run showed live headroom flat at 1.200 through the engine while the control rose — which looked exactly like the third bug you were asking about. It was an artefact. A SwiftUI executable built by SwiftPM has no bundle and comes up as an accessory app whose window never fronts, and macOS does not engage EDR for an occluded window. NSWindow.occlusionState is what caught it: the control reached .visible, the harness never did. With NSApp.setActivationPolicy(.regular) the two became identical. Worth knowing for anyone measuring EDR from a harness rather than a real app.

    Two limits on the above, stated plainly: the clip is synthetic rather than a real disc, and the measurement went through a modified DemoPlayerMac rather than the host application — same engine and same serving path, but not the app the original report came from.

    Thanks for 6.69.0. Dolby Vision is the one that matters most here, so the host-assertion round is very welcome whenever it lands; I am happy to test it on macOS as soon as it is in. Still not back at the Apple TV, so #377 remains untested from my side.

  7. superuser404notfound commented on Sep 6, 2026

    @superuser404notfound
    Owner

    That answers it, and it answers it the expensive way, which is the only way it could have been answered: two bugs, not three. Noting the reason you could not answer from memory as well, because it is the sharper half. The original observation was of the badge, and the badge renders videoFormat, so it was never evidence about the picture in the first place. A readout bug and a picture bug produce the same report from the same seat.

    The control row is what makes the table conclusive rather than suggestive. An identical rise to 2.667 on a potential of 16.0, through plain AVPlayer and through the engine with the all-false capability table still in place, is not "close enough to call it fine", it is the same compositor behaviour on the same display in the same session. It also agrees with the measurement from this side, where aetherctl resolved effective-format=hdr10 on the unpatched engine because effectiveVideoFormat returns early for anything that is not Dolby Vision. Your pipeline diff pins it harder than mine did: one line differing across an entire normalised log, and that line is the DV gate.

    The occlusion trap was not only a caveat about your harness. The same defect was live in this repository, and it is fixed now. Examples/DemoPlayerMac is a SwiftPM executable whose documented run path is swift run, and the README points beta testers at it for exactly the purpose you were using yours for, deciding whether a bug belongs to the engine or to the host. Measured here on macOS 26.5: lsappinfo reported the demonstrator as BackgroundOnly before and Foreground after NSApp.setActivationPolicy(.regular) at applicationDidFinishLaunching, in 62cf379e. One correction to your description, which matters only to anyone reproducing your setup: on this OS the unbundled process comes up .prohibited rather than .accessory, and a prohibited process cannot be activated at all, so NSApp.activate() on its own leaves the window not key (measured). The policy change is the part that does the work. The second consequence was sitting next to the first one unnoticed: with no key window, the space and escape keys the README documents were dead on that path too.

    So the footnote was worth more than a footnote. A repro instrument that silently downgrades HDR is worse than no instrument, because it hands out confident negatives, and it would have handed one to the next person who reproduced an HDR report through the demonstrator and found the picture fine.

    Neither of your stated limits weakens the result, and the first one is a strength. A synthetic clip is the better instrument for this question, not the worse one: the question is whether HDR pixels reached the compositor, and PQ with BT.2020, mastering-display and MaxCLL metadata and no RPU asks that with nothing else in the frame to argue about. And DemoPlayerMac rather than your host app is on the right side of the line, because the control ran through the same window, the same activation policy and the same serving path, so anything host-specific would have moved both rows together instead of leaving them identical.

    Dolby Vision is the next round and the offer to test it is accepted. The shape is the one you proposed: an opt-in assertion in LoadOptions rather than an inferred capability, documented as an assertion, with the existing master-rejection fallback (-11868 and -11848, once, in place, position preserved) as the net that makes a wrong assertion cost a reload instead of a dead item. The same flag has to become effective on tvOS in that round, where the panel readout has gone quiet on at least one box, so both platforms end up asking the host the same question. 6.69.0 also added the diagnostic side of that on tvOS, hdrHeadroomUsageLimit alongside both headroom properties, since a headroom that is capped by the app's own UI state is not a statement about the display and the two were indistinguishable in every reading taken so far.

    And no rush at all on #377.

  8. added a commit that references this issue on Sep 6, 2026
  9. superuser404notfound commented on Sep 6, 2026

    @superuser404notfound
    Owner

    The Dolby Vision round is on main (#505, 5c190629), and it carries the tvOS side of #459 in the same change, since the two were one gap approached from opposite ends.

    LoadOptions.panelPresentsDolbyVision is the assertion, in the shape proposed on this thread: a claim the host makes, not a capability the engine infers. It composes into the session capability table through DisplayCapabilities.assertingDolbyVision, which the format clamp and the served route now both read from one place, so the published videoFormat and the DV signaling cannot disagree about the same display. Three decisions in it are worth naming, because each one could reasonably have gone the other way:

    • An assertion only ever adds. false cannot hide a capability the system reports, so the flag claims and never suppresses.
    • supportsHDR rides along, supportsHDR10 and supportsHLG do not. Without the HDR term the asserted session would have built a DV master for a route that displaySupportsHDR == false had already sent media-direct, and a DV source through a bare media playlist is the HDR10 base layer, which is the thing the assertion exists to prevent. That every DV television also takes HDR10 is a fact about the market rather than an entailment of the claim, so it is not assumed.
    • panelIsInHDRMode is now an OR term over the engine's own readout on every platform, instead of counting only where the host suppresses display criteria. That is the Stats report wrong current display mode: HDR10+ -> SDR (when display is HDR locked) #459 half: the headroom readout answers only around a dynamic-range transition, which a panel locked to HDR never makes.

    The net is the one that already existed, which is what makes an assertion safe to offer: -11868 and -11848 stay classified as master rejections, and the engine reloads the media playlist once, in place, at the same position.

    The part that speaks to your measurement directly is the lever that was missing. aetherctl play --assert-dv drives the flag, so the A/B you had to run against a local patch is a session option now. Same command twice on macOS 26.5, against Dolby's own P5 UHD clip:

    without:  source-format=dolbyVision effective-format=hdr10
              serving (dvModeAvailable=false effectiveDvMode=false ... videoRange=pq dvVariant=profile5)
    with:     source-format=dolbyVision effective-format=dolbyVision
              serving (dvModeAvailable=true  effectiveDvMode=true  ... videoRange=pq dvVariant=profile5)
    

    The claim also states itself next to what was observed, so a wrong one is legible in the same log as the rejection it produces:

    [DisplayCriteria] host assertion in force: panelIsInHDRMode=false panelPresentsDolbyVision=true (observed: panelReadout=suppressed supportsDolbyVision=false)
    

    Not in a release yet; it ships with the next one, and the offer to test it on macOS is very welcome when it does. The interesting case from here is the one this Mac cannot produce: an asserted display that turns out not to accept the variant, where the fallback rather than the assertion is what gets measured.

  10. superuser404notfound commented on Sep 6, 2026

    @superuser404notfound
    Owner

    Released in 6.70.0 (5c190629), and both consumers are on the new pin, so it arrives with the next build of either.

    LoadOptions.panelPresentsDolbyVision is the assertion, aetherctl play --assert-dv is the lever for a Mac without a host app, and panelIsInHDRMode now counts on every platform rather than only where display criteria are suppressed. Leaving this open for that macOS run whenever it suits.

    The 6.69.0 half is what your measurement already covered; this is the one it was waiting on.

  11. Rasmusmart57 commented on Sep 6, 2026

    @Rasmusmart57
    ContributorAuthor

    The macOS run, on 6.70.0. The assertion holds and the fallback is never reached.

    A Profile 8.1 remux (HEVC, TrueHD Atmos, DV + HDR10+), played in the host app on a 16-inch XDR. Host log, URL redacted:

    [AetherEngine] load url=<redacted> source-format=dolbyVision effective-format=dolbyVision rate=23.976
    [DisplayCriteria] host assertion in force: panelIsInHDRMode=true panelPresentsDolbyVision=true
        (observed: panelReadout=suppressed supportsDolbyVision=false)
    [HLSVideoEngine] serving on ... (dvModeAvailable=true effectiveDvMode=true panelIsHDR=true
        displaySupportsHDR=true matchContent=true sourceIsHDR=true useMaster=true videoRange=pq
        dvVariant=profile81 audioLang=eng)
    

    No -11868, no -11848, no reload anywhere in the session. effective-format resolves to dolbyVision rather than clamping to the HDR10 base, and the served route carries dvVariant=profile81 off the master.

    The line that states the claim next to what was observed does exactly what you built it for: panelPresentsDolbyVision=true against supportsDolbyVision=false is the whole disagreement in one place, and it is the line I would have wanted when this thread started from a badge reading SDR.

    aetherctl play --assert-dv also behaves as documented against a synthetic plain-HDR10 clip — the assertion is in force and dvModeAvailable/effectiveDvMode flip to true, while effective-format stays hdr10, since effectiveVideoFormat returns early for anything that is not DV. Useful confirmation that asserting does not make the engine claim things about non-DV sources.

    The local patch is gone. This fork carried exactly one — the macOS capability table, claiming all four modes from potential EDR headroom — and 6.70.0 retires it. The claim now lives in the host's LoadOptions where the knowledge about the display actually is, and the vendored engine is unmodified again. A patch that a version bump silently overwrites is a bad way to hold a fact; an input is a good one.

    Two notes for the record:

    The interesting case is still unmeasured here. This display accepts what it was asserted to accept, so the fallback path has not been exercised — an asserted display that then refuses the variant is the case I cannot produce, same as you. If a way to force -11868 on a cooperating display occurs to you (a deliberately malformed RPU, a profile the panel is known to reject), I am happy to run it.

    Reading a host app's engine log turned out to be the hard part, which is worth mentioning because it shaped how long this took. EngineLog writes to os.Logger and to the optional host handler; this app installed no handler, and log show against the subsystem returned nothing for the GUI process with or without --info --debug. stdout is not an alternative either — an app launched by open discards it, and redirected to a file it block-buffers, so a session that is still running has written nothing. Installing the handler and writing a file was the fix, and the measurement above is the first one this fork could quote rather than describe. Possibly worth a line in the README next to the DemoPlayerMac activation-policy fix, since a host author reproducing an engine bug will hit the same wall.

    Separately, I have sent a private advisory about something visible in that same log. Nothing to do with Dolby Vision.

  12. 14 remaining items

  13. DrHurt commented on Sep 7, 2026

    @DrHurt
    Contributor

    Thanks, big progress with those changes!

    AtherEngine being specs-compliant is a positive thing. It makes the engine future proof and also increases downstream developers' confidence in the engine that it "does things right".

    Sorry for pushing so hard.

  14. superuser404notfound commented on Sep 7, 2026

    @superuser404notfound
    Owner

    Measured and shipped. Released in 6.73.0 (8220910b), both consumers on the new pin. The gate is gone for 8.1 and 8.4, so nothing on that branch deviates from the authoring spec any more.

    The arm, on the same Apple TV 4K 3rd gen at the same HDR10-only Samsung, no assertion anywhere and the log confirming it (dvModeAvailable=false effectiveDvMode=false):

    CODECS="hvc1.2.4.L150",SUPPLEMENTAL-CODECS="dvh1.08.07/db1p",VIDEO-RANGE=PQ   -> plays, picture present
    CODECS="hvc1.2.4.L150",SUPPLEMENTAL-CODECS="dvh1.08.07/db4h",VIDEO-RANGE=HLG  -> plays, picture present
    

    No error log entry in either, and no black picture, which is the specific shape f7e9f77f measured in May. Profile 8.4 got its own arm rather than inheriting 8.1's, for the same reason its strip did yesterday, and it took the fixed-HDR output mode to produce at all.

    Your reasoning is what carried it, not the re-measurement. A gate defended by a stale measurement is still a gate someone has to justify keeping, and "it is inert on this panel" was never that justification. The pairing exists so a client that does not know dvh1 reads the base layer, and this engine has such a client: AirPlayPlaylistDecision hands the loopback master to wireless receivers, and its own measured table has an Apple TV in fixed DV mode taking a 4K PQ master with the supplemental. An AirPlay 2 television is exactly the device the pairing was written for. The gate also keyed on the sending device's display, which on iOS is read device-wide, so a sender without DV aimed at a receiver that has it dropped the signal for nothing at all. That case never appeared in any of my measurements because both ends of the rig were the same box.

    One finding from the same run that is worth having on the record, since it came out of a question about a readout and turned into something structural. On this rig a Profile 8.4 resolves to effective-format=sdr, which puts the session's label at SDR and asks the display criteria for SDR while the served variant is still VIDEO-RANGE=HLG. The clamp reads supportsHLG for an HLG base layer, and there was no way to tell an HDMI chain that does not advertise HLG from the engine misreading the platform. 6.73.0 also adds a line that says it outright:

    [DisplayCapabilities] observed: hdr=true hdr10=true hlg=false dv=false
    

    Identical in both output modes, Match Dynamic Range on and fixed HDR, so on that chain the clamp is following its own table rather than inventing an answer. A per-mode false being an assertion the platform made, not an absence of information, is the thing this whole issue turned on for macOS, and it now states itself once per load in any host's diagnostic log rather than being inferred backwards from an outcome.

    Thanks for both halves of this. Two releases in a day, and both of them removed something that had been carried forward rather than re-checked.

  15. DrHurt commented on Sep 7, 2026

    @DrHurt
    Contributor

    So I’m guessing that means the original reporter’s issue is now solved?

    AVPlayer.eligibleForHDRPlayback = true on macOS should now allow HLG/HDR/DV via master playlist irrespective of panel capabilities. AVPlayer should now handle it the same way it does on tvOS.

    That’s the ideal outcome I was hoping for that closes this.

  16. Rasmusmart57 commented on Sep 8, 2026

    @Rasmusmart57
    ContributorAuthor

    Ran the control arm on macOS with 6.73.0. Same file, same display, same build, only thing that changes is LoadOptions.panelPresentsDolbyVision.

    asserted:  observed: hdr=true hdr10=true hlg=true dv=false (session dv asserted true)
               source-format=dolbyVision effective-format=dolbyVision
               serving (dvModeAvailable=true  effectiveDvMode=true  panelIsHDR=true useMaster=true dvVariant=profile81)
    
    control:   observed: hdr=true hdr10=true hlg=true dv=false
               source-format=dolbyVision effective-format=hdr10
               serving (dvModeAvailable=false effectiveDvMode=false panelIsHDR=true useMaster=true dvVariant=profile81)
    

    No errors in either run. 16" MacBook Pro, built-in XDR, macOS 26, real host app with a window. Source is a P8.1 remux, HEVC/PQ, RPU + HDR10+.

    @DrHurt to answer your question: yes it's solved, but it's the assertion doing it, not the platform. Turn the assertion off and the same file on the same display clamps back to hdr10, exactly like before 6.70.0. dv=false shows up in both runs and I don't think it can ever be anything else, since availableHDRModes isn't available on macOS. eligibleForHDRPlayback does read true here, and that's what covers HDR/HDR10/HLG since 6.69.0, so that half needs nothing from the host. DV is the only part still resting on a claim.

    I nearly answered this by just reading the clamp instead of measuring it, which is the mistake this thread has already caught twice, so I added a flag to my host to turn the assertion off and ran it properly.

    Something else came out of it that isn't macOS specific. SUPPLEMENTAL-CODECS="dvh1.08.06/db1p" is in the master in both runs, including the one with effectiveDvMode=false. On 6.72.0 that line was effectiveDvMode ? "dvh1.08.\(dvLevelStr)/db1p" : nil, so the control run would have had none at all. I don't think anyone's run that change outside your Apple TV yet, so it works off tvOS too.

    One thing I can't answer. remote-HLS videoFormat=hdr10 subType='hvc1' is the same in both runs. AVPlayer's readout doesn't tell them apart, only the engine's does. Same acceptance vs picture split you made earlier, just aimed at the assertion this time, and I can't settle it with one grade in one packaging. The control run does log HDR10+ T.35 detected, upgrading videoFormat .hdr10 → .hdr10Plus, which the asserted run never hits, so the readout differs even where AVPlayer's doesn't. How it actually looked, honestly not sure. Maybe slightly flatter without the assertion, but I wouldn't call that evidence.

    Worth saying it's one panel and one file, same as always.

  17. DrHurt commented on Sep 8, 2026

    @DrHurt
    Contributor

    I think what you’re seeing here is cosmetic, just a logging bug. (Diagnostics assuming it’s playing in HDR10+ because system has not reported DV compatibility).

    In both cases your system is using the same master playlist & the same file (engine no longer strips DV).

    Try the following test file:

    https://spott.ott.dolby.com/

    Go to HLS-Clear and play OTT00325.

    If it strobes, your laptop supports DV (despite not reporting it) and if it doesn’t, then your laptop genuinely doesn’t and it’s playing the HDR layer.

  18. superuser404notfound commented on Sep 8, 2026

    @superuser404notfound
    Owner

    Both readings are partly right, and the half that settles it turned out to be measurable, so here it is measured rather than read off the clamp.

    On this build the claim does not change a single byte of what AVFoundation receives, for any of the three grades. Same source, same build, only dvModeAvailable moving, which is what panelPresentsDolbyVision flips. Served through the engine's own loopback and pulled with curl, md5 in both arms:

    grade master.m3u8 media.m3u8 init.mp4 seg0.mp4
    P5 d3b5be10… afe40ae7… 96a75f9b… 74d4405a… (4.1 MB)
    P8.1 7ce7638f… afe40ae7… ab28becc… 238b0a18… (4.3 MB)
    P8.4 6497b0e2… afe40ae7… 811dcda0… ee38af29… (5.8 MB)

    Every cell identical with dvModeAvailable=true and with =false, displaySupportsHDR=true and useMaster=true in both arms. Dolby's matched P5 / P8.1 / P8.4 grades of one material, macOS 26.5.2, engine main at 14ee1d65 (the DV routing and manifest path unchanged since 6.73.0).

    That is a consequence of the two releases yesterday rather than anything new: 6.72.0 gave the non-DV branch its dvcC back and 6.73.0 its SUPPLEMENTAL-CODECS, and for these grades those two were the entire difference between the branches.

    So the picture cannot differ between the two runs, which is the "cosmetic" reading, though for a stronger reason than the diagnostics one. It is not that the readout assumes HDR10+ because the system reports no DV. It is that both runs hand AVFoundation the same bytes, so whatever that display does with the RPU it does in both, and the whole difference lives in what the engine calls the session.

    The T.35 line is not a logging bug, though. handleHDR10PlusDetected upgrades a videoFormat that already reads .hdr10 and leaves every other label alone; the payload is recorded in sourceVideoFormat either way. The asserted run has no .hdr10 label to upgrade, because it was told the display presents Dolby Vision. Two different claims about one display, two different labels, and which of them is true is exactly the question macOS offers no API to answer.

    One correction to "it's the assertion doing it, not the platform": true of the label, no longer true of the picture. Composition, if that display does it, has needed no assertion since 6.72.0. What still rests on the claim is the published videoFormat, the supportsHDR term that rides along with it (which can move a session from media-direct to the master where HDR readiness would otherwise read false), the display-criteria request (a no-op stub off tvOS), the Profile 7 and AV1 Dolby Vision packaging, which are both still gated on it, and forceDolbyVisionOnNonDVDisplay, which asserting turns off. "Maybe slightly flatter without the assertion" was right to be flagged as not evidence: on identical bytes it cannot have come from the engine.

    That control run is also the first confirmation of the 6.73.0 supplemental change from outside my own Apple TV, which is what the release notes asked for. Thank you for running it with a host flag instead of answering from the clamp; that is the only reason it says anything.

    On the strobe test: good instrument, and it wants aiming at the other arm. With both arms serving the same bytes, what that laptop can settle is not whether the assertion does something, but whether macOS composes the RPU there at all. The cheapest form of it runs in the host app rather than a browser, since a browser answers for Safari's pipeline and not for this one:

    • Dolby's browser test kit carries the same material as matched P5 / P8.1 / P8.4: https://ott.dolby.com/browser_test_kit/source_mp4s/24fps.zip, no login, direct download.
    • Play the P8.1 with the assertion OFF and watch for the strobe. The P5 cut of the same grade is the positive control, since it takes the DV path on any display.
    • Strobe on the control arm means the RPU reaches the pixels on macOS with no claim at all, and the assertion really is only a label there. Strobe on P5 alone means that display is taking the base layer, and hdr10Plus was the honest label all along.

    That is the observable this thread has lacked on macOS, and it is the last thing in the issue resting on argument rather than measurement, so I would rather leave it open for that arm than close on the two halves that are shipped (6.69.0 for the capability table, 6.70.0 for the assertion and panelIsInHDRMode).

    Corrected here in the meantime, in 14ee1d65, documentation plus two regression tests, not released. docs/api.md, docs/formats.md, the LoadOptions comment and aetherctl --assert-dv all still described the flag as choosing the DV route with dvh1 tags and a supplemental, which was true until yesterday. The tests pin both halves of what it does now, the three grades it leaves alone and the two it still packages, so "the claim changes nothing" cannot quietly grow into the rule.

  19. Rasmusmart57 commented on Sep 8, 2026

    @Rasmusmart57
    ContributorAuthor

    Tested both with the assertion off. Both strobe.

    16" MacBook Pro, built-in XDR, macOS 26, engine 6.73.0. Dolby v1.1 reference content, P5 and P8.1, 4K30, played from disk. (The browser_test_kit zip 403s now. Same grades are on spott as HLS and each rendition is a single fMP4, so I just downloaded those.)

    P5    effective-format=hdr10, dvModeAvailable=false, useMaster=true
          remote-HLS videoFormat=dolbyVision subType='dvh1'    -> strobes
    
    P8.1  effective-format=hdr10, dvModeAvailable=false, useMaster=true
          remote-HLS videoFormat=hdr10 subType='hvc1'          -> strobes
    

    So the RPU gets to the pixels with no claim set anywhere. On this display the assertion is only a label.

    P8.1 strobes even though the format description says hdr10/hvc1, so that field can't tell you whether it composed.

    One thing I found on the way. My app draws a dynamic range badge in the player, read straight off the engine's videoFormat. It said HDR10/PQ on the P5 file. publishDetectedVideoFormat runs on the loopback route and logs dolbyVision, but the sink that copies $detectedVideoFormat into videoFormat is in loadRemoteHLS (~396), not wireCommonHostSinks (186-310). So nothing reads it there.

    [Marten] badge output=HDR10/PQ source=Dolby Vision P5 → HDR10/PQ
    [NativeAVPlayerHost] #1 remote-HLS videoFormat=dolbyVision subType='dvh1'
    

    The published format stayed hdr10 while your host had already parsed a dvh1 track. dvh1 looks like a usable DV signal on macOS. hvc1 isn't, going by P8.1.

  20. Rasmusmart57 commented on Sep 8, 2026

    @Rasmusmart57
    ContributorAuthor

    Fixed the badge on my side without an engine change. nativePlayerLayer is public, so the host can read the same sample entry off the item.

    Upgrade only: dvh1/dvhe means DV is being presented, anything else is left alone, since P8.1 reports hvc1 and composes anyway. P5 now reads Dolby Vision, P8.1 still reads HDR10/PQ, which is honest — nothing in the stack reports DV for it, we only know it strobes.

    So nothing is blocked here. Posting it in case the loopback route should just do what loadRemoteHLS already does.

    Happy for this to close from my side whenever you like. The two halves of the original report shipped in 6.69.0 and 6.70.0, and the arm you were holding it open for is measured now. The loopback sink is a separate thing and might be cleaner as its own issue.

  21. superuser404notfound commented on Sep 8, 2026

    @superuser404notfound
    Owner

    Both arms strobing settles the last thing in this issue that was standing on an argument, and it settles it against the more cautious reading rather than for it.

    With no claim set anywhere, macOS composes the RPU. Profile 5 and Profile 8.1, same display, assertion off, both strobe. So panelPresentsDolbyVision on that Mac is a label and nothing else, which is what the md5 table said about the bytes and what this now says about the pixels. The two halves of the original report shipped in 6.69.0 (the capability table) and 6.70.0 (the assertion and panelIsInHDRMode), and the arm that was left is measured, so this one is done.

    The Profile 8.1 arm carries something extra, and it is the first of its kind. It strobes as hvc1, with no claim, on a platform that is not the Apple TV this was measured on. That is the 6.72.0 dvcC retention arriving somewhere other than the rig it was built against, and the release notes asked for exactly that. It also means the format description was never going to answer the composition question: hvc1 and hdr10 on a session that demonstrably composes is the same acceptance-is-not-the-picture split as before, aimed one level lower.

    The badge finding is real on the engine's side too, and it is now on main as #515 (895ccd0c, not released). The diagnosis was right down to both line numbers: publishDetectedVideoFormat has no route gate and runs on every native session, while host.$detectedVideoFormat is subscribed in one place, inside loadRemoteHLS.

    What it does not do is mirror that sink, and the case that rules a mirror out is tvOS rather than macOS. A Profile 5 master carries a dvh1 sample entry on every panel, so an unconditional copy would relabel a session on a panel parked in SDR, whose label is deliberately .sdr, as Dolby Vision, and it would overwrite a sourceVideoFormat the probe on that route had already answered better. So it is an upgrade: only where the platform has no per-mode capability table, only from .hdr10, only for a source the probe called Dolby Vision, and only on a dvh1 / dvhe item. Profile 5 will read Dolby Vision with no host patch and no assertion; Profile 8.1 keeps HDR10, for the reason given for it, which is that it composes and nothing in the stack says so. The host-side read off nativePlayerLayer stays the better instrument for that one either way.

    Also renamed in the same commit: the host logged that line as remote-HLS on every route, including the loopback one where it is wrong, on a log where the route was the question.

    On method, since it is the reason this thread produced anything. Adding a flag to a host app to turn the assertion off, and then running the strobe against the control arm rather than the asserted one, is what made both measurements mean something; reading the clamp would have produced a confident answer with nothing behind it twice over. Noted about browser_test_kit 403ing, and that the same grades are reachable on spott as single-fMP4 renditions. Thank you for all of it, including #377, which is in no hurry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions