Bug 2094953 - VA-API does not work even though it is supposed to according to update description
Summary: VA-API does not work even though it is supposed to according to update descri...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-08 17:17 UTC by Julian Sikorski
Modified: 2022-06-21 05:41 UTC (History)
11 users (show)

Fixed In Version: firefox-101.0.1-4.fc36 firefox-101.0.1-5.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-16 01:20:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
MOZ_LOG="Dmabuf:5, PlatformDecoderModule:5" firefox output (251.68 KB, text/plain)
2022-06-08 17:17 UTC, Julian Sikorski
no flags Details

Description Julian Sikorski 2022-06-08 17:17:02 UTC
Created attachment 1888118 [details]
MOZ_LOG="Dmabuf:5, PlatformDecoderModule:5" firefox output

Description of problem:
https://src.fedoraproject.org/rpms/firefox/c/61879d2c53a0473a24b4a9a69fcedd1af8f74fdf?branch=rawhide enables VA-API by default according to the commit description. Unfortunately it does not work on my AMD Ryzen 5 4500U machine.

Version-Release number of selected component (if applicable):
101.0-2.fc36

How reproducible:
always

Steps to Reproduce:
1. flip media.ffmpeg.vaapi.enabled to true
2. go to https://tools.woolyss.com/html5-audio-video-tester/?u=ftp.nluug.nl/pub/graphics/blender/demo/movies/ToS/tears_of_steel_720p.mov

Actual results:
vaapi does not work

Expected results:
vaapi gets used

Additional info:
The following entries in the log are suspicious:
[Child 66430: Main Thread]: D/Dmabuf Failed to open drm render node /dev/dri/renderD128 error Keine Berechtigung
[RDD 66759: MediaSupervisor #1]: D/PlatformDecoderModule FFMPEG: VAAPI is disabled by parent decoder module.
/usr/share/libdrm/amdgpu.ids: Permission denied

Comment 1 Julian Sikorski 2022-06-08 17:29:21 UTC
MOZ_DISABLE_RDD_SANDBOX=1 seems to help.

Comment 2 Fedora Update System 2022-06-10 06:32:20 UTC
FEDORA-2022-0e2ff84e1e has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-0e2ff84e1e

Comment 3 Fedora Update System 2022-06-10 06:32:53 UTC
FEDORA-2022-950e0f78c7 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-950e0f78c7

Comment 4 Julian Sikorski 2022-06-10 10:04:17 UTC
With firefox-101.0.1-1.fc36.x86_64 VA-API seems to work even without the need to flip media.ffmpeg.vaapi.enabled to true. Thanks!

Comment 5 Fedora Update System 2022-06-11 01:14:39 UTC
FEDORA-2022-0e2ff84e1e has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-0e2ff84e1e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-0e2ff84e1e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2022-06-15 01:11:00 UTC
FEDORA-2022-950e0f78c7 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-950e0f78c7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-950e0f78c7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-06-15 01:15:20 UTC
FEDORA-2022-0e2ff84e1e has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-0e2ff84e1e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-0e2ff84e1e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Dimitris 2022-06-15 06:12:18 UTC
Build 101.0.1-4.fc36 doesn't seem to enable VAAPI (no video workload on intel_gpu_top playing youtube video) on a:

00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)

Comment 9 Martin Stransky 2022-06-15 06:32:11 UTC
(In reply to Dimitris from comment #8)
> Build 101.0.1-4.fc36 doesn't seem to enable VAAPI (no video workload on
> intel_gpu_top playing youtube video) on a:
> 
> 00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris
> Xe Graphics] (rev 01)

You still need to install additional packages on Intel, see:
https://fedoraproject.org/wiki/Firefox_Hardware_acceleration#Configure_VA-API_Video_decoding_on_Intel

You may also probe troubleshooting steps:
https://fedoraproject.org/wiki/Firefox_Hardware_acceleration#Troubleshooting

Comment 10 Fedora Update System 2022-06-16 01:20:48 UTC
FEDORA-2022-950e0f78c7 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2022-06-17 01:19:18 UTC
FEDORA-2022-d1c8a76563 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Dimitris 2022-06-21 03:29:25 UTC
I see, thanks.  Is ffmpeg/a non-official repo going to be required long term for video acceleration?

Comment 13 Martin Stransky 2022-06-21 05:41:14 UTC
(In reply to Dimitris from comment #12)
> I see, thanks.  Is ffmpeg/a non-official repo going to be required long term
> for video acceleration?

It's required for H264 format HW acceleration. Free formats (VP8,9,AV1) are accelerated with free drivers (one of Intel driver is going through review now - https://bugzilla.redhat.com/show_bug.cgi?id=1942132).


Note You need to log in before you can comment on or make changes to this bug.