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 DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
Mountain View desk5 min

Why FFmpeg Shows “Broken Pipe” When Streaming Radio to YouTube

FFmpeg’s broken pipe reports a failed output write, not its cause. Use the log, local-file tests, YouTube ingest settings, and connection checks to narrow it down.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

FFmpeg’s “Broken pipe” error means it tried to write data to an output that was no longer accepting it. It identifies a failed write, not the underlying cause: the connection may have dropped, YouTube’s ingest may have closed, settings or credentials may have been rejected, or an earlier input or process failure may have left FFmpeg with nowhere to write. The error by itself does not prove a YouTube outage or a particular network fault.

What “Broken pipe” tells you—and what it doesn’t

FFmpeg’s error table maps EPIPE to “Broken pipe.” In a YouTube radio relay, the message can appear as av_interleaved_write_frame(): Broken pipe or in a trailer-writing error. Those phrases say where FFmpeg encountered a failed output write; they do not identify why the write failed. FFmpeg error codes

As an Amazon Associate I earn from qualifying purchases.

The cause has to be found from the events before the final line and by separating the input path from the output path. A radio source that stopped producing audio, an encoder or process problem, an ingest closure, invalid credentials, and a network interruption require different fixes.

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.

Find the first failure in the log

  1. Save the complete output. Capture the log from before the first warning or error, not just the last “Broken pipe” line. Add -report if you need a fuller FFmpeg diagnostic log. Before sharing a command or log, redact the stream key: YouTube describes it as the credential that lets the service accept the feed. YouTube encoder streaming settings
  2. Locate the earliest warning or error. Review stream mapping and input progress as well as output messages. Note whether the failure is at startup, at an input boundary or loop, after an idle period, or after a long run. Timing can guide investigation, but does not prove a cause; a historical FFmpeg-user report, for example, records broken-pipe and trailer errors after a relay had run for hours without establishing why it stopped. FFmpeg-user mailing-list report
  3. Keep the output destination in the log review. Check the RTMP/RTMPS destination and stream credentials, but never publish the full URL if it contains the key.

Separate radio input problems from output problems

Test the two sides independently where practical. First check that the radio source remains reachable and that FFmpeg continues to receive and process packets. Then write a representative input to a local file. If that succeeds, try a known-good file as input to the YouTube destination. FFmpeg-user troubleshooting recommends this kind of local-file and RTMP separation; it is a diagnostic technique, not a guaranteed fix. FFmpeg-user troubleshooting discussion

#1 Best Overall
Focusrite Scarlett Solo 3rd Gen USB-C Audio Interface
  • Pro performance with great pre-amps - Achieve a brighter recording thanks to the high performing mic pre-amps of the Scarlett 3rd Gen. A switchable Air mode will add extra clarity to your acoustic instruments when recording with your Solo 3rd Gen
  • Get the perfect guitar and vocal take with - With two high-headroom instrument inputs to plug in your guitar or bass so that they shine through. Capture your voice and instruments without any unwanted clipping or distortion thanks to our Gain Halos
  • Studio quality recording for your music & podcasts - Achieve pro sounding recordings with Scarlett 3rd Gen’s high-performance converters enabling you to record and mix at up to 24-bit/192kHz. Your recordings will retain all of their sonic qualities
  • Low-noise for crystal clear listening - 2 low-noise balanced outputs provide clean audio playback with 3rd Gen. Hear all the nuances of your tracks or music from Spotify, Apple & Amazon Music. Plug-in headphones for private listening in high-fidelity
  • Everything in the box: Includes Pro Tools Intro+, Ableton Live Lite, Cubase LE, and Hitmaker Expansion: a suite of essential effects, powerful software instruments, and easy-to-use mastering tools
