DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
DocumentaryTube
Admit one · Blog

How to Fix FFmpeg YouTube Stream Stopping With Broken Pipe Errors

A YouTube “Broken pipe” message means FFmpeg’s output write failed, but not why. Diagnose the log and Live Control Room health before changing settings or adding recovery.
Opened Runtime6 min Written byDocumentaryTube Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A “Broken pipe” message means FFmpeg could not write to its YouTube output; it does not, by itself, identify why. The connection may have failed, YouTube may have closed the ingest, the URL or stream key may be wrong or stale, or an upstream input may have stopped. Check the FFmpeg log and YouTube Live Control Room first, then change only the setting that evidence points to.

1. Find where the failure begins

Save the FFmpeg output around the first error, including the lines before “Broken pipe.” The last message is the symptom, not a diagnosis. Note whether FFmpeg was opening the connection or had been writing successfully, and whether the input was still advancing when output failed.

At the same timestamp, check the event in YouTube Live Control Room. Its stream health and timestamped error messages can distinguish critical errors from moderate quality problems; unresolved errors continue to appear. Use the reported problem to guide the next check rather than changing several encoder flags at once. YouTube’s live stream troubleshooting guide.

If the input itself stopped advancing, investigate that input separately; an output reconnect will not fix an upstream source that has ended or stalled. A precise diagnosis depends on the command and surrounding log, so redact stream keys, credentials, and private URLs before sharing either.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
TP-Link USB to Ethernet Adapter,Support Nintendo Switch,1Gbps,Plug and Play
  • 𝐇𝐢𝐠𝐡-𝐒𝐩𝐞𝐞𝐝 𝐔𝐒𝐁 𝐄𝐭𝐡𝐞𝐫𝐧𝐞𝐭 𝐀𝐝𝐚𝐩𝐭𝐞𝐫 - UE306 is a USB 3.0 Type-A to RJ45 Ethernet adapter that adds a reliable wired network port to your laptop, tablet, or Ultrabook. It delivers fast and stable 10/100/1000 Mbps wired connections to your computer or tablet via a router or network switch, making it ideal for file transfers, HD video streaming, online gaming, and video conferencing.
  • 𝐔𝐒𝐁 𝟑.𝟎 𝐟𝐨𝐫 𝐅𝐚𝐬𝐭𝐞𝐫, 𝐌𝐨𝐫𝐞 𝐒𝐭𝐚𝐛𝐥𝐞 𝐃𝐚𝐭𝐚 𝐓𝐫𝐚𝐧𝐬𝐟𝐞𝐫𝐬- Powered via USB 3.0, this adapter provides high-speed Gigabit Ethernet without the need for external power(10/100/1000Mbps). Backward compatible with USB 2.0/1.1, it ensures reliable performance across a wide range of devices.
  • 𝐒𝐮𝐩𝐩𝐨𝐫𝐭𝐬 𝐍𝐢𝐧𝐭𝐞𝐧𝐝𝐨 𝐒𝐰𝐢𝐭𝐜𝐡- Easily connect your Nintendo Switch to a wired network for faster downloads and a more stable online gaming experience compared to Wi-Fi.
  • 𝐏𝐥𝐮𝐠 𝐚𝐧𝐝 𝐏𝐥𝐚𝐲- No driver required for Nintendo Switch, Windows 11/10/8.1/8, and Linux. Simply connect and enjoy instant wired internet access without complicated setup.
  • 𝐁𝐫𝐨𝐚𝐝 𝐃𝐞𝐯𝐢𝐜𝐞 𝐂𝐨𝐦𝐩𝐚𝐭𝐢𝐛𝐢𝐥𝐢𝐭𝐲- Supports Nintendo Switch, PCs, laptops, Ultrabooks, tablets, and other USB-powered web devices; works with network equipment including modems, routers, and switches.

2. Verify the YouTube ingest URL and key

In Live Control Room, confirm the current stream URL and key, then compare them with the FFmpeg output endpoint. If you switched or recreated a stream, refresh the values rather than relying on an old command.

