YouTube avc1 video is not GPU decoded
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
People
(Reporter: flat, Unassigned)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
View a YouTube live stream such as https://www.youtube.com/watch?v=A1gfjXeDvDk
(Media foundation AVC1 codec is installed)
Media Profiler: https://share.firefox.dev/3OdsRyc
Actual results:
The video that is avc1.4d402 (299) encoded is decoded via CPU (Noticeable CPU usage) making Firefox and Windows randomly lag heavily
Expected results:
The video should be hardware decoded by the GPU and use little CPU
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•3 years ago
|
||
Could you help me check the latest Nightly to see if it helps? We've landed some fix recently, and they should be uplifted to Fx100 soon.
If the issue still exists, could you post your about:support
information?
Thank you.
Comment 4•2 years ago
|
||
AMD Radeon RX 6900 XT should have H.264 decoding support up to 4K.
Comment 5•2 years ago
|
||
Could post your Nightly about support again? We've added hardware decoding support information to it.
Comment 7•2 years ago
|
||
Yeah this reports hardware and software decoding for h264.
I wonder if we're opting out of hardware decoding for livestream (because of latency), and we should reevaluate this policy?
Alastor, do you know?
Comment 8•2 years ago
|
||
No, I don't remember we have such mechanism to not using hardware decoding.
Would you mind to use Firefox profiler to capture a result for us?
- Enable the Firefox Profiler button by going to https://profiler.firefox.com
- Go to
about:networking
, select the tab Logging on the left - In the box Current Log Modules, enter
timestamp,MediaDecoder:5,PlatformDecoderModule:5,MediaFormatReader:5
- Click profiler add-on icon, and chose
Media
preset - Start profiling
- Go to the video where you can reproduce the issue
- When issue happens, stop profiling
- Upload the profile, keeping all hidden threads
Thank you so much.
Comment 10•2 years ago
|
||
It would be great if you can do it on the latest Nightly, thanks!
Reporter | ||
Comment 11•2 years ago
|
||
Here is the profile. Let me know if you're missing any needed info. I'm not super familiar on how to read these but I see the remote decoder calls, so if it is using GPU acceleration, something is off, as my GPU utilization doesn't increase, which I assume it would especially on an 8K AV1 video.
Comment 12•2 years ago
|
||
We have blocking for this I believe. Looking at the gfx info, I see -
HW_DECODED_VIDEO_NO_COPY:
blocked by default: Blocklisted by gfxInfo
Andrew, any idea what that means?
Comment 13•2 years ago
|
||
(Possibly that was Sotaro's work, and has no relationship to this. Not sure.)
Comment 14•2 years ago
|
||
FEATURE_HW_DECODED_VIDEO_ZERO_COPY is using the allowlist, which means only Intel devices can get the feature right now:
https://searchfox.org/mozilla-central/rev/abf6758ed833c203f84703aa2e3e3d317571b1e9/widget/windows/GfxInfo.cpp#1786
We should probably distinguish between explicitly blocked and just not on the allowlist here:
https://searchfox.org/mozilla-central/rev/abf6758ed833c203f84703aa2e3e3d317571b1e9/gfx/thebes/gfxPlatform.cpp#2753
The attached about:support indicates it is an AMD device so it would have been enabled otherwise.
Updated•2 years ago
|
Description
•