October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Mountain View desk6 min

Nginx RTMP Module Configuration for YouTube Streaming: Setup and Troubleshooting

NGINX RTMP can accept a local publisher stream, but YouTube forwarding requires a relay that meets YouTube’s RTMPS, TLS, port 443, and SNI requirements.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To stream through NGINX to YouTube, configure two separate links: your encoder publishes to an NGINX RTMP application, then an RTMPS-capable relay sends the video to YouTube using the URL and stream key from YouTube Live Control Room. A basic nginx-rtmp-module configuration creates the local RTMP listener; it does not, by itself, prove that the YouTube-facing connection is encrypted or supports YouTube’s TLS and SNI requirements.

How the NGINX-to-YouTube streaming path works

Think of this as two connections, not one:

  1. Encoder to NGINX: OBS or another publisher sends an RTMP stream to an NGINX server and an application configured in NGINX.
  2. NGINX-side relay to YouTube: A relay component forwards the stream to the RTMPS address and stream key supplied by YouTube.

The upstream nginx-rtmp-module README documents RTMP listeners and generic RTMP push/pull relay features. Its generic push examples do not establish that a given build can connect securely to YouTube. For the YouTube hop, use a component whose support for TLS, port 443, and SNI is established.

As an Amazon Associate I earn from qualifying purchases.

Choose a module that matches your NGINX build

The community arut/nginx-rtmp-module is a third-party module for NGINX. NGINX Plus also offers a separately packaged RTMP dynamic module. These are distinct distribution paths, and their installation steps, compatibility, update process, and capabilities should not be assumed to match.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
NGINX distribution What to check Installation direction
NGINX Plus Use the package and instructions for the installed NGINX Plus release and operating system. The F5 NGINX RTMP module guide covers this packaged dynamic module. Install the matching package, load ngx_rtmp_module.so in the main context, test the configuration, and reload NGINX.
NGINX Open Source Check the exact NGINX build, operating system, module revision, and whether that module build supports static or dynamic loading. The NGINX configure documentation describes third-party module build options. Build against the compatible NGINX source with --add-module, or use a compatible dynamically built module when supported.

Do not load a shared module compiled for a different NGINX build and assume it will work. F5’s package instructions apply to NGINX Plus, not automatically to NGINX Open Source.

#1 Best Overall
URayCoder HD HEVC H.265 MPEG4 H.264 4K HDMI to Video Streaming IPTV Encoder for HDMI to RTSP RTMP HTTP UDP HLS SRT Facebook YouTube Live Streaming Server
  • 【Innovative Product with Leading Technology】- Equipped with an advanced H.265 /H.264 dual encoding chip, supports 4K UHD (3840x2160) video input and output, with a maximum frame rate of 30fps at 4K resolution and up to 120fps at 2K and lower resolutions, delivering a smooth and detailed visual experience. It also supports HDCP 1.4 decryption, easily decoding various HDMI ultra HD video sources, delivering a cinematic visual experience for both professional live streaming and 4K ultra HD content transmission.
  • 【Multi-protocol and Multi-platform Compatibility】- Fully compatible with streaming protocols such as HTTP, RTSP, RTMP(S), SRT, HLS(M3U8), MP4, Multicast(UDP, RTP, PTL), FLV, WebRTC, TRTC, ICECAST, it can simultaneously output 4 video streams with different protocols and push them to live streaming platforms such as YouTube, Facebook, Twitch, and Vimeo with one click. Simultaneous live streaming across multiple platforms can be achieved without additional equipment.
  • 【Highly Customizable Settings to Meet Individual Needs】- It supports adding static text, scrolling captions, brand logos, and timestamps. Users can freely adjust core parameters such as video resolution, frame rate, and bitrate, and also perform personalized editing functions such as video cropping, rotation, flipping, and mirroring. It supports dual input of HDMI embedded audio and line-in audio, with adjustable sound quality, making your live stream content more distinctive and allowing you to create a unique brand live stream style.
  • 【Stable and Efficient Transmission, Easy Operation】- Employing HDMI to Ethernet core connection technology, it ensures stable and reliable network transmission with low latency and no lag, adapting to various network environments. Equipped with an intuitive user interface and detailed instruction manual, no professional technical background is required; setup can be completed quickly after connecting the device. It is also compatible with multiple terminals such as computers and mobile phones for management, and the video stream status can be viewed in real time via a URL.
  • 【Lifetime Free Warranty and Technical Supports】- All URayCoder video codecs come with a lifetime free warranty and technical supports, supporting secondary development and feature customization to meet enterprise-level personalized needs. Meanwhile, we providing many kinds of customization services such as shell pattern printing, logo addition, hardware and function development, ensuring reliable quality and worry-free after-sales service.

Configure a local RTMP application

