Connect an RTMP Encoder to Wowza Streaming EngineDecember 12, 2018
The Wowza Streaming Engine™ is a flexible media server software that allows you to use your own encoder to integrate live video streaming into your app or service. Using an H.264 encoder that supports Real-Time Messaging Protocol (RTMP), you can add live streaming into any workflow, using the equipment you already have.In this video, we’ll show you how to use Open Broadcaster Software (OBS) Studio, a free and open-source streaming and recording solution, as the source for an RTMP-based live video stream to Wowza Streaming Engine.
To learn more about live video streaming with your RTMP encoder and Wowza Streaming Engine, see our technical documentation.
Full Video Transcript:
Let’s look at how to connect an RTMP encoder to Wowza Streaming Engine. We’ll be using OBS, or Open Broadcast Software, as the RTMP encoder. It’s a free tool any broadcaster can download as an encoder for live video broadcasts.
Wowza Streaming Engine will be the media server, and for this demo we’ll use a default installation on a local computer. For fun, we’ll also use Wowza Player to stream to a webpage via HLS.
Let’s get started in Wowza Streaming Engine.
Now, for security, the first thing we need to do is go under Server, and select the option Source Authentication.
Here we’ll add a source name and password for RTMP and RTSP source connections. Once we’re finished, we can go over to Applications, and select the existing Live Default.
Using this default application, everything should be ready to go, but in case you made some changes, there are a few things we’ll check. First, make sure all playback types are checked. You can use the Edit button to change this. Here you’ll find all the streaming protocols available to package your live stream. At the very least, it would be good to have RTMP and HLS checked, since those are what we’re going to be using.
Under Source Security, we’ll also want to be sure RTMP sources require password authentication, and that there are no client restrictions enabled.
Under Playback Security, we’ll also want to make sure that no client restrictions are enabled. In all cases, we can use the Edit button to make changes.
Now, once we know everything’s ready to go, go over to Sources Live. There are a few quick selects for many of the popular encoders and cameras, but really you just need to know the host server, host port and application. Now, usually this information is formatted like this, with an additional stream name, and stream source authentication information that’s added later. However, in some cases, you may need to add source authentication into the URL depending on your encoder.
Now that the media server is ready, let’s open up OBS.
For this demo, I’ll go straight to Settings, and make a few changes.
Under the Video Options, I’ll switch everything to 720p, since I’ll be using the webcam on my computer, which only broadcasts at 720p, and then I’ll go to the Stream Options, and select Stream Type, Custom Streaming Server.
Now, here I can enter the URL and stream key, the stream key being the name I want for my stream, and I’ll use Authentication, and then enter the source authentication we created earlier. That should be all I need to do when it comes to the settings in OBS.
Now, if you’ve never used OBS before, just go to Sources at the bottom, and using the plus, add a video capture device, and then choose to create a new one. I’ll be selecting my FaceTime HD camera, and once I know it’s working I’ll Okay out of the screen, and then Start Stream once I’m ready to go.
If everything’s running correctly, you’ll see indications of a Streaming Live below.
Now, back in Wowza Streaming Engine, we can go under Incoming Stream, and see that it’s active. We can even go into that stream, and use the test player to see the stream running through different streaming protocols.
Be sure you have the plug-ins installed on your browser in order to see these protocols. Some protocols have more latency than others, and remember, nothing’s been tuned yet. We’re running Wowza Streaming Engine as a default.
Now, if you want to see this running on a website, we can easily use Wowza Player from the interface. Wowza Player uses the HLS protocol: one of the streaming protocols Wowza Streaming Engine packages the stream into. Just launch the player builder, and once in the builder, play the Preview window to see the live-streaming video. To show this on a website, use Get Embed Code, and copy the code to the website.
I’ll implement this in WordPress as an example, but keep in mind you’ll need a static IP address configured correctly with your server in order to stream outside your network. We’re going to test this just locally using WordPress.
All right, well, that’s it for connecting an RTMP encoder to Wowza Streaming Engine. Thanks for watching!