Sign In
Sign In

How to Create a Streaming Server with OBS and Ubuntu

How to Create a Streaming Server with OBS and Ubuntu
JC Brian Refugia
Technical writer
Ubuntu
03.07.2024
Reading time: 3 min

An open-source streaming tool called Open Broadcasting Studio (OBS) enables you to make and share streams to prominent websites like YouTube, Facebook, Twitch, and DLive, as well as to a self-hosted stream server. To broadcast your content, this article shows you how to set up an OBS streaming server.

Here’s how to create a streaming server with OBS in Ubuntu.

Preparation for Installation

  • System running in Ubuntu with Desktop environment

  • Root access or user with sudo privilege

  • Minimum 4GB of RAM

  • Minimum of 2 Virtual CPUs

  • At least 80GB Storage

  • At least 3TB bandwidth

Installation of OBS Studio on Ubuntu

After all requirements are met, proceed with the creation of a streaming server with OBS.

  1. Login to the terminal. Add the obs-studio repository by running the command below.

sudo add-apt-repository ppa:obsproject/obs-studio
  1.  Update the server:

sudo apt update && apt upgrade -y
  1. Install the transcoding tool FFmpeg along with OBS Studio. Run the command below.

sudo apt install ffmpeg obs-studio -y

Configuring OBS for streaming

1. Use remote desktop software, such as VNC viewer or NoMachine, to connect to the Ubuntu server desktop. Login as a local user, not root. In this tutorial, VNC viewer will be used to connect. You can set up xfce and xrdp on Ubuntu using many guides online, for example, this one.

Image16

2. Once a successful login has been established, the desktop will appear on the homepage. A similar page will appear as seen below.

Image13

3. Open Application Finder and search for OBS Studio and click Launch.

Image5

4. The application will open same as below.

Image6

5. To modify some options, go to Settings on the right side of the bottom panel.

Image2

6. The main parameters that must be modified based on the requirement are the output, audio, and video settings.

Image10

7.  In the Output tab, streaming and recording output can be modified.

Image9

8. In the Audio tab, there are options to choose what audio to be used.

Image12

9. In the Video Tab, resolution can be adjusted based on the requirement of users.

Image11

10. On the Stream tab, go to Service and select what streaming platform will be used by dropping down the arrow key.

There are several options to choose from. The most popular are Youtube, Twitter and Twitch. In this tutorial, the platform to be used is Youtube. After choosing Youtube click on Use Stream Key. You can obtain the stream key following this OBS guide.    

Another platform is Twitch. For Twitch, The stream key can be found on the user Twitch account, here’s the link.

Once the key has been obtained, paste it on the Stream Key field same as below then click OK.

Image1

Note: Each streaming platform has different instructions on how to get the Streaming key.

11.  Lastly, start the streaming by going to Sources tab and adding stream video and audio source by clicking on +.

Image8

12.  There are multiple options to choose on what source needs to be used. In this case the Browser will be used.

Image3

13.. After choosing the browser, specify the URL of the streaming site, make sure that the stream is active.

Image14

14. That’s it. Click Start Streaming and the streaming will run.

Image15

Conclusion

In conclusion, Ubuntu and OBS can be used to create a stable and adaptable streaming server that offers excellent live streaming. With complete control over the setup, a user can attain professional-grade streaming capabilities by utilizing the power of OBS Studio and the stability of Ubuntu. This combination enables for comprehensive customization and optimization to meet individual demands, in addition to providing cost-effective streaming.

Ubuntu
03.07.2024
Reading time: 3 min

Do you have questions,
comments, or concerns?

Our professionals are available to assist you at any moment,
whether you need help or are just unsure of where to start
Email us