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.

If FFmpeg exits when the internet drops, it will not restart itself just because you add HTTP -reconnect options to an RTMPS output. Use a process supervisor to relaunch FFmpeg after it terminates, keep YouTube’s RTMPS URL and stream key configured securely, and rehearse a deliberate disconnect before relying on recovery during a church service. A restart can restore the feed, but YouTube does not guarantee that every restart will rejoin the same live event.

Will FFmpeg reconnect to YouTube Live?

It depends on what failed. A brief transport interruption and an FFmpeg process that has exited are different problems, and neither guarantees that YouTube will resume the intended live event.

  • FFmpeg is still running: inspect its output and logs. FFmpeg’s documented reconnect, reconnect_at_eof, reconnect_on_network_error and related retry options belong to the HTTP protocol. They do not establish automatic reconnection for an RTMPS output. See the FFmpeg HTTP protocol options.
  • FFmpeg has exited: a process supervisor can launch it again. This restarts the command; it is not the same as reconnecting the existing RTMPS transport.
  • FFmpeg restarts but the event does not recover: check the endpoint, key, event state and YouTube’s stream health. A continuing internet outage or a rejected key will not be fixed by repeated restarts.

FFmpeg’s HTTP documentation describes reconnect as: “Reconnect automatically when disconnected before EOF is hit.” That description is scoped to HTTP, not a general RTMPS-output recovery promise.

How do I make FFmpeg restart after the internet drops?

For an unattended church stream, run the known-good FFmpeg command under an operating-system service manager or another supervisor configured to restart it after failure. Set a delay between attempts, retain logs, and make sure the command can be safely run again from the beginning. The exact service-manager configuration depends on your operating system, account, command, environment and file paths; do not copy a generic configuration without adapting and testing it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
  • DUAL-BAND WIFI 6 ROUTER: Wi-Fi 6(802.11ax) technology achieves faster speeds, greater capacity and reduced network congestion compared to the previous gen. All WiFi routers require a separate modem. Dual-Band WiFi routers do not support the 6 GHz band.
  • AX1800: Enjoy smoother and more stable streaming, gaming, downloading with 1.8 Gbps total bandwidth (up to 1200 Mbps on 5 GHz and up to 574 Mbps on 2.4 GHz). Performance varies by conditions, distance to devices, and obstacles such as walls.
  • CONNECT MORE DEVICES: Wi-Fi 6 technology communicates more data to more devices simultaneously using revolutionary OFDMA technology
  • EXTENSIVE COVERAGE: Achieve the strong, reliable WiFi coverage with Archer AX1800 as it focuses signal strength to your devices far away using Beamforming technology, 4 high-gain antennas and an advanced front-end module (FEM) chipset
  • OUR CYBERSECURITY COMMITMENT: TP-Link is a signatory of the U.S. Cybersecurity and Infrastructure Security Agency’s (CISA) Secure-by-Design pledge. This device is designed, built, and maintained, with advanced security as a core requirement.
  1. Confirm the command works manually. Test the full input and output path before adding supervision. Record the expected FFmpeg exit behavior and where its logs appear. Restarting the process can also restart inputs and encoders, so ensure doing so is acceptable for your capture setup.
  2. Configure supervision for the correct command and user. Have the supervisor launch the same tested command and restart it when it exits. Add a short retry delay so a persistent error does not create a rapid restart loop. Choose shutdown behavior that stops the child FFmpeg process cleanly when the supervisor or machine stops.
  3. Keep logs and secrets separate. Retain enough FFmpeg output to diagnose failures, but do not put the stream key in public scripts, shared repositories or routine logs. Restrict access to configuration files that contain it.
  4. Test an intentional disconnect. During rehearsal, interrupt the encoder’s network connection or stop the primary encoder, observe whether FFmpeg exits, and confirm that the supervisor relaunches it. Then check that YouTube receives audio and video again.
  5. Confirm the event in YouTube Studio. Check the Live Control Room preview, event state and stream health after the restart. Have a person ready to take over if the expected event does not resume.

A restart policy handles process termination; it cannot guarantee recovery from a long ISP outage, invalid credentials, an incompatible stream configuration or YouTube-side event changes. The official guidance does not specify a universal disconnect grace period or promise same-event continuation.

What FFmpeg reconnect options actually cover

FFmpeg command-line options are positional: an option applies to the relevant input or output group. Do not place an HTTP option before an RTMPS output as if it controlled that output. If your command has an HTTP input, HTTP reconnect options may be relevant to that input, subject to the installed FFmpeg build and the specific failure.

Rank #2
Sale
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
  • Dual-band Wi-Fi with 5 GHz speeds up to 867 Mbps and 2.4 GHz speeds up to 300 Mbps, delivering 1200 Mbps of total bandwidth¹. Dual-band routers do not support 6 GHz. Performance varies by conditions, distance to devices, and obstacles such as walls.
  • Covers up to 1,000 sq. ft. with four external antennas for stable wireless connections and optimal coverage.
  • Supports IGMP Proxy/Snooping, Bridge and Tag VLAN to optimize IPTV streaming
  • Access Point Mode - Supports AP Mode to transform your wired connection into wireless network, an ideal wireless router for home
  • Advanced Security with WPA3 - The latest Wi-Fi security protocol, WPA3, brings new capabilities to improve cybersecurity in personal networks

