Showing questions for topic:

Hardware Video Decoding (VA-API) Blocked on AMD Stoney + Hainan Dual-GPU System — Arch Linux / Wayland

Hello Firefox Support Team/Forum I am writing to request guidance on a hardware video acceleration issue that I have been unable to resolve despite extensive troubleshoot… (Máis información)

Hello Firefox Support Team/Forum

I am writing to request guidance on a hardware video acceleration issue that I have been unable to resolve despite extensive troubleshooting. Firefox appears to be blocking VA-API hardware decoding on my system even though the VA-API stack is confirmed working at the system level. — SYSTEM SPECIFICATIONS — OS: Arch Linux (rolling), kernel 7.0.13-arch1-1 Desktop: Hyprland 0.55.4 (Wayland, DRM backend) CPU: AMD A9-9425 (2 cores, 3.1GHz, Excavator architecture) RAM: 8GB Firefox: installed via pacman (native, not Flatpak) Mesa: 26.1.3-arch1.2 GPU setup (dual): • card0 / renderD128: AMD Stoney R5 Graphics (iGPU) — VA-API confirmed working here • card1 / renderD129: AMD Hainan R5 M435 (dGPU) — used by Hyprland for display output — CONFIRMED WORKING AT SYSTEM LEVEL — Running ‘vainfo’ on the integrated GPU (renderD128) confirms the following profiles are available: VAProfileH264ConstrainedBaseline, VAProfileH264Main, VAProfileH264High (VLD + EncSlice) VAProfileHEVCMain, VAProfileHEVCMain10 (VLD) VAProfileMPEG2Simple, VAProfileMPEG2Main, VAProfileVC1 (VLD) VAProfileJPEGBaseline (VLD) MPV with ‘–hwdec=vaapi-copy’ successfully hardware-decodes H264 locally, confirmed by ‘nv12’ pixel format output and reduced CPU usage. radeontop monitoring card0 (stoney, bus 00) during Firefox video playback shows: • Graphics pipe: ~53% (compositing activity) • UVD row: absent / 0% (no hardware video decode activity) • Memory clock: near 0.00G This confirms Firefox is NOT using the hardware decoder despite VA-API being functional. — FIREFOX DECISION LOG (from about:support) — HARDWARE_VIDEO_DECODING: default available / user force_enabled H264_HW_DECODE: default available (no blocklist) HEVC_HW_DECODE: default available VP8_HW_DECODE: env blocklisted — FEATURE_FAILURE_VIDEO_DECODING_MISSING VP9_HW_DECODE: env blocklisted — FEATURE_FAILURE_VIDEO_DECODING_MISSING AV1_HW_DECODE: env blocklisted — FEATURE_FAILURE_VIDEO_DECODING_MISSING DMABUF_SURFACE_EXPORT: env blocked — FEATURE_FAILURE_BROKEN_DRIVER WEBRENDER_COMPOSITOR: env blocklisted — FEATURE_FAILURE_WEBRENDER_COMPOSITOR_DISABLED Note: VP8/VP9/AV1 being missing is expected and correct for this GPU generation. The concern is that H264, which IS in the vainfo profile list and shows as ‘available’ in the decision log, is still not being routed to the hardware decoder in practice. — ENVIRONMENT VARIABLES IN USE — MOZ_ENABLE_WAYLAND=1 LIBVA_DRIVER_NAME=radeonsi LIBVA_DRM_DEVICE=/dev/dri/renderD128 MOZ_DISABLE_RDD_SANDBOX=1 — about:config SETTINGS CURRENTLY SET — media.ffmpeg.vaapi.enabled = true media.hardware-video-decoding.force-enabled = true media.hardware-video-decoding-vulkan.enabled = false media.rdd-process.enabled = true — WHAT WAS TRIED — 1. Installed full Mesa stack: mesa, libva-mesa-driver, libva-utils, ffmpeg, vulkan-radeon (64-bit and 32-bit variants via multilib). 2. Set LIBVA_DRM_DEVICE=/dev/dri/renderD128 to hardcode VA-API to the stoney iGPU and prevent it from accidentally targeting the hainan dGPU (which fails Firefox’s internal VA-API test with FEATURE_FAILURE_VIDEO_DECODING_TEST_FAILED). 3. Enabled media.ffmpeg.vaapi.enabled and media.hardware-video-decoding.force-enabled in about:config. 4. Disabled MOZ_DISABLE_RDD_SANDBOX via both ~/.bash_profile and hl.env() in the Hyprland Lua config to allow Firefox’s RDD process to access /dev/dri/renderD128. 5. Installed enhancedH264ify extension with VP9 and AV1 blocking enabled. YouTube confirms H264 (avc1.64002a) is being served. Despite this, over 1100 frames out of ~4200 are dropped during 1080p60 playback. 6. Verified with radeontop -b 0 (stoney, bus 00) during active 1080p H264 playback: the UVD block shows no activity whatsoever, confirming the CPU is doing all decoding. 7. Tested with and without gfx.webrender.all = true. Enabling it caused severe visual corruption (texture artifacts, split UI elements), so it was reset to default. 8. Did NOT disable media.rdd-process.enabled (correctly kept at true, as RDD is the process Firefox uses for VA-API decoding). 9. Confirmed Firefox is installed via pacman (not Flatpak), so there is no Flatpak sandbox layer involved. — THE CORE QUESTION — Given that: • vainfo confirms H264 hardware decode is available on renderD128 • H264_HW_DECODE shows as ‘default available’ in Firefox’s own decision log with no blocklist entry • media.hardware-video-decoding.force-enabled is set to true • MOZ_DISABLE_RDD_SANDBOX=1 is set • LIBVA_DRM_DEVICE explicitly points to the correct render node • MPV successfully uses vaapi on the same system …why is Firefox’s RDD process still not routing H264 decoding through VA-API, and what additional steps or logs would help identify the specific internal failure point?