This minimal example follows the upstream module’s live-listener shape. It accepts an RTMP publisher at port 1935 and defines an application named live; it is not a complete YouTube relay configuration.

rtmp {
    server {
        listen 1935;
        application live {
            live on;
        }
    }
}

Place the rtmp {} block in the NGINX configuration context supported by your build. If the module is dynamic, load it in the main context as required by that distribution before using the RTMP directives. Then validate and reload with the commands appropriate to your installation:

Rank #2
UNISHEEN 1080P60 HDMI Video Encoder, H.265/H.264 Live Streaming Encoder, HDMI to RTSP/RTMP/SRT/HLS/WebRTC IPTV Encoder for YouTube Facebook Live, Browser Setup, No PC Software Needed
  • 【Hardware H.265/H.264 Encoding at 1080P60】Dedicated hardware encoder delivers broadcast-quality 1080P60 streams with H.265/H.264 compression. Reduces bandwidth usage by up to 50% compared to legacy H.264-only solutions, while maintaining crisp, crystal-clear video output.
  • 【Broad Protocol Support for IP Distribution】 Supports SRT, RTMP(S), RTSP, UDP, HTTP, HLS, WebRTC, TRTC, Icecast and SHOUTcast — integrate seamlessly with CDNs, surveillance NVRs, IPTV systems and browser-based monitoring dashboards. One device replaces multiple single-purpose streaming boxes.
  • 【Browser-Based Setup in Minutes】 Set up in minutes through any browser — no software, drivers or OS compatibility issues. DHCP is enabled by default to prevent IP address conflicts on your network. Note: basic networking knowledge (IP address, RTSP/RTMP configuration) is recommended for advanced streaming setups.
  • 【Compact Design with Flexible Deployment】Palm-sized form factor (approx. 90×54×29mm) fits easily behind monitors, on shelves, or in equipment racks. Low power consumption ensures reliable 24/7 operation for live events, remote monitoring, and digital signage.
  • 【Professional Audio & OSD Overlay + 1-Year Warranty】 Supports HDMI embedded audio plus external 3.5mm input. Built-in OSD generator adds scrolling text, logos, or timestamps directly to the video stream — ideal for branding, event info, or security labeling. Backed by a 1-year warranty and 24/7 online technical support.
nginx -t
nginx -s reload

On systems where NGINX is managed by a service manager, use its reload mechanism after a successful test. A successful nginx -t checks configuration syntax and module loading; it does not verify YouTube credentials, outbound TLS, SNI, or that a stream reaches YouTube.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Match the publisher URL to the application name

The publisher URL has the general form rtmp://host/app/name. The app segment must match an application {} block. In this example, use live as the application segment; the trailing name is interpreted by the application. For example, a publisher might use rtmp://your-server.example/live/channel1, replacing the hostname with your server’s address.

Rank #3
Blackmagic Design Streaming Encoder 4K – 4K Ultra HD Live Streaming via SRT & RTMP, SDI Input, Ethernet + Mobile, Includes 6ft Power Cord (BDLKWEB/D/SED4K)
  • 4K & HD STREAMING IN H.264 AND H.265 – Self-contained processor supporting H.264 and H.265 encoding in HD or Ultra HD (up to 2160p60) via SRT or RTMP, streaming directly to YouTube, Facebook, X, Twitch, Zoom, Microsoft Teams, OBS, Wowza, and many more — no encoding PC needed.
  • 12G-SDI INPUT WITH STANDARDS CONVERSION – Supports input resolutions up to DCI 4K60 with an SDI input and SDI loop output, plus Teranex-powered automatic standards conversion so any HD or Ultra HD source streams cleanly at any target resolution.
  • DUAL MONITOR OUTPUTS – Features both SDI and HDMI monitor outputs with a user-configurable standards converter on both the 12G-SDI Out and 4K HDMI Out, so you can feed a confidence monitor or downstream device at any required format independent of your streaming standard.
  • ETHERNET + 5G/4G MOBILE WITH AUTO-FAILOVER – Connect via Gigabit Ethernet (10/100/1000BASE-T) or tether a smartphone via USB-C for mobile data, with automatic switchover between connections — ensuring your stream stays on air even if the primary internet connection drops.
  • CLOSED CAPTIONS, TIMECODE & REST API – Supports embedding CEA-608 and CEA-708 closed captions in live RTMP streams, source timecode over RTMP and SRT, and offers a REST API over Ethernet for external HTTP control — ideal for broadcast automation and accessibility-compliant workflows.

Limit access to the local listener

Port 1935 is the upstream example’s listener value, not a requirement to expose that port publicly. Restrict publishing to intended clients using network controls and the module’s available publish access controls, such as allow/deny rules. Avoid placing stream keys or other secrets in public configuration examples, logs, or shared screenshots. The module README also documents HTTP callbacks for publish and play events where an application needs additional controls.

