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.

To run a YouTube radio stream in Docker, make your audio and visual media available inside a container, use FFmpeg to encode and mux them in real time, then send the output to the RTMPS ingest address and stream key shown for your YouTube broadcast. Docker packages the process and its dependencies; it does not provide the media, guarantee a stable connection, or keep a failed stream healthy by itself.

How the stream gets from your files to YouTube

The signal path is: source media → FFmpeg inside Docker → encoded audio/video over RTMPS → YouTube Live. You need media that FFmpeg can read, an FFmpeg build with the codecs your output requires, and the current ingest details for the specific YouTube broadcast.

A radio-style YouTube stream still needs a video output. If your source is audio-only, choose a visual such as a still image or looped artwork and configure FFmpeg to produce a valid audio-and-video stream. The image choice is part of your production; it is not supplied by Docker or YouTube.

Get the current YouTube ingest details

  1. Open YouTube Studio and go to the Live Control Room for the broadcast you plan to use.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
    #1 Best Overall
    Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
    • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
    • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
    • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
    • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
    • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
  2. Copy the ingest server address and stream key shown for that broadcast. Use those current, account-specific values instead of relying on a hard-coded endpoint from an old example. YouTube’s LiveStreams documentation describes primary and backup ingestion addresses, but the values shown for your stream are the operational reference: LiveStreams.

  3. Keep the key secret. Do not put a real key in a public example, Dockerfile, source repository, or shell command saved in shared history. Supply it at runtime using a secret mechanism supported by your Docker host or deployment platform.

YouTube recommends RTMPS for ordinary live content and documents the endpoint and application-path requirements, using port 443: Delivering Live YouTube Content via RTMPS. Its encoder guidance also recommends RTMPS for a typical YouTube Live stream: Choose live encoder settings, bitrates, and resolutions.

Prepare a Docker container

Make the inputs available

Use an FFmpeg image or build an image that contains the FFmpeg version, encoders, and any fonts or artwork your production needs. Mount media into the container; mounting source files read-only is a sensible way to prevent the streaming process from changing them. Set a working directory or use explicit absolute paths so the command can find every input.

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

There is no single verified Docker image or Compose configuration that fits every source and host. Check that the image actually includes the codecs you intend to use, and adapt volume mounts, environment variables, and secret handling to your deployment target.

Pass credentials and supervise the process

Inject the stream key through your platform’s supported secret facility. Avoid baking it into an image layer or placing it in a command that may be recorded in shell history. Restrict access to container logs and deployment configuration if they could expose credentials.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

A Docker restart policy can restart a process after it exits, but it cannot repair a wrong key, unreadable or exhausted media, insufficient upstream bandwidth, rights restrictions, or a broken input. For unattended operation, decide how you will detect failures and alert on them; container restart behavior is only one part of supervision.

Choose FFmpeg settings for the source and broadcast

Use explicit input paths and stream mappings when a file or playlist has multiple audio or video tracks. The correct input flags depend on whether you are reading one file, a playlist, a network stream, or live audio. Real-time pacing and looping are appropriate only when the source and intended continuous broadcast call for them; FFmpeg option order and loop behavior depend on the input type. Consult the FFmpeg command-line documentation for input/output option behavior.

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

For the output, deliberately choose an encoder, bitrate, frame rate, pixel format, audio format, and muxing format compatible with your selected YouTube ingest method. YouTube’s current guidance lists RTMP/RTMPS, H.264, H.265/HEVC, or AV1 video, up to 60 fps, AAC or MP3 audio, and constant bitrate encoding. It recommends keyframes every two seconds and says not to exceed four seconds. For stereo audio, it recommends 44.1 kHz and 128 kbps. These are YouTube’s recommendations, checked October 3, 2026—not a guarantee of picture or sound quality.

Select video bitrate from YouTube’s current table for the chosen codec, resolution, and frame rate rather than applying one number to every stream. Upload bandwidth must also be sufficient for the outgoing stream; encoding settings cannot compensate for an unstable or undersized connection. The table and other encoder requirements are on YouTube’s encoder settings page.

Illustrative command shape for a looped file

The following is a command pattern, not a tested, universal Docker recipe. It assumes a prerecorded file, a visual track in that file, and an RTMPS URL assembled from the current server address, application path, and secret key from YouTube Studio. Replace every example value, choose supported encoders, and verify the required URL structure for your broadcast and FFmpeg build.

ffmpeg -re -stream_loop -1 -i /media/radio.mp4 
  -map 0:v:0 -map 0:a:0 
  -c:v libx264 -b:v VIDEO_BITRATE -maxrate VIDEO_BITRATE -bufsize VIDEO_BUFFER 
  -pix_fmt yuv420p -g KEYFRAME_INTERVAL 
  -c:a aac -b:a 128k -ar 44100 -ac 2 
  -f flv "$YOUTUBE_RTMPS_URL/$YOUTUBE_STREAM_KEY"