What the test shows Where to investigate next
The radio source stops producing packets or fails when recording locally. Investigate the source URL, source availability, and the input or process errors that appear before the failed output write.
The source records locally, but a known-good file also fails at the YouTube destination. Check the destination URL, key, ingest status, stream settings, and outbound connectivity.
A known-good file reaches YouTube, but the live radio input does not. Focus on the radio source, its continuity, and how FFmpeg handles the input or transitions.
The log alone does not isolate the cause. Compare its timestamps with YouTube Live Control Room’s preview and stream-health messages.

Check YouTube’s ingest settings and stream health

In YouTube Live Control Room, use the server URL and stream key shown for the stream, then check its preview, ingest state, and any stream-health message. YouTube’s encoder guidance lists RTMP and RTMPS ingest and recommends RTMPS for an encrypted connection. It lists H.264, H.265 (HEVC), or AV1 video; AAC or MP3 audio; constant bitrate (CBR); frame rates up to 60 fps; and a recommended two-second keyframe interval that should not exceed four seconds. These are YouTube’s recommendations, not proof that any one deviation causes EPIPE. YouTube live encoder settings

H.264 bitrate recommendations

The following are YouTube’s recommended H.264 video bitrates, not measurements of your stream:

Rank #2
Focusrite Scarlett Solo 4th Gen USB-C Audio Interface
  • The new generation of the songwriter's interface: Plug in your mic and guitar and let Scarlett Solo 4th Gen bring big studio sound to wherever you make music
  • Studio-quality sound: With a huge 120dB dynamic range, the newest generation of Scarlett uses the same converters as Focusrite’s flagship interfaces, found in the world's biggest studios
  • Find your signature sound: Scarlett 4th Gen's improved Air mode lifts vocals and guitars to the front of the mix, adding musical presence and rich harmonic drive to your recordings
  • All you need to record, mix and master your music: Includes industry-leading recording software and a full collection of record-making plugins
  • Everything in the box: Includes Pro Tools Intro+, Ableton Live Lite, Cubase LE, and Hitmaker Expansion: a suite of essential effects, powerful software instruments, and easy-to-use mastering tools
Resolution and frame rate Recommended bitrate
480p at 30 fps 3 Mbps
720p at 30 fps 6 Mbps
720p at 60 fps 8 Mbps
1080p at 30 fps 10 Mbps
1080p at 60 fps 12 Mbps

For stereo audio, YouTube’s advanced recommendations include 44.1 kHz sampling and 128 kbps. Test the encoder before going live and watch stream health and messages while the stream runs. YouTube live encoder settings

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

Check upload capacity and connection stability

Measure outbound upload capacity under realistic conditions, including other people or devices sharing the connection. YouTube recommends capacity for the total stream bitrate plus 20% headroom and warns that a connectivity disruption can break a live stream. Download speed alone does not establish that the upload path can sustain the feed. YouTube live encoder settings YouTube live streaming troubleshooting

Rank #3
SABRENT USB External Stereo Sound Card Adapter, Plug & Play (AU-MMSA)
  • PLUG IN AND HEAR SOUND IN SECONDS - USB Type-A connector with a 3.5mm stereo headphone output and a separate 3.5mm mono microphone input. No drivers, no software, no external power - the adapter is USB bus-powered and is recognized as a standard USB audio device.
  • WORKS ON WINDOWS, MAC AND LINUX - Driverless on Windows 98SE/ME/2000/XP/Server 2003/Vista/7/8, Linux and Mac OSX, and compliant with the USB Audio Device Class 1.0 specification, so any system that supports class-compliant USB audio will see it. Select it as the sound output and input device after plugging it in.
  • TWO JACKS, TWO JOBS - The green jack is stereo OUT for headphones or powered speakers; the pink jack is mono microphone IN for a 3.5mm mic. It does NOT support 4-pole headsets on a single combo plug, it does NOT power passive speakers, and it does NOT add surround sound - it is a stereo 2-channel adapter.
  • FOR LAPTOPS AND DESKTOPS THAT NEED AN AUDIO PORT BACK - Adds a headphone and mic port to a laptop, desktop, or mini PC whose onboard jack has failed or was never there. Managed and work-issued computers can block new USB audio devices by policy - check with your IT department before ordering for a company machine.
  • SABRENT SUPPORT AND WARRANTY - What is in the box: one USB audio sound adapter. Backed by a 1-year limited warranty, extended to 2 years when you register within 90 days on the manufacturer's website.