Connect the relay to YouTube with RTMPS

YouTube’s secure ingest route is RTMPS: RTMP carried through an SSL/TLS connection. Google requires the rtmps scheme, a valid YouTube ingest server and application path, port 443, a TLS connection, and SNI set to the destination hostname. See Google’s RTMPS ingestion requirements.

Rank #4
H.265 H.264 4K HDMI to IP Network Video Encoder, 1080P HD Video Audio Encoder Supports RTSP RTMPS UDP HLS SRT HTTP WebRTC ICECAST, for IPTV, Live Streaming, YouTube, Facebook, OBS, ONVIF NVR, etc.
  • ⭐【Innovative Product with Leading Technology】- Equipped with an advanced H.265 /H.264 dual encoding chip, supports 4K UHD (3840x2160) video input and output, with a maximum frame rate of 30fps at 4K resolution and up to 120fps at 2K and lower resolutions, delivering a smooth and detailed visual experience. It also supports HDCP 1.4 decryption, easily decoding various HDMI ultra HD video sources, delivering a cinematic visual experience for both professional live streaming and 4K ultra HD content transmission.
  • ⭐【Multi-protocol and Multi-platform Compatibility】- Fully compatible with streaming protocols such as HTTP, RTSP, RTMP(S), SRT, HLS(M3U8), MP4, Multicast(UDP, RTP, PTL), ONVIF, FLV, WebRTC, TRTC, ICECAST, it can simultaneously output 4 video streams with different protocols and push them to live streaming platforms such as YouTube, Facebook, Twitch, and Vimeo with one click. Simultaneous live streaming across multiple platforms can be achieved without additional equipment.
  • ⭐【Highly Customizable Settings to Meet Individual Needs】- It supports adding static text, scrolling captions, brand logos, and timestamps. Users can freely adjust core parameters such as video resolution, frame rate, and bitrate, and also perform personalized editing functions such as video cropping, rotation, flipping, and mirroring. It supports dual input of HDMI embedded audio and line-in audio, with adjustable sound quality, making your live stream content more distinctive and allowing you to create a unique brand live stream style.
  • ⭐【Stable and Efficient Transmission, Easy Operation】- Employing HDMI to Ethernet core connection technology, it ensures stable and reliable network transmission with low latency and no lag, adapting to various network environments. Equipped with an intuitive user interface and detailed instruction manual, no professional technical background is required; setup can be completed quickly after connecting the device. It is also compatible with multiple terminals such as computers and mobile phones for management, and the video stream status can be viewed in real time via a URL.
  • ⭐【Lifetime Free Warranty and Technical Supports】- All URayCoder video codecs come with a lifetime free warranty and technical supports, supporting secondary development and feature customization to meet enterprise-level personalized needs. Meanwhile, we providing many kinds of customization services such as shell pattern printing, logo addition, hardware and function development, ensuring reliable quality and worry-free after-sales service.
  1. Open YouTube Live Control Room and select the stream’s Stream settings.
  2. Use the lock icon to reveal the RTMPS URL and the associated stream key. Use the exact values shown for that stream; do not substitute a generic endpoint or copy another stream’s key. YouTube’s setup instructions are at Set up your live stream.
  3. Configure an RTMPS-capable relay or encoder to forward the stream to that destination. Confirm that the implementation connects over TLS on port 443 and sends SNI for the ingest hostname.
  4. Keep the stream key secret. If it is exposed, replace or reset it in YouTube’s stream settings before using the stream again.
  5. Start the local publisher, then start or verify the relay. Confirm the incoming stream in Live Control Room before taking the broadcast live.

If using YouTube’s API rather than copying the URL manually, the RTMPS address is provided in cdn.ingestionInfo.rtmpsIngestionAddress; consult the YouTube Live Streams API documentation. The URL and key are specific to the stream setup.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why a generic NGINX push directive is not enough

The module’s documented push examples demonstrate generic RTMP relay behavior. They are not proof that a particular module version can perform YouTube’s secure RTMPS connection, negotiate TLS on port 443, and send the required SNI hostname. Do not paste an invented YouTube push URL or key into a configuration and assume it is secure. Verify those transport capabilities for the exact relay implementation you deploy.