This example illustrates intent, not copy-and-run settings. Set the keyframe interval in frames to match the target frame rate and YouTube’s two-second recommendation; do not exceed a four-second interval. Replace the video bitrate and buffer values with values appropriate to your selected resolution, frame rate, and codec. Confirm that the container’s FFmpeg build has the named encoder and that the output format suits the selected ingest endpoint. The -re and -stream_loop options shown are for this prerecorded-file pattern; do not apply them blindly to a live input, network source, or every playlist setup.

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.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

FFmpeg supports multiple protocols and URL forms, so verify RTMP/RTMPS syntax against the endpoint you are using and the build in your image: FFmpeg Protocols Documentation. YouTube requires an application path as part of RTMPS ingestion; keep server address and stream name/key conceptually distinct when Studio presents them separately.

Audio-only sources and playlists

For audio-only input, add an appropriate visual input, such as a still or looped artwork, and map that video together with the audio into the outgoing stream. Confirm the final codecs and container are accepted by the selected ingest method. For a playlist, decide how tracks should advance, whether gaps are acceptable, and what should happen when a file is missing or ends. A playlist does not automatically provide smooth transitions, reliable metadata, or recovery; test those behaviors with your actual files.

Test and operate the broadcast

  1. Start with a private or unlisted broadcast so you can check the result without presenting an unverified stream publicly.

  2. Use a representative test with audio and movement similar to the intended broadcast. YouTube advises testing before going live and monitoring stream health.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  3. Check the Live Control Room preview for the expected image and audible sound, then inspect YouTube’s stream-health indicators.

  4. Read the container’s FFmpeg output for missing input files, encoder errors, failed connections, or premature source endings. Confirm that your actual source continues for the intended duration.

    Rank #4
    Sale
    UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
    • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
    • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
    • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
    • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
    • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
  5. Before leaving the stream unattended, arrange process supervision and alerting. Test what happens after an input ends, a network interruption occurs, or the container exits.

Container restarts do not solve invalid media, incorrect credentials, inadequate upstream bandwidth, or copyright and other rights issues. Make sure you have the rights needed to stream the music and visuals you use, and review YouTube’s applicable policies before broadcasting.

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

RTMPS, HLS, and DASH: when to consider another ingest method

RTMPS is the sensible starting point for ordinary YouTube Live content that needs low latency. YouTube also documents HLS and DASH ingestion, but they are not interchangeable URL formats for the same FFmpeg command. Protocol choice changes packaging, endpoint setup, latency, and implementation complexity.

Method Practical distinction When to consider it
RTMPS YouTube recommends it for ordinary live content; it uses a secure RTMP connection and the broadcast’s endpoint and application path. Use as the default for a conventional encoder-to-YouTube workflow.
HLS Uses HTTPS and media playlists with muxed audio/video and segment/file rules. YouTube notes its segment-based approach usually has higher latency than RTMP- and WebRTC-based ingestion. Consider only when your workflow supports YouTube’s specific HLS packaging and latency trade-off. See YouTube’s HLS ingestion guide.
DASH YouTube documents it as another ingestion protocol; setup and packaging differ from the RTMPS command pattern. Use only if your encoder and workflow are designed for YouTube’s DASH requirements. See YouTube’s ingestion protocol comparison.

For protocol details and comparisons, consult YouTube’s ingestion protocol comparison. Do not treat HLS or DASH as a drop-in replacement for the RTMPS URL in the example.

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

Common problems and fixes

  • YouTube does not receive a signal: Check the current Studio server address, application path, key, and RTMPS support in your FFmpeg build. Keep the endpoint and key separate while checking them, and regenerate or replace a leaked key through YouTube Studio.

  • The container starts but FFmpeg exits: Inspect logs for an incorrect media path, unavailable encoder, malformed option, or unsupported input. Verify the file is mounted at the path used by the command and that the image includes the required codec.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
    Best Value
    Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
    • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
    • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
    • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
    • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
    • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
  • Video appears but audio is missing: Check stream mappings and confirm the source contains the mapped audio track. For audio-only media, verify that both the audio and chosen visual input are mapped into the output.

  • The stream freezes or drops: Compare the outgoing bitrate with available upload capacity, inspect the network and FFmpeg connection errors, and confirm that the source itself has not stopped. Restarting the container cannot fix persistent bandwidth or source problems.

  • YouTube reports poor stream health: Review the selected codec, constant bitrate, keyframe interval, resolution-specific bitrate, and audio settings against YouTube’s current encoder guidance. Then retest with representative content.

  • The stream stops when a file ends: Confirm that the intended input is actually looped or that the playlist advances as designed. Looping behavior varies by input type; test end-of-file handling before relying on it unattended.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • The broadcast has sound but no suitable picture: Add or correct a visual input, map it to the output, and check the preview. A YouTube radio stream still needs a compatible video output for this setup.

Or let it run in the cloud

If you do not want to maintain FFmpeg, Docker, and an always-on host, StreamNeo runs uploaded videos as a 24/7 YouTube stream from the cloud. Upload a recording or build a playlist, add your YouTube stream key once, and go live. Nothing has to stay on at home. It streams what you upload at any quality up to 4K 60fps for one flat price per slot, with automatic recovery if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month. StreamNeo is for uploaded video playback to YouTube, not live camera streaming. Visit StreamNeo for details, 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.