The HTTP protocol documentation includes options for reconnecting before EOF, treating EOF as an error for live or endless HTTP streams, reconnecting on certain network errors, filtering HTTP status codes, setting retry delays and limits, and honoring Retry-After. These are HTTP behaviors, not proof that RTMPS publishing will reconnect.

Check the installed build and its help before relying on an option:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
NETGEAR Nighthawk WiFi 6 Router R6700AX, Up to 1,500 sq ft, 1.8 Gbps
  • NIGHTHAWK WIFI 6 ROUTER FOR YOUR WHOLE HOME: Delivers fast, reliable WiFi across every room of your apartment or small home for streaming, gaming, video calls, and smart home devices, all running at the same time without slowing each other down.
  • WORKS WITH YOUR EXISTING INTERNET SERVICE: Pairs with your existing modem or gateway via ethernet. Compatible with most cable, fiber, DSL, and satellite providers. Some gateways and modem router combos may require bridge mode. No coax needed.
  • SET UP AND MANAGE YOUR NETWORK WITH THE NIGHTHAWK APP: Download the free Nighthawk app on iOS or Android for guided setup. Manage WiFi, run speed tests, pause devices, and set up guest networks from anywhere. Active internet required.
  • READY FOR THE DEVICES YOU ALREADY OWN: Your phones, laptops, and TVs work right out of the box. WiFi 6 delivers speeds up to 1.8 Gbps across 2.4 GHz and 5 GHz bands. Backward compatible with WiFi 5 and earlier.
  • COVERAGE IN EVERY ROOM: Covers up to 1,500 sq. ft. for up to 20 connected devices. Walls, floors, and interference can reduce range. Larger or multi-story homes may benefit from a NETGEAR Orbi mesh WiFi system.

ffmpeg -version
ffmpeg -h protocol=http

Option availability and defaults can vary by FFmpeg version and distribution build. For example, the FFmpeg 8.0 HTTP source lists defaults for reconnect_max_retries, reconnect_delay_total_max and respect_retry_after; do not assume those defaults apply to an older or differently built installation. See the FFmpeg 8.0 HTTP source.

Check YouTube’s RTMPS settings and protect the key

  1. Open your stream setup in YouTube Studio’s Live Control Room and retrieve the encoder’s server URL and stream key.
  2. Use the RTMPS URL supplied there. YouTube recommends RTMPS, a TLS-encrypted extension of RTMP; do not assume a visible default RTMP URL is the correct endpoint. See YouTube’s encoder settings and RTMPS guidance.
  3. Keep the key private. YouTube describes a stream key as password-like: it lets YouTube accept the feed. Do not publish it or commit it to a shared code repository.
  4. After a restart, verify the actual event and stream health in Live Control Room rather than assuming that a successful FFmpeg launch means the audience can see the stream.

How to rehearse recovery before a service

YouTube recommends setting up ahead of time, checking the preview, monitoring stream health and testing failover. Its guidance for testing a primary encoder includes stopping it or disconnecting its Ethernet cable. For a church, rehearse the complete recovery path rather than only checking that the command starts.

