Closed worldofgeese closed 1 year ago
@worldofgeese. Some time ago, I had success with video HW acceleration on an Intel NUC. The codecs bundle will not do it alone. You need the Firefox config and some settings via about:config.
See the HWAccel folder. Optionally, adjust the AV1 setting matching your Intel graphics AV1 capability { false or true }.
There's another about:config setting for NVIDIA graphics (codecs-cuda). Basically, all the settings mentioned above including this one.
Required, for HW acceleration to work using NVIDIA driver 470 (or newer series).
widget.dmabuf.force-enabled true
My experience is this still isn't working
I've applied @marioroy's changes by copying firefox/firefox.conf
to $HOME/.config/firefox/firefox.conf
.
The following flags are set to true:
a. media.ffmpeg.vaapi.enabled true b. media.ffvpx.enabled false c. media.av1.enabled false
I'm testing with the enhanced-h264ify extension set to h264-only and receive this error on YouTube
The Fedora team has put out these tips which I've confirmed are all set appropriately
Output of vainfo
Trying display: wayland
libva info: VA-API version 1.18.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.18 (libva 2.18.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.5 ()
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileNone : VAEntrypointStats
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointFEI
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointFEI
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointFEI
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointFEI
VAProfileHEVCMain : VAEntrypointEncSliceLP
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointEncSliceLP
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile1 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileVP9Profile3 : VAEntrypointVLD
VAProfileHEVCMain12 : VAEntrypointVLD
VAProfileHEVCMain12 : VAEntrypointEncSlice
VAProfileHEVCMain422_10 : VAEntrypointVLD
VAProfileHEVCMain422_10 : VAEntrypointEncSlice
VAProfileHEVCMain422_12 : VAEntrypointVLD
VAProfileHEVCMain422_12 : VAEntrypointEncSlice
VAProfileHEVCMain444 : VAEntrypointVLD
VAProfileHEVCMain444 : VAEntrypointEncSliceLP
VAProfileHEVCMain444_10 : VAEntrypointVLD
VAProfileHEVCMain444_10 : VAEntrypointEncSliceLP
VAProfileHEVCMain444_12 : VAEntrypointVLD
VAProfileHEVCSccMain : VAEntrypointVLD
VAProfileHEVCSccMain : VAEntrypointEncSliceLP
VAProfileHEVCSccMain10 : VAEntrypointVLD
VAProfileHEVCSccMain10 : VAEntrypointEncSliceLP
VAProfileHEVCSccMain444 : VAEntrypointVLD
VAProfileHEVCSccMain444 : VAEntrypointEncSliceLP
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileHEVCSccMain444_10 : VAEntrypointVLD
VAProfileHEVCSccMain444_10 : VAEntrypointEncSliceLP
ffplay https://www.w3schools.com/html/mov_bbb.mp4
works in terminal?@paulcarroty both of those worked!
So the x264 decoding actually works, guess the problem happened with h264ify extension.
If I try to open mp4 , streaming or from my disk, firefox give me this error:
firefox [Child 112732, MediaDecoderStateMachine #1] WARNING: Decoder=558b1082a400 Decode error: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) - virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<58>::DoDecode(mozilla::MediaRawData , uint8_t , int, bool *, MediaDataDecoder::DecodedData &): avcodec_send_packet error: Invalid argument: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachineBase.cpp:164 [Child 112732, MediaDecoderStateMachine #1] WARNING: Decoder=558b1082a400 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachineBase.cpp:164
ffplay or mpv work fine with the same link or file from disk This happens after update 3rd-Party Repository: clearfraction to vs. 38680 and I have not h264ify extension. The problem seems: "Error no decoder found for audio/mp4a-latm" (ffmpeg)
sudo swupd 3rd-party bundle-list Password:
3rd-Party Repository: clearfraction
Installed bundles:
Total: 3
Hmm, it's getting more interesting. Can you test the codecs
bundle too?
Maybe Update to 111.0.1 did it or ffmpeg-cuda v6 bump.
With codecs bundle trying to open the link https://www.w3schools.com/html/mov_bbb.mp4 I get the same error:
firefox [Child 17050, MediaDecoderStateMachine #1] WARNING: Decoder=55e1d5058500 Decode error: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) - virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<58>::DoDecode(mozilla::MediaRawData , uint8_t , int, bool *, MediaDataDecoder::DecodedData &): avcodec_send_packet error: Invalid argument: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachineBase.cpp:164 [Child 17050, MediaDecoderStateMachine #1] WARNING: Decoder=55e1d5058500 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachineBase.cpp:164
I had firefox 111.0.1 with v.38320 and all worked... probably ffmpeg v6 problem.
https://bugzilla.mozilla.org/show_bug.cgi?id=1819374, fixed in Firefox 112.
Workarounds: update to Firefox Beta or use mpv + yt-dlp
for HTML5 video.
Fixed in CL 38750.
Steps I've taken:
I've rebooted my machine twice and done a full profile wipe then repeated the steps above.
11th Gen Intel® Core™ i5-1135G7, GNOME on X11