Real-Time MediaMulti-user HLS delivery
Live Streaming Platform
A multi-user live streaming platform with RTMP ingest, FFmpeg HLS delivery and role-based access.
Role
Backend architecture, streaming pipeline and platform engineering
Timeline
4 months
Tech
NestJS, TypeScript, PostgreSQL
Problem
Publishing live video to many viewers at once normally means stitching together ingest, transcoding, delivery and access control. The goal was a single, modular system that handles that entire pipeline rather than a fragile one-off setup.
Approach
- Model a modular NestJS backend so streaming, auth and storage concerns stay decoupled.
- Accept live stream ingest over RTMP so creators can broadcast from tools like OBS.
- Transcode and segment the feed with FFmpeg into HLS for smooth playback across networks.
- Secure streams with role-based access control and persist metadata in PostgreSQL.
- Push live status to clients over WebSockets and serve delivery through Cloudflare.
Solution
A NestJS service that ingests RTMP, transcodes to HLS with FFmpeg and delivers streams over a CDN, with authentication and role-based permissions guarding who can publish and watch.
Outcomes
- Multi-user support with per-user streams
- Adaptive HLS playback instead of raw streams
- Role-based access control across the platform
- Modular backend designed for extension