Rtmp Server

In this post we will show how Niostreamer can be installed in Windows. We will setup RTMP server, push MP4 video using ffmpeg and play in with ffplay.

Niostreamer is provided for multiple operating systems. It's cross platform. For now, the native package for Windows is in progress, so we will use Docker to run Niostreamer on Windows.

SRS is a simple, high efficiency and realtime video server, supports RTMP/WebRTC/HLS/HTTP-FLV/SRT/GB28181. Rtsp Simple Server ⭐ 1,305 ready-to-use RTSP / RTMP / HLS server and proxy that allows to read, publish and proxy video and audio streams Pingos ⭐ 640. RTMP uses a persistent (continuous) TCP connection to stream fragments of audio and video from a source to a single destination. There are two main use cases for RTMP. First is using RTMP to transmit video between an encoder and server. This is known as first-mile delivery, or video contribution. An RTMP server is the technical setup that is used to receive an RTMP data stream via RTMP ingest. Basically, an RTMP server is equipped with the necessary tools to receive and decode video files that are being transported from an encoder or other source.

First, Docker for desktop should be installed from official website

Download the Installer from here: https://desktop.docker.com/win/stable/amd64/Docker Desktop Installer.exe

Follow the steps provided by insteller to prepare Docker for Desktop:

Restart Windows after installation completed:

Create docker-compose.yml with the following content:

Run

Rtmp Server

You will see message in logs:

Register new account in https://niostreamer.com and open this link in you browser

You will see in logs that instance has been registered:

And then you will see the new instance in web panel as well:

Now Niostreamer is ready to accept incoming connections from RTMP clients.

Rtmp Server Hosting

Create RTMP virtual host

In instance overview page press 'Add Virtual Host' button

Rtmp Server Windows

Enter virtual host and port and press 'Save'

To start virtual host the listener interface must be created. Open Virtual host page and press 'Add Listener'

Enter listening address and port and press 'Add'

Wait a little bit until instance is syncronized with control panel. You'll see the virtual host is started in streamer logs:

Niostreamer has opened TCP port 1935 and is ready to listen for incoming connections.

As a test stream we will use command line utility ffmpeg. We will try to stream popular video sample used to test video streams called 'Big Buck Bunny'.

Rtmp Server Aws

Start the command from your machine:

Streaming is started now. niostreamer started to receive audio video data. Let's play incoming stream using ffplay utility:

You will see video window playing the target sample.

Niostreamer is a fully functional streaming server. It can convert incoming RTMP streams to other ones, i.e. HLS.

In next articles we will show how to stream RTMP to niostreamer and the share it as HLS to other players.

Enjoy!