Tagged: nginx

Tweak your Windows Network Settings for NGINX

Tweak your Windows Network Settings for NGINX

If you already used nginx for your rtmp streams, you might have also encountered problems with network stability or framedrops. Chance is, if you use Windows in your setup, you can tweak your network settings and maybe gain enough network performance for a smooth and steady experience. To do this we have to change some settings in our registry: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AFD\Parameters] “DefaultSendWindow”=dword:00010000...

nginx-rtmp – Admin and Statistics page

A few people asked me where I got the little html page from, which you can see in some of my nginx Videos. It is actually just a very simple html file that in my case has 3 jwplayer for my different apps as well as an iframe of the rtmp-statistics. You can for example also use it to start and...

nginx-rtmp – Setup rtmp statistics

Today I have a really quick tutorial. When running a rtmp server, it can be very important to keep an eye on your statistics, such as uploaded or received amount of data, or currently running streams. The statistics module can also be used to setup a viewer count on your homepage. Activating the statistics is pretty simple. First of all...

Setup a Recorder or Recordings with nginx

The rtmp module for nginx gives you a nearly overwhelming amount of options to configure automatic recordings of your streams. You can setup recorders that can be controlled from outside or just use the normal recording options. For podcasters there is even an option to save the audio track to its own file for later use. First of all, I will...

Setup a simple Video on Demand Server with nginx-rtmp

The nginx server has many useful options to offer and the rtmp-module extends these even further. Today I will quickly explain how to configure your nginx to supply your viewers with a video on demand system. We will be using flv video files (I had problems getting mp4’s to work correctly, but you might have more luck with that) and...

nginx-rtmp – HLS or DASH streaming

We already looked at using our nginx-rtmp server to transcode our streams or to deliver them to more than one location. But another very nice feature, especially for mobile devices is the option to offer streams using HLS or Mpeg-Dash. Dash explanation HLS explanation In nginx-rtmp, both features are actually quite easy to use, but they depend on a few...

Transcoding your Video with Nginx

Today we want to take a look at the transcoding options nginx gives us. Under Linux we can directly use the exec directive to call ffmpeg as soon as a stream connects for example. On Windows we would have to do this by ourselves each time we want to start a transcoding, but more on that later. Now lets take...

Two PC Streaming or Recording without a CaptureCard

Today a slightly different setup than usual. We will use two PC’s for this without the need of using a CaptureCard. Lets see our requirements: First PC Second PC Good CPU(i7) or Quicksync or NVEnc or another HW Encoder Good CPU (i5/i7) The stream is being mainly produced on the first PC. We use either our Hardware encoder or our CPU...

nginx-rtmp – How to use secure Links?

Today I want to quickly explain how to use the nginx http secure links module with nginx-rtmp. You will have to change your compilation process slightly first of all to add the module: –with-http_secure_link_module So my example compilation routine for Windows would look like this: auto/configure –with-cc=cl –builddir=objs –prefix= –conf-path=conf/nginx.conf –pid-path=logs/nginx.pid –http-log-path=logs/access.log –error-log-path=logs/error.log –sbin-path=nginx.exe –http-client-body-temp-path=temp/client_body_temp –http-proxy-temp-path=temp/proxy_temp –http-fastcgi-temp-path=temp/fastcgi_temp –http-uwsgi-temp-path=temp/uwsgi_temp –http-scgi-temp-path=temp/scgi_temp –with-cc-opt=-DFD_SETSIZE=1024 –with-pcre=objs/lib/pcre-8.34...

nginx-rtmp – Secure your nginx-Server

First of all, there are different options and methods available to secure your server. In this guide I will explain the “firewall” method by using the nginx.conf as well as a simple php script that checks the username and password you send on streaming. Other methods like htaccess, more complex php scripts or ways I cannot think of at the...