Enable VA-API support for firefox

This commit is contained in:
rydesun 2020-11-11 18:20:45 +08:00
parent 6853b85762
commit 67fc425793
2 changed files with 12 additions and 0 deletions

View file

@ -23,6 +23,8 @@ export XMODIFIERS=@im=fcitx
export QT_QPA_PLATFORMTHEME=qt5ct
export BROWSER=firefox
# Enable VA-API support for firefox
export MOZ_X11_EGL=1
# swap Caps_Lock and Escape
setxkbmap -option caps:swapescape

View file

@ -46,3 +46,13 @@ user_pref("media.peerconnection.enabled", false);
/* API
* 注意: 需要同时禁止WebRTC */
user_pref("media.navigator.enabled", false);
/*==== 硬件视频加速 ====*/
/* 开启WebRender */
user_pref("gfx.webrender.all", true);
/* 使用VA-API */
user_pref("media.ffmpeg.vaapi.enabled", true);
/* 禁用firefox内置的VP8/VP9解码 */
user_pref("media.ffvpx.enabled", false);
/* 显卡不支持AV1解码 */
user_pref("media.av1.enabled", false);