Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Mountain View desk6 min

How to Send an Icecast Radio Stream to YouTube with FFmpeg

Learn how to combine an Icecast radio feed with a still image and send it to YouTube Live using FFmpeg, including key settings and common fixes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To stream Icecast to YouTube with FFmpeg, use your station’s listener or playback URL as the audio input, combine it with a video source such as looping station artwork, and send the result to YouTube Live using the ingest URL and stream key from YouTube Studio. YouTube recommends RTMPS, constant bitrate (CBR), and a two-second keyframe interval. This guide shows an illustrative command and how to test and troubleshoot it.

What you need before you start

  • An Icecast listener/playback URL for the station’s mount point. It is not the source-client publishing address.
  • An image file for a simple video layer, such as station-artwork.jpg. A radio feed is audio; this example pairs it with a still image to produce a video stream.
  • FFmpeg built with the protocols and encoders required by your chosen inputs and output. Feature availability can vary by build.
  • A YouTube channel eligible to use live streaming, plus a stream configured in YouTube Studio.
  • A stable outbound internet connection with enough upload capacity for the selected video and audio bitrates, plus overhead.

The exact Icecast URL and any access requirements depend on your station. FFmpeg’s protocol documentation describes its icecast:// protocol for sending streams to Icecast servers; for this workflow, FFmpeg reads the station’s listener URL as an input instead.

As an Amazon Associate I earn from qualifying purchases.

Get the Icecast listener URL and YouTube ingest details

Use the playback address for the mount point

Obtain the station’s listener URL from its operator or documentation. It may use HTTP or HTTPS, and the stream may be MP3, AAC, Opus, or another format. If the mount requires authentication or particular request headers, the plain example command below may need adjustment.

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

Copy the YouTube URL and key

  1. Open YouTube Studio and go to Live Control Room.
  2. Create or open the stream you intend to use, then copy the displayed stream URL and stream key.
  3. Use the URL and key exactly as shown for that stream. The key functions like a password for accepting the encoder feed.

Keep the key private: do not put a real key in an article, screenshot, shell history, public repository, or exposed log. If it is exposed, reset it in Live Control Room and update the encoder.

#1 Best Overall
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.

Prepare an illustrative FFmpeg command

This template loops a still image, reads audio from Icecast, maps the image as video and the feed as audio, encodes H.264 and AAC, then sends an FLV output to YouTube over RTMPS. It is an illustrative template, not a tested command. Replace the example listener URL and artwork filename locally. Set the output to the server URL and key shown by YouTube; never publish your actual key.

export ICECAST_URL='https://radio.example.org/live.mp3'
export YT_INGEST='rtmps://a.rtmps.youtube.com:443/live2/YOUR_STREAM_KEY'
ffmpeg -re 
  -stream_loop -1 -framerate 1 -i station-artwork.jpg 
  -i "$ICECAST_URL" 
  -map 0:v:0 -map 1:a:0 
  -c:v libx264 -preset veryfast -tune stillimage 
  -r 30 -g 60 -b:v 2500k -maxrate 2500k -bufsize 5000k 
  -c:a aac -b:a 128k -ar 44100 
  -f flv "$YT_INGEST"

Understand the important options

  • -stream_loop -1 repeats the image indefinitely; -framerate 1 reads the still image as a low-rate input before output encoding.
  • -map 0:v:0 -map 1:a:0 selects video from the image input and audio from the Icecast input. If the feed has no audio stream or a different stream layout, this mapping will fail or need revision.
  • -r 30 -g 60 sets 30 output frames per second and a 60-frame GOP, corresponding to a two-second keyframe interval.
  • -b:v and -maxrate set the example video bitrate and ceiling; -bufsize sets the rate-control buffer. The 2,500 kbps video value is an editorial starting point for this static-image example, not YouTube’s recommendation. YouTube’s current encoder page recommends 8 Mbps for 720p30 H.264.
  • -b:a 128k -ar 44100 sets stereo AAC audio to 128 kbps and 44.1 kHz in the usual default channel layout. YouTube recommends 128 kbps and 44.1 kHz for stereo audio.
  • -f flv selects the output container commonly used for RTMP/RTMPS ingest. The server URL, port, protocol, and key must match the values YouTube displays.