Rank #4
Sale
TP-Link BE6500 Dual-Band WiFi 7 Router (BE400)
  • 𝐅𝐮𝐭𝐮𝐫𝐞-𝐑𝐞𝐚𝐝𝐲 𝐖𝐢-𝐅𝐢 𝟕 - Designed with the latest Wi-Fi 7 technology, featuring Multi-Link Operation (MLO), Multi-RUs, and 4K-QAM. Achieve optimized performance on latest WiFi 7 laptops and devices, like the iPhone 16 Pro, and Samsung Galaxy S24 Ultra.
  • 𝟔-𝐒𝐭𝐫𝐞𝐚𝐦, 𝐃𝐮𝐚𝐥-𝐁𝐚𝐧𝐝 𝐖𝐢-𝐅𝐢 𝐰𝐢𝐭𝐡 𝟔.𝟓 𝐆𝐛𝐩𝐬 𝐓𝐨𝐭𝐚𝐥 𝐁𝐚𝐧𝐝𝐰𝐢𝐝𝐭𝐡 - Achieve full speeds of up to 5764 Mbps on the 5GHz band and 688 Mbps on the 2.4 GHz band with 6 streams. Enjoy seamless 4K/8K streaming, AR/VR gaming, and incredibly fast downloads/uploads.
  • 𝐖𝐢𝐝𝐞 𝐂𝐨𝐯𝐞𝐫𝐚𝐠𝐞 𝐰𝐢𝐭𝐡 𝐒𝐭𝐫𝐨𝐧𝐠 𝐂𝐨𝐧𝐧𝐞𝐜𝐭𝐢𝐨𝐧 - Get up to 2,400 sq. ft. max coverage for up to 90 devices at a time. 6x high performance antennas and Beamforming technology, ensures reliable connections for remote workers, gamers, students, and more.
  • 𝐔𝐥𝐭𝐫𝐚-𝐅𝐚𝐬𝐭 𝟐.𝟓 𝐆𝐛𝐩𝐬 𝐖𝐢𝐫𝐞𝐝 𝐏𝐞𝐫𝐟𝐨𝐫𝐦𝐚𝐧𝐜𝐞 - 1x 2.5 Gbps WAN/LAN port, 1x 2.5 Gbps LAN port and 3x 1 Gbps LAN ports offer high-speed data transmissions.³ Integrate with a multi-gig modem for gigplus internet.
  • 𝐎𝐮𝐫 𝐂𝐲𝐛𝐞𝐫𝐬𝐞𝐜𝐮𝐫𝐢𝐭𝐲 𝐂𝐨𝐦𝐦𝐢𝐭𝐦𝐞𝐧𝐭 - TP-Link is a signatory of the U.S. Cybersecurity and Infrastructure Security Agency’s (CISA) Secure-by-Design pledge. This device is designed, built, and maintained, with advanced security as a core requirement.
  • Run a short test stream and confirm the initial picture and sound in YouTube’s preview.
  • Interrupt the encoder’s network connection deliberately; note whether FFmpeg stays alive or exits.
  • If it exits, confirm the supervisor’s delay, restart and log behavior.
  • Confirm that video and audio return to the intended event, and inspect YouTube’s stream health.
  • Assign a human operator to respond if automated recovery does not work. For greater resilience, YouTube’s failover guidance also describes testing a backup encoder and confirming that the player rolls over; this is a more involved setup than restarting one process.

YouTube advises: “Continuously monitor streams for audio and video quality.” See its live streaming tips.

Choose the recovery method that matches the failure

Approach What it handles Main limitation Best fit
FFmpeg protocol-level reconnect Errors supported by the protocol to which the option applies; the documented reconnect options discussed here are for HTTP. Does not establish reconnection for RTMPS output. An HTTP input or another protocol-specific case confirmed in the installed build.
Process supervision FFmpeg termination, by launching the command again. Does not correct a bad URL or key, YouTube event state, or a continuing network outage. A stable unattended command where restarting the whole process is acceptable.
Backup encoder failover A separate encoder can provide a fallback path when the primary fails. More involved than a single-process restart and must be tested with the event and player. A church that needs a planned secondary encoder path.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot a stream that still will not return

FFmpeg exits repeatedly

Use the retained logs to identify whether the input, output or host is failing. If the supervisor restarts rapidly, increase the retry delay and correct the underlying error rather than letting the process loop indefinitely.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
  • Dual band router upgrades to 1200 Mbps high speed internet (300mbps for 2.4GHz plus 900Mbps for 5GHz), reducing buffering and ideal for 4K stream
  • Full Gigabit Ports - Gigabit Router with 4 Gigabit LAN ports, ideal for any internet plan and allow you to directly connect your wired devices
  • Boosted Coverage - Four external antennas equipped with Beamforming technology extend and concentrate the Wi-Fi signals
  • MU-MIMO technology - (5GHz band) allows high speeds for multiple devices simultaneously
  • Access Point Mode - Supports AP Mode to transform your wired connection into wireless network, an ideal wireless router for home

FFmpeg runs, but YouTube receives no feed

Check that the command is publishing to the RTMPS server URL and key currently shown for the intended event. Confirm the output settings and inspect the YouTube preview and stream health. HTTP reconnect options do not establish recovery for an RTMPS output.

The event does not resume after a successful process restart

Check the Live Control Room event state and rehearse whether that event accepts a restarted encoder. YouTube’s official pages do not promise that every interruption will rejoin the same event.

Drops continue after recovery

Investigate the upstream connection, available upload capacity and local network stability. YouTube recommends an upload-speed test and monitoring stream health. A process supervisor can retry after a drop, but repeated retries do not stabilize an unreliable connection.

Or let it run in the cloud

If you want a YouTube channel to keep looping uploaded church recordings without leaving an encoder computer on at the church, StreamNeo is a cloud option. Its setup is: upload a recording or build a playlist, add your YouTube stream key, then go live. It plays uploaded videos rather than broadcasting a camera feed.

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

Quick Recap

SaleBestseller No. 1
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
VPN SERVER: Archer AX21 Supports both Open VPN Server and PPTP VPN Server
$59.98
SaleBestseller No. 2
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
Supports IGMP Proxy/Snooping, Bridge and Tag VLAN to optimize IPTV streaming
$24.32
Bestseller No. 5
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
MU-MIMO technology - (5GHz band) allows high speeds for multiple devices simultaneously
$44.99
  • Nothing has to stay on at home or at the church for the cloud stream to keep running.
  • Any uploaded quality up to 4K 60fps streams as made, 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. The monthly option is $9.99 per month.

Start your free StreamNeo 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.