参考的是这篇文档:Build Instructions For Linux · obsproject/obs-studio Wiki · GitHub
在安装OBS dependencies时,
sudo apt install libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libx264-dev libcurl4-openssl-dev libmbedtls-dev libgl1-mesa-dev libjansson-dev libluajit-5.1-dev python3-dev libx11-dev libxcb-randr0-dev libxcb-shm0-dev libxcb-xinerama0-dev libxcb-composite0-dev libxcomposite-dev libxinerama-dev libxcb1-dev libx11-xcb-dev libxcb-xfixes0-dev swig libcmocka-dev libxss-dev libglvnd-dev libgles2-mesa libgles2-mesa-dev libwayland-dev librist-dev libsrt-openssl-dev libpci-dev libpipewire-0.3-dev libqrcodegencpp-dev
遇到报错:
E: 无法定位软件包 librist-dev
E: 无法定位软件包 libsrt-openssl-dev
E: 无法定位软件包 libpipewire-0.3-dev
E: 无法按照 glob ‘libpipewire-0.3-dev’ 找到任何软件包
这个是由于我的ubuntu系统版本是20.04(代号为focal),包管理器里找不到这三个包。
可以通过下面这个网站搜索,比如要搜素librist-dev
https://packages.ubuntu.com/search?keywords=librist-dev
也就是说,不支持focal版本,得升级ubuntu版本了。
补充:
1、rist全称Reliable Internet Stream Transport,srt全称Secure Reliable Transport UDP streaming library,这两个都是流媒体传输相关的。
2、
PipeWire is a new low-level multimedia framework. It aims to offer capture and playback for both audio and video with minimal latency and support for PulseAudio, JACK, ALSA and GStreamer-based applications.
The daemon based on the framework can be configured to be both an audio server (with PulseAudio and JACK features) and a video capture server.