For RTMPS, copy the RTMPS URL shown under the lock icon in the stream settings. Do not turn an RTMP URL into an RTMPS URL by editing its text. For a YouTube SSL error, YouTube specifically advises checking that both the server and protocol use rtmps; if the URL appears correct and the SSL error persists, its guidance suggests port 443 and asks you to verify that the encoder supports RTMPS. Those checks apply to related connection or SSL errors, not every broken-pipe failure. YouTube’s RTMPS guidance.

Rank #2
Amazon Basics USB 3.0 to 10/100/1000 Gigabit Ethernet Internet Adapter, Compatible with Windows and macOS, Black
  • Connects a USB 3.0 device (computer/laptop) to a router, modem, or network switch to deliver Gigabit Ethernet to your network connection. Does not support Smart TV or gaming consoles (e.g.Nintendo Switch).
  • Supported features include Wake-on-LAN function, Green Ethernet & IEEE 802.3az-2010 (Energy Efficient Ethernet)
  • Supports IPv4/IPv6 pack Checksum Offload Engine (COE) to reduce Cental Processing Unit (CPU) loading
  • Compatible with Windows 8.1 or higher, Mac OS

3. Match FFmpeg settings to YouTube’s ingest requirements

Use the resolution and bitrate selected for the YouTube stream, and compare them with the settings reported in Live Control Room. YouTube’s current encoder guidance supports RTMP/RTMPS and lists H.264, H.265, and AV1 video codecs, up to 60 fps. It recommends constant bitrate (CBR) and a keyframe every two seconds, with an interval no longer than four seconds. Recommended bitrate varies with codec, resolution, and frame rate. Check YouTube’s current encoder settings and bitrate tables; guidance can change, so verify it there when configuring a stream.

Illustrative H.264 bitrate values

For H.264, YouTube lists these values for the specified frame rate. They are ingest recommendations, not a measurement of what your internet connection can sustain.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
USB A/C to Ethernet Adapter, 3xUSB3.0 and 1000M RJ45 Network hub for Laptop
  • [Expansion Ports] The USB C to Ethernet Adapter expands the device to three USB 3.0 ports and one Gigabit Ethernet port. Provides you more peripheral ports while maintaining a stable network connection, plug and play, no driver required.
  • [Gigabit Network Port] ALL-LUCKY USB Ethernet Adapter transmission rate up to 1000Mbps, also compatible with 10/100Mbps bandwidth. It allows you to enjoy a smooth and stable network connection and avoid too much lag. (Note: To reach 1Gbps, please use CAT6 or above Ethernet cable connection)
  • [Convertible Connector]This usb hub with ethernet not only has USB-A connector, but also can be converted to USB-C connector, so that you can easily convert the connector according to the device port, improve the convenience of use.
  • [High-Speed Data Transfer] The usb to ethernet adapter adopts USB 3.0 transmission technology, supports up to 5Gbps transmission rate, and is compatible with USB 2.0(480Gbps),USB 1.0(12Mbps), easily transfer video, files and other data for you in seconds. (Note: Maximum output current is 900mA, does not support charging devices.)
  • [Widely Compatible]The usb c ethernet adapter for iMac, MacBook Pro, iPad Pro, XPS and many other devices. Compatible with Windows 11/10/8.1/8, Mac OS, iPad OS, Chrome OS.(Note: Driver is required on Win 7) It can be used in office, school, library and other occasions, compact and portable, easy to carry around.
Resolution and frame rate Minimum bitrate Recommended bitrate
1080p at 30 fps 5 Mbps 14 Mbps
720p at 30 fps 3 Mbps 8 Mbps

YouTube’s live error guide also flags unsupported codecs or audio, an incorrect resolution/bitrate, missing or multiple audio/video streams, and frame-rate or keyframe problems. Correct the mismatch identified by the stream health report; do not assume a codec or bitrate change will resolve a network write failure. See YouTube’s error explanations.

