Firefox video hardware acceleration doesn't work after upgrade ffmpeg. 14 March 2022, 20:59:54 Firefox video hardware acceleration doesn't work after upgrade ffmpeg.I have now these packages:jopeless@bosqueverde ~]$ pacman -Qs ffmpeglocal/ffmpeg 2:5.0-5 Complete solution to record, convert and stream audio and videolocal/ffmpeg4.4 4.4.1-4 Complete solution to record, convert and stream audio and videolocal/gst-libav 1.20.0-3 Multimedia graph framework - libav pluginI swith off video hardware acceleration and now I can play you tube videos.Can you give me any advise about how to set up correctly video acceleration or how to provide you more info?Thanks in advance.
Re: Firefox video hardware acceleration doesn't work after upgrade ffmpeg. Reply #1 – 14 March 2022, 21:35:52 I can't reproduce here. Any more details?Code: [Select]pacman -Qs ffmpeglocal/ffmpeg 2:5.0-5local/ffmpeg4.4 4.4.1-4local/firefox 98.0-1
Re: Firefox video hardware acceleration doesn't work after upgrade ffmpeg. Reply #2 – 15 March 2022, 19:10:03 Hello,I think I was wrong. The title should say: "Video hardware acceleration doesn't work after firefox upgrade."If I set "media.rdd-process.enabled" to false, the video acceleration works."media.ffmpeg.vaapi.enabled" is set to true. If I set this to false, the video works but then I am not sure if video hardware acceleration is also working. Am I wrong?As a sources of knowledge:https://wiki.archlinux.org/title/Firefox#Hardware_video_accelerationhttps://wiki.mozilla.org/Security/Sandbox/Process_modelAlthough all "media.rdd-*" are set to true, it seems that the hardware decoding is not allowed by Remote Data Decoder.I spent a long time installing drivers for my AMD system, and I have been cheking that I have also installed the necesary codecs.If I only disable "media.rdd-vpx.enable", according to archwiki, it doesn't work.Arcwiki also suggests to install firefox's extensions like h264ify or enhanced-h264ify to try to force youtube to send video coded with that algorithm. I think we need the video hardware acceleration working whatever codec the stream server uses.So, I believe this security layer of Mozilla is not working fine.Please, can any of you verify this?Thanks. Last Edit: 15 March 2022, 19:49:10 by jopeless
Re: Firefox video hardware acceleration doesn't work after upgrade ffmpeg. Reply #3 – 15 March 2022, 21:20:22 According to that wiki page:QuoteNote: As of Firefox 98, VA-API is blocked by RDD sandbox, but can be used by setting the environment variable MOZ_DISABLE_RDD_SANDBOX=1, although this is less secure.So enabling the media.rdd setting will stop VA-API from working on firefox 98. If you want to use vaapi (which you do for hardware acceleration), then you need to disable the media.rdd setting.