Flussonic Media Server Documentation

The Publication from OBS Studio to Flussonic Media Server

Publication 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 {
  url publish://;
}

To apply the settings, run:

/etc/init.d/flussonic reload

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

Configuring publishing to a static stream via the web UI

You can add the 'url publish://' data source to a stream via the web interface.

To create a static stream with a published source:

  1. In the admin interface, create a stream: Media > Stream > add.
  2. Enter a Stream name.
  3. Specify publish:// as the Source URL. Alternatively, save the stream, go to the Input tab, and click accept under Published input.
  4. Click create to save the stream. OBS Studio

To delete a published source from stream settings:

  1. Click the stream in Media and go to the Input tab.
  2. Under Published input, click ignore. Alternatively, click remove next to the URL entry that contains the publish:// source. Media Server
  3. Click save to apply the settings.

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.

Publication by dynamic name in Flussonic Media Server

If you don't know in advance what name the published stream will have, or if you expect many streams, you can specify the publication prefix.

Setting up publishing via the configuration file

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

live chats {
}

To apply the settings, run:

/etc/init.d/flussonic reload

Read more in Publishing video to the server by dynamic name.

Setting up publishing with a dynamic name via the web interface

You can use the web interface to create a publishing location (a prefix for publication under dynamic names.)

  1. Go to the Media tab: publish-media
  2. Find the Publish locations section and click add: Publishing video to the server
  3. Enter a prefix and save the configuration. The prefix must be unique and may contain Latin characters, digits, underscores (_), and slashes (/). It is strongly recommended that you avoid using other characters, because client applications might not allow their use. (Flussonic itself has no restrictions on naming prefixes.) Publishing video to the server

Broadcast dynamic stream of 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".

Important! 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).