Closed Bug 1850118 Opened 2 years ago Closed 2 years ago

[macOS] HDR videos with default view on Youtube will have colors washed out/low brightness

Categories

(Core :: Audio/Video: Playback, defect)

Desktop
macOS
defect

Tracking

()

RESOLVED DUPLICATE of bug 1849680
Tracking Status
firefox118 --- affected
firefox119 --- affected

People

(Reporter: csasca, Assigned: bradwerth)

References

Details

(Keywords: regressionwindow-wanted)

Found in

  • Firefox 118.0a1

Affected versions

  • Firefox 117.0
  • Firefox 118.0a1

Tested platforms

  • Affected platforms: macOS 12.6.8 and macOS 13.5.1
  • Unaffected platforms: Windows, Ubuntu

Steps to reproduce

  1. Launch Firefox
  2. Visit Youtube and access any HDR video (example video)

Expected result

  • HDR works as expected in standard video view

Actual result

  • HDR video has washed out colors with low brightness in default view. Theatre and Fullscreen will have HDR working as expected

Regression range

  • Will see for a regression

Additional notes

  • The issue can be seen in the following attachment
  • Reproduced the issue on two macbooks pro 2019 16" with Intel and on one macbook pro 14" 2023 with M2 Max

:csasca, if you think that's a regression, could you try to find a regression range using for example mozregression?

Severity: S3 → --
Severity: -- → S3
QA Whiteboard: [qa-regression-triage]

There's a test case for vp9 10bit HDR but it's disabled across all Mac machines.

Assignee: nobody → bwerth

Something strange is happening here. I can reproduce the problem on Nightly 119, but not in Release 117. When I try in mozregression with various dates and builds, I can't reproduce it anywhere. In all cases, YouTube reports that it is serving up HDR, which would not be the case if our capability detection (matching video-dynamic-range: high) was not being honored by YouTube.

I'll do some debugging to figure out what format we're actually putting on the screen in the failure case.

Huh. NativeLayerCA::AttachExternalImage is no longer being called. That means that this line in WebRender is never being hit for any macOS video. If this was due to some change in WebRender, I should be able to replicate this with mozregression. I'll keep trying to do so. In the meanwhile, Glenn, has anything changed recently with the way we handle external/native surfaces in WebRender?

Flags: needinfo?(gwatson)

Not that I'm aware of.

Flags: needinfo?(gwatson)

Bug 1766343 would ensure that video surfaces that WebRender treated as non-native (for whatever reason) would still be eligible for specialized video surfaces. That is the root cause of the problem noted in comment 4. It does not help explain why some builds of Firefox are taking this path through WebRender. I may pursue Bug 1766343 as a sideways solution to this Bug.

See Also: → 1766343
No longer blocks: media-triage

This is probably happening because the rounded-corner edges recently added by YouTube are forcing video frames to be composited in WebRender instead of retaining their identity as external surfaces. Bug 1766343 can't solve this. Bug 1850754 is relevant.

See Also: 17663431850754

(In reply to Brad Werth [:bradwerth] from comment #7)

This is probably happening because the rounded-corner edges recently added by YouTube are forcing video frames to be composited in WebRender instead of retaining their identity as external surfaces. Bug 1766343 can't solve this. Bug 1850754 is relevant.

Glenn, what would it take to get WebRender to support clipping of videos while retaining support for their identity as external textures? Is there a Bug open for this issue?

Flags: needinfo?(gwatson)

Bug 1849680 is where we'll be tracking the work to allow this.

Depends on: 1849680
Flags: needinfo?(gwatson)

Fixed by Bug 1849680, as this was caused by YouTube's A/B testing of rounded corner overlays on top of video.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1849680
Resolution: --- → DUPLICATE
See Also: 1850754
No longer depends on: 1849680

The issue is still happening on Firefox 123.0b8 and Nightly 124.0a1 (2024-02-07) - screencast

(In reply to Catalin Sasca, Desktop QA [:csasca] from comment #11)

The issue is still happening on Firefox 123.0b8 and Nightly 124.0a1 (2024-02-07) - screencast

Are you viewing in Dark Mode with Ambient Mode turned on? If so, that's Bug 1872892.

Flags: needinfo?(csasca)

Yes, it seems that by deactivating ambient mode, colors instantly pop-in in the video. Thanks!

Flags: needinfo?(csasca)
You need to log in before you can comment on or make changes to this bug.