Common symptoms and the next check

  • Failure immediately at startup: Inspect earlier log messages and verify the URL, key, ingest state, and compatible encoder settings. “Broken pipe” alone does not tell you which check failed.
  • Failure after a long run: Compare log timestamps with input transitions, network events, and YouTube stream-health messages. A long delay is useful context, not proof that a timeout or outage occurred.
  • Failure when the radio source changes or loops: Check whether FFmpeg still receives packets and test the source locally, apart from the YouTube destination.
  • Failure during otherwise continuous output: Check outbound capacity and connection events, then verify the destination and ingest status. A connection disruption can interrupt a live stream.
  • FFmpeg exits and the stream stays down: A restart policy can restore the process after it exits, but that addresses availability rather than the underlying cause. Record timestamps and uptime so you can correlate the next failure with input and network events.

What to collect before asking for help

A specific command-line fix cannot be chosen from the EPIPE message alone. Include the FFmpeg version/build, the command with the key redacted, the complete log from before the first error, whether the input is local or remote, and YouTube’s stream-health status at the time. Those details help establish whether the failure is on the input, encoding, network, or ingest side.

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

Or let it run in the cloud

If your goal is a continuous YouTube radio stream, StreamNeo is a cloud service for keeping a channel live from uploaded videos: upload a recording or build a playlist, add your YouTube stream key, and go live. It loops the uploaded material without a home computer or connection needing to stay on. StreamNeo plays uploaded videos; it does not go live from a camera.

Best Value
Focusrite Scarlett 2i2 4th Gen USB-C Audio Interface
  • The new generation of the artist's interface: Connect your mic to Scarlett's 4th Gen mic pres. Plug in your guitar. Fire up the included software. Start making your first big hit
  • Studio-quality sound: With a huge 120dB dynamic range, the newest generation of Scarlett uses the same converters as Focusrite’s flagship interfaces, found in the world's biggest studios
  • Never lose a great take: Scarlett 4th Gen's Auto Gain sets the perfect level for your mic or guitar, and Clip Safe prevents clipping, so you can focus on the music
  • Find your signature sound: Air mode lifts vocals and guitars to the front of the mix, adding musical presence and rich harmonic drive to your recordings
  • With Scarlett 4th Gen, you have all you need to record, mix and master your music: Includes industry-leading recording software and a full collection of record-making plugins
Rank #4
M-AUDIO M-Track Duo USB Audio Interface
  • Podcast, Record, Live Stream, This Portable Audio Interface Covers it All - USB sound card for Mac or PC delivers 48kHz audio resolution for pristine recording every time
  • Be ready for anything with this versatile M-AUDIO interface - Record guitar, vocals or line input signals with two combo XLR / Line / Instrument Inputs with phantom power
  • Everything you Demand from an Audio Interface for Fuss-Free Monitoring - 1/4" headphone output and stereo 1/4" outputs for total monitoring flexibility; USB/Direct switch for zero latency monitoring
  • Get the best out of your Microphones - M-Track Duo’s transparent Crystal Preamps guarantee optimal sound from all your microphones including condenser mics
  • The MPC Production Experience - Includes MPC Beats Software complete with the essential production tools from Akai Professional
  • There is no computer at home that has to stay on.
  • Uploaded video streams as made, up to 4K 60fps, at one flat price per slot.
  • Automatic recovery is included if YouTube drops the stream.
  • The first day is free, with no card required.
  • Monthly: $9.99 per month.

See StreamNeo or start the 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.

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

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
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.