Use a RAM disk to store temporary HLS video fragment files of your live-stream server

What exactly is a RAM disk?Why would I want to use a RAM disk?How large should the RAM disk be?How to create a RAM disk I’ve posted several articles in the past, most noteably this one, on the subject of live-streaming, so it shouldn’t be a real big surprise that I’m doing another post on it. A RAM disk can enhance your live-stream server, while at the same time increasing …

Use this script to automate the setup of a live-stream server on Ubuntu 22.04

What the script does, is build a decent live-stream server for you, from scratch, on a machine running on Ubuntu 22.04. The live-stream server will be fully configured and work out-of-the-box, with an RTMP entry to send your stream to, Adaptive bitrate streaming for the viewers in HLS and/or DASH formats. A webpage with a very basic video player is also included, and a simple /stat page can be used to display some data on the live-streams. To top it all off, I included a couple of pointers that will help you on your way in this environment.

Build a Nginx/Ffmpeg adaptive bit rate HLS live-stream server on Ubuntu 22.04

This tutorial is an updated and improved version of a previous tutorial that I wrote. This new tutorial will work 100% on a (fresh) Ubuntu 22.04 system. The tutorial was put together in August 2023. UPDATE: I’ve put together a script that does everything automatically. Check it out here! All throughout this tutorial, I will be using the non-existing domain name: your.hostname.com as an example. You will need to replace …

Really long introduction for a new tutorial

This post is the full introduction that goes together with a new tutorial that I’m posting shortly after this. Initially, this intro was included in the tutorial, until I made it a bit too long by rambling on. I realize this is a long, and perhaps too long post, but it does contain some useful information for anybody who is contemplating building their own live-stream server. If you’re not, you …

Important update notice on a very popular post on this website.

My post on how to create a secure adaptive bit-rate HLS stream with Nginx/RTMP/Ffmpeg on Ubuntu 20.04 is by far the most popular content on my website. About 60% of all visitors come to that page through Google. I have an essential message to everybody who followed this tutorial. You should really edit a couple of lines in your nginx.conf in case you are using adaptive bit rate streams, sooner …

Ant Media Server on Ubuntu 18.04

This short guide will show you how to install Ant Media Server (Community Edition) on a Ubuntu 18.04 VPS server. Ant Media Server is a fork of Red5. The community Edition is free, but it does have its limitations that can be unlocked by purchasing a license. It runs on Java, so we’re also installing that on our server. The server that I used in this example has Nginx installed …

Fix the Nginx module in Webmin (Ubuntu 18.04)

For a long time now, the Nginx plugin that exists for Webmin did not work after installing it on Ubuntu/Debian. I never got around to figure out how to fix this but today I did. Here’s how to fix the Nginx plugin in Webmin on a Ubuntu server. Now in all honesty I have no idea what step of all the steps below did the trick of actually getting it …

Block all traffic from a Geo-located country with UFW firewall on Ubuntu

Update 30-7-2023 – This post is a bit old. I have written a new article on the subject. Check it out here: https://www.ustoopia.nl/featured/block-countries-based-on-geo-data-with-ufw-firewall/ I was noticing some really strange requests in my web server’s log files on a VPS that I manage. Requests that seem to be focused on finding vulnerabilities or exploits. Turns out, most of the originating IP addresses are from China. Since the VPS is not behind …

How to set up Nginx+RTMP live stream server

IMPORTANT UPDATE! These guides may be outdated. Please see the new guide here: https://www.ustoopia.nl/featured/nginx-rtmp-hls-ssl-videojs-on-ubuntu-18-04/ I made a couple of YouTube video’s with some instructions on how to set up your own private live-stream server using Nginx running on Ubuntu 18.04. . Click on the CONTINUE READING link below to see a copy of the variables that I used in the video’s. You can also find it on my Pastebin if …