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自定義編碼設置