Closed Bug 1679356 Opened 4 years ago Closed 3 years ago

VP9 hardware decoder not available when using Apple Silicon

Categories

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

ARM64
macOS
defect

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: jya, Assigned: jya)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

On a Mac mini with an Apple Silicon we use the ffvp9 decoder while apparently a VP9 hardware decoder is available (seen used by webkit).

Should investigate.

It appears to be a combination if issues:
1- sandbox
2- different behaviour in the logic used to determine if a hardware decoder is available or not.

On Apple Silicon, the flag kVTDecompressionPropertyKey_UsingHardwareAcceleratedVideoDecoder always returns false; even thoough we can really tell it's hardware accelerated by the CPU usage percentage (from 130% to 6% when playing 4K VP9).

So we ignore that flag for now, and just rely on VTIsHardwareDecodeSupported to return true.

Depends on D97983

Pushed by jyavenard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/def4466c66ea
P1. Make the VP9 HW decoder work on Apple Silicon. r=haik
https://hg.mozilla.org/integration/autoland/rev/e060214ffbb1
P2. Ignore HW accelerated flag when using the Apple's VT decoder. r=jolin
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
See Also: → 1790244
See Also: → 1803699
See Also: 1803699
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: