Netflix is not using video IOSurfaces
Categories
(Core :: Audio/Video, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox95 | --- | verified |
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(1 file)
When playing Netflix on macOS, we seem to upload the video as textures and do the conversion to RGB in WebRender.
Matt Woodrow found the following:
It looks like the GMP decoder (the Widevine/DRM decoder) isn't passing the needed aAllocator param - https://searchfox.org/mozilla-central/rev/8130ddcaa7e214d341371194bb1d2f97078cab00/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp#63-67
Fixing that (it's available in the CreateDecoderParams passed to the ctor) will likely improve performance even without [Brad's] changes, as well as hopefully fixing [the issue with Netflix not hitting detached mode]!
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•4 years ago
•
|
||
There are a few more callers of VideoData::CreateAndCopyData which don't pass an aAllocator param, which means that none of them will get IOSurface upload or detached mode: AOMDecoder, OmxDataDecoder, and BlankDecoderModule. I'll make the parameter non-optional and change these callers to pass nullptr.
| Assignee | ||
Comment 2•4 years ago
|
||
Comment 3•4 years ago
|
||
The call to VideoData::CreateAndCopyData in ChromiumCDMParent::CreateVideoFrame is the one that needs to not be null.
Updated•4 years ago
|
Updated•4 years ago
|
Triaging, please adjust values as you see fit.
Comment 6•4 years ago
|
||
| bugherder | ||
Comment 7•4 years ago
|
||
NI? myself for QA verification.
Updated•4 years ago
|
Comment 8•4 years ago
•
|
||
Verified-fixed on the latest Nightly 95.0a1 (2021-10-21) (64-bit) on MacOS 11 M1.
After the video is in fullscreen and all the overlays disappear (age rating, skip recapp, etc) the video will be detached.
Edit: Also works only if subtitles are disabled.
Description
•