[macOS] HDR videos with default view on Youtube will have colors washed out/low brightness
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
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
- Launch Firefox
- 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
Comment 1•2 years ago
|
||
:csasca, if you think that's a regression, could you try to find a regression range using for example mozregression?
Updated•2 years ago
|
![]() |
||
Updated•2 years ago
|
![]() |
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•2 years ago
|
||
There's a test case for vp9 10bit HDR but it's disabled across all Mac machines.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
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.
Assignee | ||
Comment 4•2 years ago
|
||
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?
Assignee | ||
Comment 6•2 years ago
|
||
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.
![]() |
||
Updated•2 years ago
|
Assignee | ||
Comment 7•2 years ago
|
||
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.
Assignee | ||
Comment 8•2 years ago
|
||
(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?
Comment 9•2 years ago
|
||
Bug 1849680 is where we'll be tracking the work to allow this.
Assignee | ||
Comment 10•2 years ago
|
||
Fixed by Bug 1849680, as this was caused by YouTube's A/B testing of rounded corner overlays on top of video.
Reporter | ||
Comment 11•2 years ago
|
||
The issue is still happening on Firefox 123.0b8 and Nightly 124.0a1 (2024-02-07) - screencast
Assignee | ||
Comment 12•2 years ago
|
||
(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.
Reporter | ||
Comment 13•2 years ago
|
||
Yes, it seems that by deactivating ambient mode, colors instantly pop-in in the video. Thanks!
Description
•