4. Check whether the upload connection can sustain the stream

Compare the selected stream bitrate with sustainable upload capacity, not just a brief best-case speed. YouTube recommends testing upload bitrate and testing the stream before going live. Account for other traffic using the connection; if capacity is too low or variable, lower the resolution or bitrate and try again with representative motion and audio. Watch stream health during the test. YouTube’s encoder guide.

Rank #4
Anker USB C to Ethernet Adapter, Portable 1 Gbps Network Hub
  • The Anker Advantage: Join the 65 million+ powered by our leading technology.
  • Instant Internet: Connect to the internet instantly from virtually any USB-C 3.0 device, and enjoy stable connection speeds of up to 1 Gbps.
  • Lightweight and Compact: The space-saving and portable design measures just over half an inch thick and weighs about the same as a AA battery.
  • Premium Build: Features a sleek aluminum exterior and braided-nylon cable to complement the design of high-end devices.
  • What You Get: PowerExpand USB-C to Gigabit Ethernet Adapter, welcome guide, 18-month worry-free warranty, and friendly customer service.

A lower-quality target that the connection can hold steadily is generally more useful than a higher target that repeatedly drops. The published bitrate recommendations describe encoder settings, not a guarantee that a particular connection will carry them reliably.

5. Decide whether FFmpeg should retry a transient output failure

Direct output is simpler. If the input continues but a temporary output write failure interrupts delivery, FFmpeg’s FIFO pseudo-muxer can queue packets and run the actual muxer in another thread, with an option to attempt recovery. This adds resilience to some transient failures; it does not establish that YouTube or the network is healthy, and it cannot guarantee seamless resumption of the same live session. FFmpeg documents the FIFO muxer and its options.

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.
Best Value
BENFEI USB 3.0 to Ethernet Adapter, USB C to RJ45 Gigabit LAN (1000Mbps) Network Adapter, Compatible with MacBook/Pro/Air, Surface Pro, Windows 11/10/8/7, Mac OS [Aluminium Shell&Nylon Cable]
  • COMPACT DESIGN - The compact-designed portable BENFEI USB A/C to Ethernet adapter connects your computer or tablet to a router,modem or network switch for network connection. It adds a standard RJ45 port to your Ultrabook, notebook or Macbook Air for file transferring, video conferencing, gaming, and HD video streaming.
  • SUPERIOR STABILITY - Built-in advanced IC chip works as the bridge between RJ45 Ethernet cable and your USB A/C devices. The driver-free installation with native driver support in Chrome, Mac, and Windows OS; The USB A/C Ethernet adapter dongle supports important performance features including Wake-on-Lan (WoL), Full-Duplex (FDX) and Half-Duplex (HDX) Ethernet, Crossover Detection, Backpressure Routing, Auto-Correction (Auto MDIX).
  • INCREDIBLE PERFORMANCE - Supports full 10/100/1000Mbps gigabit ethernet performance over USB A/C's 5Gbps bus, faster and more reliable than most wireless connections. Link and Activity LEDs. USB powered, no external power required. Backward compatible with USB 2.0/1.1.✅ To reach 1Gbps, make sure to use CAT6 & up Ethernet cables.
  • BROAD COMPATIBILITY - The USB A/C-Ethernet adapter is compatible with Windows 11/10/8.1/8/7/Vista/XP, Mac OSX 10.6/10.7/10.8/10.9/10.10/10.11/10.12, Linux kernel 3.x/2.6, Android and Chrome OS.Compatible with IEEE 802.3, IEEE 802.3u and IEEE 802.3ab. Supports IEEE 802.3az (Energy Efficient Ethernet).❌Do Not Support Windows RT. (NOT compatible with Nintendo Switch.)
  • 18 MONTH WARRANTY - Exclusive BENFEI Unconditional 18-month Warranty ensures long-time satisfaction of your purchase; Friendly and easy-to-reach customer service to solve your problems timely.

Example using FIFO output

