[Snap] AV1 HW acceleration unsupported on Firefox Ubuntu 22.10 snap
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
People
(Reporter: 123321artyom, Unassigned)
References
(Blocks 2 open bugs)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0
Steps to reproduce:
(All steps are gone through on Intel Tiger Lake i7-1165G7, which supports AV1)
- Install Firefox Beta snap package on Ubuntu 22.10
- Launch with (or without, does not matter) MOZ_LOG="PlatformDecoderModule:5" MOZ_DISABLE_RDD_SANDBOX=1
- Go to https://bitmovin.com/demos/av1 and play the video
Actual results:
libdav1d was used
if you examine the log, the following lines can be seen:
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: codec av1 : Alliance for Open Media AV1
libva info: VA-API version 1.7.0
libva info: Trying to open /snap/firefox/2240/gnome-platform/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x42475241 -> argb.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x52474241 -> abgr.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x42475258 -> 0rgb.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x52474258 -> 0bgr.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x30335241 -> unknown.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x30334241 -> unknown.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x30335258 -> x2rgb10le.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x30334258 -> unknown.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x36314752 -> unknown.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x56555941 -> unknown.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x30303859 -> gray.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x3132564e -> unknown.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x32595559 -> yuyv422.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x50313134 -> yuv411p.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x48323234 -> yuv422p.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x56323234 -> yuv440p.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x50343434 -> yuv444p.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x33434d49 -> unknown.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x30313259 -> y210le.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x36313259 -> unknown.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x30313459 -> xv30le.
[AVHWDeviceContext @ 0x7fbf29c6ad00] Format 0x36313459 -> unknown.
[AVHWDeviceContext @ 0x7fbf29c6ad00] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ().
[AVHWDeviceContext @ 0x7fbf29c6ad00] Driver not found in known nonstandard list, using standard behaviour.
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::GetAcceleratedFormats()
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Profile H264Main:
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: codec h264 format nv12 3 12
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: codec h264 format nv12 3 12
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Profile H264High:
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: codec h264 format nv12 3 12
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: codec h264 format nv12 3 12
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Profile H264ConstrainedBaseline:
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: codec h264 format nv12 3 12
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: codec h264 format nv12 3 12
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Profile VP9Profile0:
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: codec vp9 format nv12 3 12
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Profile VP9Profile2:
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: codec vp9 format p010le 3 15
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: vp9 target pixel format is not supported!
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Supported accelerated formats:
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: h264
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: vp9
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Format av1 is not accelerated
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 514776: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: codec libdav1d : dav1d AV1 decoder by VideoLAN
Expected results:
VAAPI should have been used since chipset supports native AV1 playback
Comment 1•2 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.
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Looks like snap environment is missing some components. Please try mozilla binaries directly:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_binaries
If it doesn't work please attach the log here.
Thanks.
Reporter | ||
Comment 3•2 years ago
|
||
(In reply to Martin Stránský [:stransky] (ni? me) from comment #2)
Looks like snap environment is missing some components. Please try mozilla binaries directly:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_binaries
If it doesn't work please attach the log here.
Thanks.
Thanks for the suggestion.
The tarball firefox build at least tries to use va-api (ffmpeg on ubuntu is old and unpatched, thus crashes), then falls back to libdav1d. It seems that your guess about an issue with the snap environment is right.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
Isn't it just a dupe of bug 1760941 and we are just waiting on core22
usage?
Comment 5•2 years ago
|
||
Martin, I have not followed closely the situation regarding how we perform AV1 hardware decoding, but it sounds like a dupe of 1760941, what's your opinion ?
Comment 6•2 years ago
|
||
Yes, may be the same.
Description
•