Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
DocumentaryTube
Admit one · Blog

How to Fix an FFmpeg YouTube Stream Stuck on Connecting from Hetzner Cloud

Work through the likely causes of an FFmpeg YouTube stream stuck on connecting from Hetzner Cloud, from stale stream details to outbound firewall rules and protocol support.
Opened Runtime5 min Written byDocumentaryTube Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If FFmpeg stays on “connecting” when you try to stream to YouTube from Hetzner Cloud, check the active YouTube stream URL and key first, then verify RTMPS settings and outbound firewall rules. After that, confirm your FFmpeg build supports the chosen protocol and use YouTube’s stream-health signals to distinguish a connection failure from a media-quality problem. Without your command and logs, there is no way to identify one specific cause; work through these checks in order.

1. Verify the active YouTube stream URL and key

  1. Open YouTube Live Control Room and select the broadcast you are trying to start. Copy the stream URL for that stream rather than relying on an endpoint from an old command, another broadcast, or an unrelated example. YouTube’s third-party encoder troubleshooting advises checking the key in Live Control Room and updating it in the encoder when startup fails.

  2. Check that the URL scheme matches the protocol you intend to use. For RTMPS, it must begin with rtmps://, not rtmp://. Preserve the hostname supplied by YouTube.

  3. If FFmpeg needs an explicit port, use port 443 for YouTube RTMPS. Google’s RTMPS ingestion documentation also explains that the server hostname is needed for SNI during TLS authentication; replacing it with an IP address can therefore break the TLS connection.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
    #1 Best Overall
    ZowieBox, 4K HDMI NDI Video Encoder/Decoder, HDMI NDI
    • Compact but Powerful Design: ZowieBox is smaller than a phone, featuring a tally light and LCD screen for streaming status. Capture console gameplay in up to 4K with zero-lag HDMI passthrough, while the built-in video encoder converts video for IP streaming. The IP stream can also be decoded back to a 4K HDMI signal.
    • Standalone Game Streaming: Just plug and play—ZowieBox enables PC-free live gaming without affecting gameplay. As an RTMP hardware encoder and HDMI streamer, it delivers stable streaming directly from your source, making it ideal for gaming, live events, and professional broadcasting.
    • NDI|HX3 Converter Technology: ZowieBox converts HDMI signals to NDI|HX3/HX2/HX, functioning as an NDI video encoder, or NDI Video Decoder for flexible IP workflows. Certified NDI technology enables low-latency gameplay streaming through OBS/vMix. Note: Encoder and decoder modes cannot run simultaneously; full NDI signals are not supported.
    • UVC to HDMI Conversion: Supporting up to 4K@30fps and 1080p@60fps decoding, ZowieBox enables flexible conversion for webcam and video workflows. As a video decoder and HDMI to IP converter, it expands connectivity options for professional video devices. Note: USB capture card functionality is not currently supported.
    • All-around Configuration Options: Control ZowieBox through its web UI on a PC, phone, or tablet. Manage connected PTZ cameras, tally light, video/audio, OSD, work mode, streams, network, and system settings. Support for VISCA over IP encoder workflows enables flexible PTZ control, while the dashboard provides video preview and system status.
  4. Refresh or re-copy the stream key if the encoder may be using a stale one. Treat it like a password: redact it from terminal captures, command examples, screenshots, and logs you share.

YouTube’s encoder settings and troubleshooting guidance recommends RTMPS for YouTube Live. A correct stream key cannot compensate for a wrong protocol, hostname, or port.

2. Check Hetzner Cloud Firewall egress

Inspect the firewall attached to the server running FFmpeg, and look at its outbound rules. Hetzner documents an important default change: without custom firewall rules, outbound new connections are allowed; once custom rules are present, outbound new connections are dropped unless explicitly allowed. Existing established or related traffic is handled separately. See Hetzner’s firewall overview.

Rank #2
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.

A timeout while establishing the connection makes egress, destination, and protocol checks especially relevant. Do not change inbound rules as a substitute for allowing the required outbound traffic.

3. Confirm FFmpeg can use the selected protocol

