Nginx rtmp multiple streams What is Nginx RTMP? Nginx RTMP module is an awesome extension for the Nginx web server that allows you to stream live video and audio content over the internet. Jul 2, 2014 · How to Live Stream to Multiple Services with a RTMP Server By ionbasa July 2, 2014 in Guides and Tutorials Followers 2 May 30, 2020 · 6 Standard practice for RTMP is still to have a plain text stream key out on the wires. About Hitesh Jethva Docker Compose setup to push a stream to multiple providers like facebook, twitch or youtube. In this article you will learn how to setup NGINX RTMP Server and Re-stream to Twitch, YouTube, Facebook or any other streaming platform. Luckily, with open source software like NGINX with the RTMP module, you can easily self-host a lightweight restream server on your local machine. So, my plan would be different cameras, each one of them connected to a laptop. Compile nginx with rtmp module Firstly, we’ll need to compile nginx … Docker Image for RTMP streams using Nginx. rtmp { server{ listen 1935; chunk_size 4096; application live { live on; reco Conclusion This post explained how to set up a video streaming server using the Nginx-RTMP on Ubuntu 22. It creates a local streaming server that receives your OBS output and forwards it to multiple platforms. Feel free to ask me if you have any questions. Contribute to JasonRivers/Docker-nginx-rtmp development by creating an account on GitHub. This means you can stream live content to platforms like YouTube, Facebook Live, and Twitch at the same time, ensuring a broader audience. In this article I am going to explain how I was able to set up nginx to do exactly that. A minimal example of my config (nginx. I have the same issue. Hi, I am using nginx right now to receive rtmp streams and relay them where ever I want, but I had an idea that I could receive more than one on my server and do hot switching between in obs. Scalability: NGINX load balancing for handling multiple streams. Feb 1, 2022 · Learn how to set up an NGINX RTMP server and keep your live stream from crashing in this step-by-step tutorial! Before we dive into the installation and configuration details of the Nginx RTMP module, let’s take a moment to understand what exactly Nginx RTMP module and server are all about. In this guide we’ll be setting up a live-stream server on Ubuntu 20. About A containerize NGINX server with the RTMP plugin to allow live streams to multiple providers such as Twitch, Facebook, or YouTube simultaneously from a single source. Thanks for trying! If I end up solving this, I will reply here NGINX with the RTMP module is the most robust solution for OBS multistreaming. With this project, you can have only one stream to send and the Nginx RTMP server will dispatch this stream to every streaming services that you want. Twitch uses a Content Delivery Network (CDN) to distribute video streams to viewers1. After a certain point, it makes sense to have more than one ingest server. We also test the RTMP server via VLC player. Mar 14, 2025 · Challenges and Solutions High Latency: Optimized HLS fragment size and playlist length for reduced latency. Follow our guide to configure your own streaming server. On each laptop, OBS is running and streaming to my (currently on a Raspberry PI) RTMP Jul 15, 2016 · Issue playing back multiple RTMP live streams Fri Jul 15 09:59:11 UTC 2016 Server: Linux CentOS 6. Jun 2, 2025 · Compile NGINX with RTMP and setup Multi-Streaming. My goal is to keep of obs-studio and send the camera stream directly as source in the html-code or to the rtmp-server application. Contribute to arut/nginx-rtmp-module development by creating an account on GitHub. (x) NGINX with RTMP module enabled (compiled myself using an online tutorial) I use FFmpeg to stream to this server, and one stream works perfectly. Conclusion This project successfully delivered a reliable live streaming solution for HIKVision NVRs. Like this: rtmp { server { listen 1935; chunk_size 4000; application webcam { live on; hls NGINX-based Media Streaming Server. I would want to receive two or more streams from different locations and have them all be accessible at one in obs using media sources. Sep 10, 2025 · Streaming to multiple platforms like YouTube, Twitch, or Rumble can be challenging and costly when relying on third-party restreaming services. Nginx + RTMP: Multiple OBS-Streams to one server Hi everyone! I'm currently trying to display multiple Open-Broadcaster-Software streams from different HDMI-Outputs on a website. This option is toggled with rtmp_auto_push directive. Step by step Mar 25, 2014 · But sometimes you want some more control over your stream, or you want other people to be able to stream to you, or you want to stream to multiple places, or any number of things that requires you to have access to an actual RTMP stream from an RTMP server. - MSWagner/nginx-rtmp-multi-stream. The server needs to pull the RTMP streams from the cameras and stream them to the users (web and mob Stream video in multiple formats, including Real-Time Messaging Protocol (RTMP), HLS, and DASH, with the RTMP dynamic module, supported by NGINX, Inc. Stream Authentication: Secure access with token-based authentication. A step-by-step guide on setting up `nginx-rtmp-server` for dynamic configuration of multiple camera streams, including user authorization options for secure access. Rather than pushing the stream to another application, I have to push the stream to an RTMP address on another port, and there the second ffmpeg process can pick it up. Jan 20, 2022 · I have a application that works like a RTMP proxy server. 1. I have both posts 1935 & 1936 (2nd server) open. Example nginx. The only brake is your upload speed. Thanks in advance! Aug 22, 2018 · The RTMP protocol uses ports 1935 and 443 to transmit data1. 04. May 21, 2023 · Build a RTMP Restreaming Server on a Raspberry Pi Sometimes you want to livestream video from a device like an ATEM MINI PRO or OBS to multiple destinations. Mar 25, 2020 · NGINX is a very light-weight open source multi-language application and web-server. I've tried a config file with 2nd server block but it only received the 1st stream. Jan 17, 2010 · Nginx Was compiled for windows win32 with the following configuration: Want to stream to 2 YouTube channels or more than just a few platforms? Can't accomplish it with free Restream or other services? Well, as long as your internet is powerful enough, you can easily I'm trying to push a RTMP stream with the nginx-rtmp-module (set up after this manual) from one of its applications into another one. 1 instead of localhost. We will use It to listen to the port we’ll specify (1935) for RTMP connections which will allow us the ability to serve up someone else’s stream as a media source in OBS. Stream video in multiple formats, including Real-Time Messaging Protocol (RTMP), HLS, and DASH, with the RTMP dynamic module, supported by NGINX, Inc. I want to acccept RTMPS streams from encoders to NGINX however the RTMP module does not yet have RTMPS. Example of perfectly working stream from IP camera: Nov 22, 2021 · The obs sends the stream to my nginx rtmp server and in my html-code the rtmp-server is the source. Please note that you also can encode your stream on the fly. The CDN consists of multiple servers located around the world that are responsible for delivering video streams to viewers1. You can now stream any video to the RTMP server and access it from any supported media player. All code and a comprehensive readme can be found in my public Learn how to set up RTMP with NGINX on an Ubuntu server for live streaming. Feb 3, 2020 · I need to build an application that has a many-to-many correspondence between users and cameras. Aug 22, 2018 · The RTMP protocol uses ports 1935 and 443 to transmit data1. Many devices and software like this Feb 23, 2016 · 3 You can have a DNS record resolve to multiple origin servers -- not only could you use this for simple DNS round-robin load balancing, but this would be the way you'd have nginx-rtmp pull from multiple origins. 04 powered by Nginx+RTMP mod, and we’ll be using FFmpeg to transcode incoming RTMP streams to several outgoing HLS, adaptive bit-rate streams, or ABS in short, that will allow the most optimal, smooth playback on any type device/screen, even on slow, low-bandwidth internet May 29, 2022 · In this article, I will be covering how to configure and utilize NGINX to enable high fidelity, live streaming over RTMP to HLS. I use VLC to watch the stream. Jan 1, 2021 · OK, I recompiled nginx with --with-debug and that got me to a solution. Notos · The Oh HellosNotos℗ 2017 The Oh HellosReleased on: 2017-12-08Mixer: Charlie KramskyProducer: Tyler HeathProducer: M Module supports multi-worker live streaming through automatic stream pushing to nginx workers. 0. I want the server to receive 2 or more RTMP stream sources. Note: It’s pronounced “Engine X” While I haven’t tested it yet, NGINX claims to be able to handle multiple incoming RTMP streams As mentioned, you can use the push directive in your Nginx configuration to forward streams to multiple RTMP endpoints. GitHub Gist: instantly share code, notes, and snippets. conf rtmp { server { listen 1935; chunk_size 4000; # TV mode: one publisher, many subscribers application mytv { # enable live streaming live on; # record first 1K of stream record all; Multiplex an rtmp stream to both YouTube and Facebook Live using nginx in a container - taldanzig/nginx-multistream Multiplex an rtmp stream to both YouTube and Facebook Live using nginx in a container - taldanzig/nginx-multistream Mar 25, 2015 · So far I managed to install nginx on a Raspberry Pi with the rtmp module and I can stream using the Raspberry as a RTMP Server via OBS. Installing nginx a lightweight http server can be used to serve up live video using RTMP module but can also be used to send a stream to multiple services at once. A step-by-step guide on setting up `nginx-rtmp-server` for dynamic configuration of multiple camera streams, including user authorization options for secure Oct 6, 2015 · Is there any nginx-rtmp config or other clientside (optimally linux, but can be windows as well) solution I could use for combining two input RTMP streams into a single output stream? Switching between inputs can be done via hand as well if needed, as long as it works "live" and without interruption of the output. Provided to YouTube by BWSCD, Inc. And it seems to be better to use 127. Say one from a gopro camera & one from a mobile phone camera & display both sources on a scene in OBS or Prism Live. This guide will cover the very basics of setting up a simple RTMP server on a Linux Jan 10, 2023 · Setting up HLS live streaming server using NGINX This guide will explain how to setup your own streaming server on ubuntu. conf) looks as following. Using stunnel to support rtmps for facebook. 7j01pugodlfrhimf2siypqnu4jymrs1rkadbbvnmsce9fsb