Any guidance on enabling verbose VA-API logging within Firefox’s RDD process, or any known issues with AMD Stoney + Hainan dual-GPU setups on Wayland that might explain the DMABUF_SURFACE_EXPORT FEATURE_FAILURE_BROKEN_DRIVER blocklist, would be greatly appreciated.

Thank you.

Open 3 19

FN + Play no longer playing videos on desktop.

For some reason since yesterday, my shortcut on my keyboard (FN+F7) is no longer playing or pausing videos on Firefox. It still works for everything else, so I feel I ma… (Máis información)

For some reason since yesterday, my shortcut on my keyboard (FN+F7) is no longer playing or pausing videos on Firefox. It still works for everything else, so I feel I may have accidentally done something to stop this from working. Any help would be mightily appreciated.

Open

Unstable live video

Using RUMBLE, The Alex Jones live video feed has become unstable. Drops in and out. Do you need to update software? I am going to have to stop using firefox.

Open

I"m getting Playback isn't supported on this device...

On a website I've been using for years to watch live streams on animals explore.org, I now am getting a screen saying 'Playback isn't supported on this device' but I'v… (Máis información)

On a website I've been using for years to watch live streams on animals explore.org, I now am getting a screen saying 'Playback isn't supported on this device' but I've not changed any original settings....please help.

https://explore.org/livecams/brown-bears/brooks-falls-brown-bears-low

Open 1

Keyboard media buttons no longer work (152.0.3)

Hi, after my firefox updated the media buttons from my keyboard only seem to work intermittently with it. At the moment they don't work when firefox is minimized, but yes… (Máis información)

Hi, after my firefox updated the media buttons from my keyboard only seem to work intermittently with it.

At the moment they don't work when firefox is minimized, but yesterday they didn't work when maximised either.

No problems in Chrome or local media players.

media.hardwaremediakeys.enabled is set to 'true' in about:config

I am currently listed as on version 152.0.3, 64 bit windows.

Open 10

youtube video will open but it will not start

Youtube videos will open but the red line that dances across the top of the page stops at some point and the video will not open. This is happening to all videos, I am re… (Máis información)

Youtube videos will open but the red line that dances across the top of the page stops at some point and the video will not open. This is happening to all videos, I am relying on Safari to conduct all my business. This annoying since I have never touched settings nor tweeked any buttons, this seems to be a choice of Firefox.

Vic

Open

"Video can’t be played because the file is corrupt" but video can be played using Chromium, MPV, and VLC.

Media resource could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) Details: virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<62… (Máis información)

Media resource could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) Details: virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<62>::DoDecode(mozilla::MediaRawData*, uint8_t*, int, bool*, mozilla::MediaDataDecoder::DecodedData&): avcodec_send_packet error: Unknown error occurred

Resolto 2 10

FireFox fails two sequential video mp4 links using basic html Video code as W3Schools.

HP INTEL LAPtop: Windows 11 Fails two sequential video mp4 links using basic html Video code Works in iphone firefox,safari,opera,PC Edge but NOT PC firefox. 1st … (Máis información)

HP INTEL LAPtop: Windows 11 Fails two sequential video mp4 links using basic html Video code

Works in iphone firefox,safari,opera,PC Edge but NOT PC firefox.

1st link good 2nd fails ERROR MSG no video with supported format and mime type found. Also had same problem in Windows 10 last year. This on an HTML 4.01 we site.

Open 1