Building a Live Streaming Platform with Nginx, FFmpeg, and RTMP/HLS
Architectural Overview
A live video broadcasting system comprises three fundamental components: a publishing endpoint, a media server, and playback clients.
The publishing side uses FFmpeg for encoding and sending streams. The server layer employs Nginx enhanced with an RTMP module to ingest and distribute content. Viewer-side playback can be h ...
Posted on Sat, 11 Jul 2026 17:35:30 +0000 by fbm
Configuring RTMP Streaming with Nginx: A Comprehensive Guide
Core Configuration
The RTMP server instance declaration is the foundation of your configuration.
rtmp {
server {
listen 1935;
}
}
Server Listening Configuration
Define the socket where the server will accept connections.
server {
listen 1935;
}
Application Setup
Create an application instance within the server context.
ser ...
Posted on Mon, 06 Jul 2026 17:23:22 +0000 by gotry
Setting Up RTMP Streaming Server with Nginx for Live and On-Demand Video Services
Development Environment
Ubuntu 14.04 server
nginx-1.8.1
nginx-rtmp-module
Installing Nginx Dependencies
sudo apt-get update
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install openssl libssl-dev
Configuring and Compiling Nginx
Use the default nginx configuration and incorporate the RTMP module:
./configure --add-module=../nginx-r ...
Posted on Thu, 04 Jun 2026 18:49:43 +0000 by direction
librtmp Source Code Examination
AMF Format Fundamentals
AMF (Action Message Format) is a binary protocol for serializing ActionScript data types. It exists in two versions: AMF0 (basic specification) and AMF3 (extended version).
AMF0 Data Types
typedef enum {
DT_NUMBER = 0,
DT_BOOLEAN,
DT_STRING,
DT_OBJECT,
DT_NULL,
DT_UNDEFINED,
DT_REFERENCE,
...
Posted on Sat, 16 May 2026 10:45:21 +0000 by hbalagh
Live Streaming System Architecture for Academic Project
This document outlines the architecture and implementation details of a live streaming platform developed as an undergraduate graduation project.
1: Development Environment
Linux server configuration: debian10, gcc 10.2.1, php7.4.3, mysql 5.7.26, nginx1.15.11
Windows development environment: nginx1.15.11, php7.4.3, mysql 5.7.26 via XAMPP or sim ...
Posted on Thu, 14 May 2026 15:16:08 +0000 by fredcool