obs-studio for ubuntu 21.04[基于git打包,支持本地wayland显示后端]
发表于 : 2021-04-07 19:35
看新闻发现obs-studio已经合并了一系列代码提交,开始支持本地wayland显示后端。忍不住git了一个下来打包,效果杠杠的。下面是测试步骤:
一、安装依赖文件
二、下载附件中打包好的软件包,并安装
三、设置系统环境
重启搞定
一、安装依赖文件
代码: 全选
sudo apt install libfdk-aac2 qtwayland5
代码: 全选
sudo dpkg -i libobs0_26.1.2+dfsg1-1-myubuntu_amd64.deb \
obs-plugins_26.1.2+dfsg1-1-myubuntu_amd64.deb \
obs-studio_26.1.2+dfsg1-1-myubuntu_amd64.deb
代码: 全选
# 修改gdm3配置文件,确保启用wayland
sed "s/^\\(WaylandEnable=\\).*/\\1true/" /etc/gdm3/custom.conf | sudo tee /etc/gdm3/custom.conf
# 添加环境变量
sudo tee /etc/profile.d/qtwayland5.sh >/dev/null << 'EOF'
# /etc/profile.d/qtwayland5.sh
#
# This sets the QT_QPA_PLATFORM variables on Wayland.
test "$XDG_SESSION_TYPE" = 'wayland' || return
if [ -z "$QT_QPA_PLATFORM" ]; then
export QT_QPA_PLATFORM=wayland
fi
EOF
# 给予权限
sudo chmod 0644 /etc/profile.d/qtwayland5.sh
sudo chown root:root /etc/profile.d/qtwayland5.sh