ffmpeg -re -i INPUT 
  -c:v libx264 -c:a aac 
  -f fifo -fifo_format flv 
  -drop_pkts_on_overflow 1 
  -attempt_recovery 1 
  -recovery_wait_time 1 
  -map 0:v -map 0:a 
  'rtmp://YOUR_CURRENT_YOUTUBE_INGEST_URL/YOUR_STREAM_KEY'

This adapts FFmpeg’s documented RTMP example; replace the illustrative input and endpoint with your actual values. Keep the stream key private. Confirm that the input has both video and audio before using the two explicit maps, or adjust the maps to match your source. Verify the option names against the FFmpeg build you use.

Understand the recovery trade-offs

  • -attempt_recovery 1 enables retries; FFmpeg’s default is off. In the example, -recovery_wait_time 1 sets a one-second wait. The documented default is five seconds.
  • max_recovery_attempts defaults to zero, meaning unlimited attempts. For a production service, consider a finite limit and a deliberate process supervisor/restart policy rather than an uncontrolled retry loop.
  • The FIFO queue defaults to 60 packets. A larger queue can hold more media during a short interruption, but also keeps more queued content and cannot solve a prolonged outage.
  • -drop_pkts_on_overflow 1 lets the encoder keep moving instead of blocking when the queue fills. The cost is omitted packets, which can cause a visible or audible gap. Blocking avoids that packet loss but can stall encoding.
  • FFmpeg documents restart_with_keyframe for waiting for a keyframe after recovery. Test whether it helps produce a clean video restart with your encoder and stream.

Test recovery on a controlled stream before relying on it during an event. If the stream was intentionally stopped, the key is invalid, YouTube rejects the configuration, or the ingest session no longer accepts output, retrying may not restore the same event. Check Live Control Room rather than assuming reconnect means publishing has resumed.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

6. Treat TCP keepalive as a narrow diagnostic aid

FFmpeg’s TCP protocol supports keepalive, which enables the operating system’s basic SO_KEEPALIVE behavior; it is disabled by default. It may help detect dead peers on long-lived idle connections, but it does not repair a broken route or guarantee recovery from a broken pipe. It is not a general-purpose fix for a stream that is actively failing while writing. FFmpeg TCP protocol options.

7. Troubleshoot by symptom

What you observe What to check next
Failure occurs while opening or reconnecting Recheck the current URL and key in Live Control Room, RTMP/RTMPS selection, and encoder support for RTMPS if applicable.
Output worked, then failed; input still advances Compare the failure time with YouTube’s health messages and check upload stability. FIFO recovery may help with a transient output interruption.
YouTube reports a codec, audio, resolution, bitrate, frame-rate, or keyframe error Correct that specific ingest mismatch using the current YouTube settings and error guidance.
Stream health worsens during motion or busy network use Test upload capacity under realistic conditions, account for competing traffic, and lower the target bitrate or resolution if needed.
FFmpeg retries but the event does not resume Check whether the key, configuration, or YouTube session is still accepting output; retries do not guarantee session continuity.

Or let it run in the cloud

If your goal is a 24/7 YouTube loop rather than debugging an FFmpeg process, StreamNeo is a cloud option: upload your video, add your YouTube stream key, and go live. Nothing has to stay on at home; it streams the uploaded file as made, up to 4K 60fps, at one price per slot, and automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly is $9.99 per month. StreamNeo streams to YouTube only. See StreamNeo or start the free first day.

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

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 Transform Mars into Our Second HomeAdmit one · ScienceHow to Transform Mars into Our Second HomeOpened05 OCT 2026Runtime5 min
  2. Making the Connection: Which Documentary?Admit one · HealthMaking the Connection: Which Documentary?Opened05 OCT 2026Runtime2 min
  3. One Of The Biggest Wonders On Our Planet | Red SeaAdmit one · NatureOne Of The Biggest Wonders On Our Planet | Red SeaOpened05 OCT 2026Runtime2 min
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

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.