Comment 33 for bug 1964547

Revision history for this message
In , Steindaimar (steindaimar) wrote :

> Can confirm this on Manjaro Linux: I believe I was updated to Firefox 98 yesterday, ever since I'm unable to play video on any website, sometimes it works briefly but playback lags and stops to the point where it's unplayable. The issue goes away after disabling "media.ffmpeg.vaapi.enabled" in "about:config", might try disabling the sandbox feature as a workaround to keep video acceleration.

Can confirm this happening, specially with Twitch, as it constantly keeps crashing with Error #3000. Other sites work normally on my experience and disabling `media.ffmpeg.vaapi.enabled` does solve the problem, but yeah, no luck with VA-API in the current state.

`MOZ_DISABLE_RDD_SANDBOX=1` does not solve the issue for me, at least using the Flatpak version of Firefox on Wayland.

Using `MOZ_LOG="PlatformDecoderModule:5"` I get:
`[Child 336: Main Thread]: D/PlatformDecoderModule FFMPEG: VA-API FFmpeg is disabled by platform`

But when I try to play a video the logs seem to treat like VA-API is working correctly in the beginning:
```
[RDD 490: MediaPDecoder #2]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 490: MediaPDecoder #2]: D/PlatformDecoderModule FFVPX: Format vp9 is accelerated
[RDD 490: MediaPDecoder #2]: D/PlatformDecoderModule FFVPX: codec vp9 : Google VP9
[Child 410: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7f8448a792e0] ::PrepareTrimmers: sample[0,21000] no trimming information
[RDD 490: MediaPDecoder #1]: D/PlatformDecoderModule OpusDataDecoder[7fbcd8a88800] ::Decode: Opus decoder skipping 312 of 960 frames
libva info: VA-API version 1.12.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
[Child 410: MediaPDecoder #2]: V/PlatformDecoderModule AudioTrimmer[7f8448a792e0] ::HandleDecodedResult: sample[0,21000] (decoded[0,13500] no trimming needed
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
```

But I eventually get this error:
`[RDD 490: MediaPDecoder #1]: D/PlatformDecoderModule failed to create texture over DMABuf memory!`

Which leads to these messages and after that it falls back to regular FFmpeg decoder:

```
[RDD 490: MediaPDecoder #1]: D/PlatformDecoderModule VideoFrameSurfaceVAAPI: deleting dmabuf surface UID = 1
[RDD 490: MediaPDecoder #1]: D/PlatformDecoderModule VideoFrameSurfaceVAAPI: VAAPI releasing dmabuf surface UID = 1
```