obs自定义编码设置
by Wesley McCann
韦斯利·麦肯(Wesley McCann)
通过7个步骤设置OBS进行实时编码 (Setting up OBS for Live Coding in 7 Steps)
Twitch TV is a popular live-streaming service. You traditionally used Twitch to stream yourself playing video games, but recently Twitch has started encouraging people to stream themselves coding.
Twitch TV是一种流行的实时流媒体服务。 传统上,您使用Twitch来播放视频游戏,但是最近Twitch开始鼓励人们自己编码。
While typical video game live streaming configurations will work for live coding, they are overkill. When streaming live coding, you can get away with significantly lower settings, making it much easier for people with a slower connection to watch your live stream.
尽管典型的视频游戏直播流配置可用于直播编码,但它们过大了。 在流式直播编码时,您可以省去很多较低的设置,从而使连接速度较慢的人更容易观看直播。
This article will show you how to configure the popular OBS (Open Broadcast Software) to keep your stream’s quality high while minimizing the bandwidth requirements for your viewers.
本文将向您展示如何配置流行的OBS(开放广播软件),以保持流的高质量,同时最大程度地减少观众的带宽需求。
Note: In order to keep this article reasonably short, we will only show screen shots from the Windows version of OBS. Note that most of should be pretty much the same on Mac and Linux.
注意:为了使本文简短,我们将仅显示Windows版本的OBS的屏幕截图。 请注意,在Mac和Linux上,大多数功能应该几乎相同。
第一步 (First Steps)
You will need to download and install OBS for your platform. The OBS website is located here. I prefer OBS studio (which is the only option for non-windows users), as it is the newest version currently being developed, and appears to use bandwidth better.
您将需要为您的平台下载并安装OBS。 OBS网站位于此处 。 我更喜欢OBS Studio(这是非Windows用户的唯一选择),因为它是当前正在开发的最新版本,并且似乎可以更好地使用带宽。
- Once installed you will want to start by setting up the scene. First you will want to make sure there is a scene inside of the left most box. This should be there by default, however if it is not just right click inside the box and select “Add -> Scene”. 安装完成后,您将要开始设置场景。 首先,您需要确保最左侧的框内有一个场景。 默认情况下,它应该存在于此,但是,如果不只是在框内单击鼠标右键,然后选择“添加->场景”。
3. Next you will want to capture your entire screen or just a window. The decision is up to you. I personally like to capture my full screen but I will show you both options below.
3.接下来,您将要捕获整个屏幕或仅一个窗口。 该决定由您决定。 我个人喜欢全屏显示,但下面将向您显示这两个选项。
4. Once you have this set up you will want to get your microphone working so you can communicate with your audience. On windows you will want to click on the settings button > audio tab. Once here you will want to find “Mic/Auxiliary Audio Device” and use the drop down to select your input device.
4.完成此设置后,您将需要使麦克风正常工作,以便与听众进行交流。 在Windows上,您需要单击设置按钮>音频选项卡。 到这里后,您将要找到“麦克风/辅助音频设备”,然后使用下拉菜单选择您的输入设备。
5. Now that you have the scene set up to capture your display and your microphone you need to set up a streaming service. To do this, open your settings > Stream tab. Once there, select:Stream Type: Streaming ServicesService: TwitchServer: Choose the server closest to youStream key: The stream key provided by Twitch
5.现在,您已经设置了场景来捕获显示器和麦克风,您需要设置流服务。 为此,请打开设置>流标签。 一旦出现,SELEC 吨: 流ŤYPE:流SERVIC 上课 SERV冰:蠢CH 丝氨酸版本:选择最靠近所述服务器至y 欧 流密钥:由抽搐提供的流密钥
6. Next you will want to change output settings. You can do this by going to settings > output. From here you will want to select:Output Mode: AdvancedBe on the “Streaming Tab”Bitrate: No higher than 1200. Try to match your upload speed. For example my upload speed is usually between 800Kbps-900Kbps. I have set my bitrate to 700.Keyframe Interval: 2 secondsUser CBR: CheckCPU Usage: Veryfast. This is the recommended value if you are unsure of your hardware.All other settings leave set to default.
6.接下来,您将要更改输出设置。 您可以转到设置>输出 。 在这里,您将要选择: 输出代码:AdvancedBe在“ Streaming Tab ” 比特率 :不高于1200。尝试匹配您的上传速度。 例如,我的上传速度通常在800Kbps-900Kbps之间。 我有我的比特率设置为70 0 关键帧国米 VAL:2塞康DS 用户 CBR:车CK CPU我们年龄:Veryfast。 如果不确定您的努力程度,这是建议值。 所有其他设置保留默认值 。
7. Finally, you will want to check your frames per second (FPS) of your stream. Not properly configuring your FPS is probably the biggest way to waste of bandwidth when live coding. Navigate to settings > video. Once there you will want to click the dropdown “Common FPS Values” and select “Integer FPS Values”. In the input box that shows up change the 30 to 15. 15 FPS should be fine for live coding.
7.最后,您将要检查流的每秒帧数(FPS)。 实时编码时,未正确配置FPS可能是浪费带宽的最大方法。 导航到设置>视频。 到达那里后,您将要单击下拉菜单“ Common FPS Values”,然后选择“ Integer FPS Values”。 在显示的输入框中,将30更改为15。15FPS对于实时编码应该没问题。
That should be all you need to do to set up OBS to begin live coding!
那应该是设置OBS以开始实时编码所需的一切!
There are a few more things that you may want to do such as capture output audio to play music on stream. I will write another article about this very soon with Windows- and Mac-specific GIFs.
您可能还需要做几件事,例如捕获输出音频以在流中播放音乐。 我将很快用Windows和Mac专用的GIF撰写另一篇有关此的文章。
If you have any questions, feel free to message me on Gitter or tweet at me at @septimus98.
如果您有任何疑问,请随时在Gitter上给我发消息,或通过@ septimus98向我发送推文。
翻译自: https://www.freecodecamp.org/news/setting-up-obs-for-live-coding-7-steps-99b8986e7249/
obs自定义编码设置