Best Value
HEVC MPEG4 H.265 H.264 HDMI to IP Network Video Encoder, 1080P HD Digital Video Audio Encoder Hardware Supports RTSP RTMPS UDP HLS SRT, for IPTV, Live Streaming, YouTube, Facebook, OBS, NVR, etc.
  • ⭐【Innovative Product with Leading Technology】- Equipped with an advanced H.265/H.264 dual encoding chip, supports 1920x1080 resolution input and output, achieving 60fps high-definition presentation with realistic and delicate color reproduction and lossless detail. It also supports HDCP 1.4 decryption, easily decoding various HDMI high-definition video sources, delivering a cinematic visual experience for both professional live streaming and high-definition content transmission.
  • ⭐【Multi-protocol and Multi-platform Compatibility】- Fully compatible with streaming protocols such as HTTP, RTSP, RTMP(S), SRT, HLS(M3U8), MP4, Multicast(UDP, RTP, PTL), ONVIF, FLV, it can simultaneously output 4 video streams with different protocols and push them to live streaming platforms such as YouTube, Facebook, Twitch, and Vimeo with one click. Simultaneous live streaming across multiple platforms can be achieved without additional equipment.
  • ⭐【Highly Customizable Settings to Meet Individual Needs】- It supports adding static text, scrolling captions, brand logos, and timestamps. Users can freely adjust core parameters such as video resolution, frame rate, and bitrate, and also perform personalized editing functions such as video cropping, rotation, flipping, and mirroring. It supports dual input of HDMI embedded audio and line-in audio, with adjustable sound quality, making your live stream content more distinctive and allowing you to create a unique brand live stream style.
  • ⭐【Stable and Efficient Transmission, Easy Operation】- Employing HDMI to Ethernet core connection technology, it ensures stable and reliable network transmission with low latency and no lag, adapting to various network environments. Equipped with an intuitive user interface and detailed instruction manual, no professional technical background is required; setup can be completed quickly after connecting the device. It is also compatible with multiple terminals such as computers and mobile phones for management, and the video stream status can be viewed in real time via a URL.
  • ⭐【Lifetime Free Warranty and Technical Supports】- All URayCoder video codecs come with a lifetime free warranty and technical supports, supporting secondary development and feature customization to meet enterprise-level personalized needs. Meanwhile, we providing many kinds of customization services such as shell pattern printing, logo addition, hardware and function development, ensuring reliable quality and worry-free after-sales service.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot YouTube RTMPS connection failures

Check the connection in this order; the failure may be on the YouTube-facing relay even when the encoder-to-NGINX link is working.

Symptom Likely check Correction
SSL or certificate error The relay may be using the ordinary RTMP address, the wrong endpoint or path, or a port other than 443. Copy the RTMPS URL from the current stream’s Live Control Room settings and connect on port 443 using TLS. YouTube’s live streaming troubleshooting guide advises checking the URL and port 443 for SSL errors.
Connection times out A common cause is sending cleartext RTMP to an RTMPS server, or a network/firewall blocking the intended outbound connection. Use the rtmps scheme and a TLS-capable relay; verify outbound access to port 443. Google notes that cleartext RTMP sent to an RTMPS endpoint can result in timeouts.
TLS connection starts but authentication fails SNI may be missing or set to something other than the destination hostname. Configure the TLS client to send SNI matching the YouTube ingest hostname. The hostname is needed for server authentication.
YouTube does not receive video, but NGINX accepts the publisher The local application path, relay destination, stream key, or forwarding process may be wrong or inactive. Confirm the publisher URL’s application segment matches the NGINX application {} name, then recheck the exact RTMPS URL and matching key in Live Control Room.
NGINX reports an unknown RTMP directive or fails to start The module may not be installed or loaded, or it may not match the NGINX build. Check the package/build compatibility, module load directive and configuration context; run nginx -t before reloading.

Optional module features you may not need

The module also documents stream relay, HLS and DASH output, recording, HTTP callbacks, statistics output, and FFmpeg integrations for transcoding. These are separate functions, not prerequisites for forwarding a stream to YouTube. Add them only when your architecture needs them.

  • HLS/DASH: Useful for generating local HTTP delivery outputs; the README’s HLS example expects H.264 video and AAC audio. Check codec compatibility across your actual chain.
  • Recording: An optional local recording function, not a requirement for YouTube ingest.
  • Callbacks and statistics: Optional operational or access-control features; protect any endpoints and output exposed by your configuration.
  • FFmpeg integration: Optional transcoding capability. Do not assume it is active or required simply because the module supports an integration.

Or let it run in the cloud

If your goal is to keep pre-recorded video streaming on YouTube without leaving a server or computer running at home, StreamNeo is a cloud alternative: upload a recording or build a playlist, add your YouTube stream key, and go live. It loops the uploaded video from the cloud; it does not stream from a camera.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Nothing has to stay powered on at home, and your home connection does not have to carry the stream.
  • Any quality up to 4K 60fps streams as uploaded at one flat price per slot, with no re-encode or quality tiers.
  • It automatically recovers if YouTube drops the stream.
  • The first day is free with no card required.

The monthly option is $9.99 per month. Each slot includes 10 GB storage, pooled across active slots, 24/7 looping and playlists, and support from the StreamNeo team. See StreamNeo for details, then start your free first day.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.