For the official settings and supported codecs, see YouTube’s encoder settings and bitrate guidance. It recommends RTMPS, CBR, H.264, HEVC, or AV1 video, AAC or MP3 audio for RTMP/RTMPS, and a two-second keyframe interval—do not exceed four seconds. These settings are recommendations, not a guarantee that your particular connection can sustain a given bitrate. Leave upload headroom and lower the video bitrate or resolution if the connection is unstable.

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.

Start the broadcast and verify it in YouTube

  1. Start FFmpeg from a terminal where the environment variables are set and the artwork file is accessible.
  2. Open the stream in Live Control Room and wait for its preview or incoming-feed indication.
  3. For a scheduled stream, select Go live in Live Control Room when the preview is ready.
  4. During the broadcast, monitor YouTube’s stream-health status and messages as well as FFmpeg’s terminal output. YouTube’s guidance says, “Make sure to test before you start your live stream.”
  5. At the end, stop FFmpeg from sending content and end the broadcast in the control room. YouTube says streams under 12 hours are automatically archived; do not assume the same archive behavior for longer sessions.

See YouTube’s encoder workflow guidance for the control-room workflow and archive note.

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

Troubleshoot common FFmpeg-to-YouTube problems

No preview or no incoming feed

  • Check that the ingest URL and current stream key match the selected YouTube stream; reset the key if it may have been exposed.
  • Confirm FFmpeg is reaching the outbound network, the output uses the displayed RTMPS or RTMP endpoint, and the command is producing FLV output.
  • Confirm the stream is active in Live Control Room and review its stream-health messages.

Audio is missing

  • Verify that the Icecast address is the listener mount and that it currently plays in a browser or audio player.
  • Check that FFmpeg detects an audio stream on the Icecast input and that -map 1:a:0 points to it.
  • Use FFmpeg or ffprobe to inspect the feed’s streams and codec. A decoder or protocol error may indicate an unsupported input, authentication requirement, or build without needed support.

Disconnects, buffering, or unstable stream health

  • Reduce video bitrate or resolution until it fits reliably within available upload capacity, leaving headroom for network variation.
  • Check the stability of the computer or server’s network connection and watch YouTube’s stream-health messages.
  • Make sure the keyframe interval remains within YouTube’s recommendation: two seconds recommended, no more than four.

FFmpeg exits when the feed or network drops

FFmpeg by itself does not guarantee recovery from every station or network interruption. For unattended operation, a service manager or supervisor may be needed to restart the process; this is an operational choice, not a YouTube requirement. Confirm the feed and YouTube endpoint are reachable before relying on an automated restart.

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

The station feed uses an unexpected format or access method

If the mount uses authentication, request headers, a nonstandard user-agent, or a codec your build cannot decode, adapt the input options to the station’s requirements. AAC re-encoding is the safer general output choice when the input format is unknown. Copying audio may be possible when the source codec and YouTube ingest requirements are compatible, but it is not assumed in this template.

You plan to broadcast longer than 12 hours

YouTube’s cited workflow guidance states that streams under 12 hours are automatically archived. Plan an intentional stop and restart for longer broadcasts, and verify current YouTube behavior rather than assuming one uninterrupted archive.

Rank #4
Blackmagic Design Streaming Encoder HD (BM-BDLKWEB/C/SEDHD)
  • H.264
  • H.265 Stream
  • 1080p 60fps
  • 12G-SDI In/Loop Out
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keep the station live without a computer at home

Or let it run in the cloud

For a prerecorded-video YouTube loop, StreamNeo is a cloud option rather than an FFmpeg relay for a live Icecast feed: upload a recording or build a playlist, add your YouTube stream key once, and go live. It plays uploaded videos, not a live camera or Icecast input. Your computer and home connection do not need to stay on; automatic recovery handles a YouTube drop. Every slot streams what you upload at any quality up to 4K 60fps for one flat per-slot price, with no re-encode or quality tiers. The first day is free with no card. Monthly pricing is $9.99 per month.

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

Learn more at StreamNeo, or start the free first day.

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

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 *

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.

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