5 ms·
Try running `firefox MOZ_LOG=PlatformDecoderModule:5`, navigating to a video and checking that the decode is being done though VA-API. Depending on your GPU, yo
by eightails 6y ago
Try running `firefox MOZ_LOG=PlatformDecoderModule:5`, navigating to a video and checking that the decode is being done though VA-API. Depending on your GPU, you might have to use something like enhanced-264ify to force Youtube to use formats that are supported by hardware decode.
More info here:
https://wiki.archlinux.org/index.php/firefox#Hardware_video_acceleration https://wiki.archlinux.org/index.php/firefox#Hardware_video_...
- thinkbud 6y agoLast week, I tried this on an AMD 3400g (Vega 11 amdgpu) with that specific environment variable and my results were: - vainfo told me it (VA-API) can decode vp9 and h264 among others - mpv plays vp9 and h264 using vaapi - firefox log mentions using VA-API in h264 playback but in vp9 nothing related is printed Maybe firefox whitelisted only h264 for hw decode?
- jancsika 6y agoThanks for the tip. I think you meant `MOZ_LOG=PlatformDecoderModule:5 firefox`. When I run that with Firefox 81.0 I get this when I open Youtube: [Child 78229: Main Thread]: D/PlatformDecoderModule VA-API FFmpeg is disabled by platform [Child 78229: Main Thread]: D/PlatformDecoderModule Sandbox decoder rejects requested type Same in Nightly 82.0b9. This is on a Dell XPS 13 amd64 with Mesa Intel® UHD Graphics (ICL GT1) running Ubuntu running Wayland. I haven't tested my RPI4 yet. But if Intel graphics aren't a "supported platform," it's difficult to imagine any graphics under Linux that would be. Didn't test trying to force-enable because we're talking about supported platforms.