Fedora 開啓視頻的硬件解碼功能

Fedora 37 及之後的發行版,如果使用 AMD 顯卡,請首先添加 RPM Fusion 軟件倉庫(https://rpmfusion.org/)。

sudo dnf update

sudo dnf install ffmpeg-free libavcodec-freeworld mesa-va-drivers-freeworld.

Configure VA-API Video decoding on AMD

Accelerated video decoding works well on AMD as free drivers are available. Free video formats (e.g. VP8/VP9/AV1) should be accelerated out of the box. You can add support for H.264 VA-API decode by these steps:

  • Install ffmpeg-free from Fedora, install libavcodec-freeworld and mesa-va-drivers-freeworld. See RPM Fusion howto (section Hardware codecs with AMD (mesa)) for instructions. It's needed for VA-API H.264 decoding.
  • Run vainfo on terminal to verify that VA-API works.
  • Restart browser.

Hardware codecs with AMD (mesa)

# Using the rpmfusion-free section This is needed since Fedora 37 and later... and mainly concern AMD hardware since NVIDIA hardware with nouveau doesn't work well

sudo dnf swap mesa-va-drivers mesa-va-drivers-freeworld

sudo dnf swap mesa-vdpau-drivers mesa-vdpau-drivers-freeworld

If using i686 compat libraries (for steam or alikes):

sudo dnf swap mesa-va-drivers.i686 mesa-va-drivers-freeworld.i686

sudo dnf swap mesa-vdpau-drivers.i686 mesa-vdpau-drivers-freeworld.i686

查看 AMD GPU 的使用率。

sudo dnf install radeontop

radeontop

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章