FFmpeg’s RTMP protocol documentation describes RTMP URL syntax, and its general documentation covers output options and muxing. Neither can establish which protocols are available in the particular binary installed on your Hetzner server. Check the installed build and the exact output command.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Confirm the binary you are invoking is the one you expect, and inspect its version and build configuration.

    Rank #4
    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.
  • Confirm the output URL is YouTube’s current destination for the selected broadcast, with the intended scheme, hostname, and port.

  • Check that the command’s output muxer and stream mapping fit the media you are sending. A malformed or incompatible output command can fail even when network access is available.

Do not post an unredacted command if it contains the stream key. To diagnose a particular invocation, retain the complete FFmpeg stderr but replace the secret key with a marker before sharing it.

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.
Best Value
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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

4. Tell connection failure from stream-health trouble

“Connecting” and poor stream health are not the same problem. If FFmpeg cannot establish a connection, investigate the URL, hostname, port, protocol support, DNS or TLS behavior, and outbound firewall policy. If data reaches YouTube but the stream-health panel reports a problem, use YouTube’s encoder troubleshooting guidance to inspect the encoder output, error messages, CPU load, and outbound connection.

For media sent over RTMP(S), YouTube’s general encoder guidance lists H.264 video, CBR, AAC or MP3 audio, and keyframe intervals no longer than four seconds among its supported settings. These settings can help with media delivery and health, but they do not repair a TCP or TLS connection that never establishes. Confirm the viewer-facing preview is playable separately from confirming that the encoder connected.

5. Consider HLS only when you have a protocol requirement

YouTube documents HLS ingestion for HDR or codecs that RTMP does not support, provided the encoder supports HLS; see YouTube’s HLS ingestion guidance. HLS delivers segments rather than one continuous RTMP stream, so it has higher latency. It is an alternative when the media or encoder requires it—not a default remedy for an unexplained RTMPS connection failure.

6. Troubleshoot by symptom

What you see Check Next action
FFmpeg never connects or times out Active stream URL and key; scheme, hostname, and port; attached Hetzner firewall’s outbound rules; DNS/TLS and FFmpeg protocol support Correct the endpoint or key, allow the necessary outbound traffic, and confirm the installed build and command support the selected protocol.
TLS or SSL error Whether you are using rtmps://, YouTube’s hostname, and port 443 Use the selected broadcast’s current RTMPS URL and preserve its hostname for TLS/SNI.
FFmpeg connects, but YouTube reports poor stream health Encoder output and errors, CPU load, outbound connection, and YouTube’s recommended media settings Address the reported encoder or media issue; do not treat a media-setting change as a fix for a connection that never established.
Connection succeeds but the preview does not play correctly Whether YouTube receives the expected audio and video streams and whether the output muxer and stream mapping are appropriate Review the command and encoder output, then confirm the preview separately from the connection status.

7. What to collect if the checks do not isolate it

The specific root cause cannot be verified without the sanitized FFmpeg command and stderr, FFmpeg version and build configuration, URL scheme/hostname/port with the key removed, DNS/TLS/connectivity test results, firewall rules attached to the instance, and the status shown in YouTube Live Control Room. Share these details with the key redacted if you need further diagnosis.

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.

Or let it run in the cloud

If your goal is a continuous YouTube channel rather than diagnosing a self-managed FFmpeg connection, StreamNeo is a cloud service that loops uploaded videos to YouTube. Upload a recording or make a playlist, add your YouTube stream key once, and go live. Nothing has to stay on at home; it streams the uploaded quality up to 4K 60fps at one flat price per slot, and automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly: $9.99 per month. See StreamNeo or start the free 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 Screening Room

  1. How to Migrate a 24/7 YouTube Stream to a New VPSAdmit one · BlogHow to Migrate a 24/7 YouTube Stream to a New VPSOpened04 OCT 2026Runtime6 min
  2. How to Run a YouTube Playlist on a Headless Linux Server—and Broadcast It LiveAdmit one · BlogHow to Run a YouTube Playlist on a Headless Linux Server-and Broadcast It LiveOpened04 OCT 2026Runtime6 min
  3. How to Make a 24/7 Indian Music YouTube Stream Restart After a Server RebootAdmit one · BlogHow to Make a 24/7 Indian Music YouTube Stream Restart After a Server RebootOpened04 OCT 2026Runtime6 min
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.