Skip to content

Publishing from OBS Studio to Flussonic Media Server

Publishing from OBS Studio to Flussonic Media Server

Using Open Broadcaster Software (OBS) you can publish a stream from your computer to Flussonic Media Server. This can be used for streaming games, webinars and any other broadcasts from a computer to the Internet.

For example, you can stream to social networks.

Content:

Publishing to a static stream in Flussonic Media Server

Setting up publishing via the configuration file

In Flussonic Media Server, it's enough to create a stream and indicate that you allow the publication in it.

In the configuration file /etc/flussonic/flussonic.conf add the stream:

stream published {
  input publish://;
}

To apply the settings, run:

service flussonic reload

Read more in Publishing video to the server to a static stream.

Static streaming from OBS Studio

Download and install OBS Studio. Open the program and go to settings.

Open the menu Stream:

  • Stream Type: Custom Streaming Server
  • URL: rtmp://flussonic-ip/published
  • Stream Key: leave empty

Where published is the name of your stream.

Media Server

Click OK to save.

Publishing under a dynamic name in Flussonic Media Server

If a name of a publishing stream is not known in advance or you expect multiple streams, you can specify the publication prefix.

For more information, see: Publishing with a dynamic name.

Setting up publishing via the configuration file

In the configuration file /etc/flussonic/flussonic.conf add the stream:

template chats {
  prefix chats;
  input publish://;
}

To apply the settings, run:

service flussonic reload

Read more in Publishing with a dynamic name.

Broadcast dynamic stream from OBS Studio

Download and install OBS Studio. Open the program and go to settings.

Open the menu Stream:

  • Stream Type: Custom Streaming Server
  • URL: rtmp://flussonic-ip/chats/tempname
  • Stream Key: leave empty

Where chats is the name of the prefix. What comes after chats depends on the client. Flussonic Media Server does not know in advance what it will be.

Click OK to save the changes.

In the main OBS Studio window, click Start Streaming.

The broadcast has already started and you can watch it in the administrative interface of Flussonic Media Server. For now it's just a black screen. So stop the streaming and configure OBS Server.

Configuring OBS Studio

Open the OBS Studio's main window and create a scene. For example, "Stub", "Live", "Break", "End".

Warning

All the scenes and sources in OBS Studio are common and cannot have the same name. If you called a source "Live Broadcast", then you cannot call a scene the same name.

OBS Studio

In each scene you can add different sources of broadcast. A source can be a whole screen or a separate open window. For example, a running application, a browser or even a separate browser tab. At any place on the screen, you can display text, a media source or a stream from a webcam.

You can change the order of the sources by dragging them along the list or using the up and down arrow buttons.

The source that is located higher in the list will be a priority and will "hide" the ones below it.

You can turn on and off the sources during the broadcast.

Configuring OBS Studio

Example of setting display capture:

setting display

When the source is selected in the list, you see a red frame around it.

This is a bounding box that can be used to move sources when previewing.

You can enlarge or reduce the frame.

Hotkeys that are available when previewing to change the position and size of the source:

  • Press the "Ctrl", to disable the binding source/border.
  • Press the "Alt" and drag the bounding box to trim.
  • "Ctrl + Alt" — fit to fit the screen.
  • "Ctrl + S" — stretch to full screen.
  • "Ctrl + D" — to place on the center of the screen.
  • "Ctrl + R" — size/source position reset.

In the menu Mixer, you can adjust the volume of the connected audio channels.

In the menu Scene Transitions, you can choose how switching between scenes will work: by fade or cut (immediate switching).