Open Bug 1861741 Opened 2 years ago Updated 1 year ago

Run media-gpu vp9 hw decoding on macOS 11+

Categories

(Core :: Audio/Video: Playback, task, P3)

task

Tracking

()

People

(Reporter: alwu, Assigned: alwu)

References

(Depends on 1 open bug)

Details

Attachments

(2 files)

Vp9 hw decoding is supported since osx11, on the CI we mainly use osx10.15. But we have some osx11 (m1) and osx13 (m2) available, m1 and m2 chip should be able to do vp9 hw decoding.

However, I couldn't let our test run successfully on those machines. On osx11, I got kVTPropertyNotSupportedErr when trying to create hw decoder. On osx13, not only hw decoding test, there are many tests failed due to not being able to create a decompression session. This bug is used to investigate the problem.

:masterwayz, can you help :alwu with figuring out what needs to be adjusted on the OS in order to do vp9 hw decoding?

Flags: needinfo?(mgoossens)
Depends on: media-gpu

checking in here, maybe Ryan could help also

Flags: needinfo?(rcurran)

Happy to help. I combed through the google search results and found this article which may be of some value and might be worth taking a look at :alwu

https://developer.apple.com/forums/thread/740027

I will continue to investigate on the OS side

Logged into a staging node macmini-m1-1 OS v11.2.3 this morning. It appears that Safari.app uses the vp9 codec when playing back videos on youtube by default. Screen shot attached. Just another interesting data point imo.

Firefox.app and Safari.app also seem to be behaving the same way using the vp9 codec on my work machine (macOS 14.1)

so somehow Firefox isn't finding the vp9 codec either in general, or during test runs, OR... there is a bug in firefox code or tests :)

Installed Firefox v119 on the same node and verified vp9 was being used for youtube playback in Firefox (attached)

this this is mac mini M1 at macstadium (osx 1100).

this would be these jobs:
https://treeherder.mozilla.org/jobs?repo=mozilla-central&searchStr=1100%2Cmda%2Cgpu&revision=925231a8fb5eccf055afb3e9921596d8f990128b

the test from the original comment isn't in ^ results, so possibly we need to fix something else?

Flags: needinfo?(rcurran)
Flags: needinfo?(mgoossens)
Flags: needinfo?(alwu)

Thanks! I will keep investigating this issue later. Keep my NI.

Flags: needinfo?(alwu)
Summary: Run media-gpu on osx11 or osx13 in order to test vp9 hw decoding → Run media-gpu vp9 hw decoding on Windows and MacOS 11+

Let's separate the task for Windows and MacOS, as I see some issues happen on macos but not on Windows.

Summary: Run media-gpu vp9 hw decoding on Windows and MacOS 11+ → Run media-gpu vp9 hw decoding on macOS 11+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: