OBS (Open Broadcast Software) Studio - capturing, compositing, encoding, recording and streaming

本文详细介绍了如何在Ubuntu16.04及更高版本上安装OBSStudio,包括安装必要的FFmpeg库,以及通过PPA源进行OBSStudio的安装。此外,还提供了OBSStudio的基本配置步骤,如自动配置向导、视频设置、流信息设置等,帮助用户快速开始视频录制和直播。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

OBS (Open Broadcast Software) Studio - capturing, compositing, encoding, recording and streaming video content

https://obsproject.com/

Free and open source software for video recording and live streaming. Download and start streaming quickly and easily on Windows, Mac or Linux.
Open Broadcaster Software 是一个免费的开源的视频录制和视频实时流软件。在 Windows、Mac 或 Linux 上快速轻松地下载并开始流式传输。

OBS Studio is software designed for capturing, compositing, encoding, recording, and streaming video content, efficiently.
OBS Studio 是专为捕获、合成、编码、录制和流式传输视频内容而设计的软件。

OBS Studio - Free and open source software for live streaming and screen recording.
OBS Studio - 用于直播和屏幕录制的免费开源软件。

1. Download OBS Studio

The Linux release is available officially for Ubuntu 14.04 and newer. FFmpeg is required.

For Ubuntu 14.04 LTS, FFmpeg is not officially included so you will need a specific PPA.

sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next
sudo apt-get update && sudo apt-get install ffmpeg
Personal Package Archives,PPA

For Ubuntu 15.04 and following versions, FFmpeg is officially included:

sudo apt-get install ffmpeg

After installing FFmpeg, install OBS Studio using:

sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update && sudo apt-get install obs-studio
[setupvars.sh] OpenVINO environment initialized
strong@foreverstrong:~$ sudo apt-get install ffmpeg
[sudo] password for strong: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ffmpeg is already the newest version (7:2.8.15-0ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 284 not upgraded.
strong@foreverstrong:~$ 
strong@foreverstrong:~$ sudo add-apt-repository ppa:obsproject/obs-studio
 Latest stable release of OBS Studio
 More info: https://launchpad.net/~obsproject/+archive/ubuntu/obs-studio
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp1ow_9sp9/secring.gpg' created
gpg: keyring `/tmp/tmp1ow_9sp9/pubring.gpg' created
gpg: requesting key F425E228 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp1ow_9sp9/trustdb.gpg: trustdb created
gpg: key F425E228: public key "Launchpad PPA for obsproject" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
strong@foreverstrong:~$ 
strong@foreverstrong:~$ sudo apt-get update
Hit:1 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                                                 
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease                              
Hit:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease      
Get:4 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial InRelease [18.0 kB]
Hit:5 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease                
Get:6 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial/main amd64 Packages [836 B]
Get:7 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial/main i386 Packages [832 B]
Get:8 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial/main Translation-en [160 B]
Fetched 19.9 kB in 3s (5,336 B/s)       
Reading package lists... Done
strong@foreverstrong:~$ 
strong@foreverstrong:~$ sudo apt-get install obs-studio
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libfdk-aac0 libluajit-5.1-2 libluajit-5.1-common libxcb-xinerama0
The following NEW packages will be installed:
  libfdk-aac0 libluajit-5.1-2 libluajit-5.1-common libxcb-xinerama0 obs-studio
0 upgraded, 5 newly installed, 0 to remove and 284 not upgraded.
Need to get 3,981 kB of archives.
After this operation, 14.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial/multiverse amd64 libfdk-aac0 amd64 0.1.3+20140816-2 [340 kB]
Get:2 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial/main amd64 obs-studio amd64 23.1.0-0obsproject2~xenial [3,395 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 libluajit-5.1-common all 2.0.4+dfsg-1 [35.3 kB]                                                  
Get:4 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 libluajit-5.1-2 amd64 2.0.4+dfsg-1 [205 kB]
Get:5 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libxcb-xinerama0 amd64 1.11.1-1ubuntu1 [5,204 B]
Fetched 3,981 kB in 42s (94.4 kB/s)         
Selecting previously unselected package libfdk-aac0:amd64.
(Reading database ... 264638 files and directories currently installed.)
Preparing to unpack .../libfdk-aac0_0.1.3+20140816-2_amd64.deb ...
Unpacking libfdk-aac0:amd64 (0.1.3+20140816-2) ...
Selecting previously unselected package libluajit-5.1-common.
Preparing to unpack .../libluajit-5.1-common_2.0.4+dfsg-1_all.deb ...
Unpacking libluajit-5.1-common (2.0.4+dfsg-1) ...
Selecting previously unselected package libluajit-5.1-2:amd64.
Preparing to unpack .../libluajit-5.1-2_2.0.4+dfsg-1_amd64.deb ...
Unpacking libluajit-5.1-2:amd64 (2.0.4+dfsg-1) ...
Selecting previously unselected package libxcb-xinerama0:amd64.
Preparing to unpack .../libxcb-xinerama0_1.11.1-1ubuntu1_amd64.deb ...
Unpacking libxcb-xinerama0:amd64 (1.11.1-1ubuntu1) ...
Selecting previously unselected package obs-studio.
Preparing to unpack .../obs-studio_23.1.0-0obsproject2~xenial_amd64.deb ...
Unpacking obs-studio (23.1.0-0obsproject2~xenial) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /opt/intel/common/mdf/lib64/igfxcmrt64.so is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-x11.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-drm.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libmfxhw64.so.1 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libmfx.so.1 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-glx.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libigdgmm.so.1 is not a symbolic link

Processing triggers for hicolor-icon-theme (0.15-0ubuntu1.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libfdk-aac0:amd64 (0.1.3+20140816-2) ...
Setting up libluajit-5.1-common (2.0.4+dfsg-1) ...
Setting up libluajit-5.1-2:amd64 (2.0.4+dfsg-1) ...
Setting up libxcb-xinerama0:amd64 (1.11.1-1ubuntu1) ...
Setting up obs-studio (23.1.0-0obsproject2~xenial) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /opt/intel/common/mdf/lib64/igfxcmrt64.so is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-x11.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-drm.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libmfxhw64.so.1 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libmfx.so.1 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libva-glx.so.2 is not a symbolic link

/sbin/ldconfig.real: /opt/intel/mediasdk/lib64/libigdgmm.so.1 is not a symbolic link

strong@foreverstrong:~$ 

2. setting

2.1 Auto-Configuration Wizard

在这里插入图片描述

2.2 Optimize for streaming, recording is secondary

在这里插入图片描述

2.3 Video Settings

在这里插入图片描述

2.4 Stream Information

Service: Custom…
Server: rtmp://192.168.3.37:1935/stream
Stream Key: yongqiang

在这里插入图片描述

在这里插入图片描述

2.5 Final Results

在这里插入图片描述

3. Lock to Launcher

strong@foreverstrong:~$ obs
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
info: CPU Name: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
info: CPU Speed: 4098.427MHz
info: Physical Cores: 4, Logical Cores: 8
info: Physical Memory: 15985MB Total, 14372MB Free
info: Kernel Version: Linux 4.15.0-39-generic
info: Distribution: "Ubuntu" "16.04"
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.19.6
info: Portable mode: false
......

在这里插入图片描述

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Yongqiang Cheng

梦想不是浮躁,而是沉淀和积累。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值