Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check 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
VGSources
FFmpeg

How to Stream a Playlist to YouTube Live with FFmpeg

Use FFmpeg’s concat demuxer to send compatible local videos to YouTube Live, with guidance on stream keys, RTMPS, encoding settings, preview checks and fixes.

By VGSources Team 6 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To stream a playlist of local video files to YouTube Live with FFmpeg, create a concat-demuxer playlist, send it to the RTMP or RTMPS endpoint and stream key shown in YouTube Studio, then check the preview and stream health before going live. Stream copying works only when the files have compatible stream layouts, codecs and time bases; mixed files generally need re-encoding.

What you need before starting

  • A YouTube channel with access to Live Control Room.
  • FFmpeg built with the encoders and transport you plan to use. The example below uses libx264, AAC and RTMPS; not every FFmpeg build supports every option.
  • Local video files and enough sustained upload capacity for the selected stream bitrate.
  • The stream URL and stream key for the stream you create or select in Live Control Room.

A stream key is a credential: anyone who obtains it may be able to send a feed to your YouTube stream. Keep it out of public scripts, screenshots and repositories. If it is exposed, reset it in Live Control Room.

Create a playlist file

Put a text file named playlist.txt alongside the videos, or use paths appropriate to your setup. For automatic concat-script recognition, the first line must be exactly ffconcat version 1.0.

ffconcat version 1.0
file 'video-one.mp4'
file 'video-two.mp4'

FFmpeg’s concat demuxer reads the files in order and adjusts timestamps using their durations. Its safe mode is enabled by default; relative paths are practical and avoid needing to disable that protection. Consult the FFmpeg concat demuxer documentation for path and script details.

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.

Check compatibility first

Stream copying can avoid re-encoding, but the concat demuxer requires the files to have the same streams, codecs and time bases. Different resolutions or frame rates can also make a copied output unsuitable for the target stream. Incorrect or missing duration metadata can produce timing errors, gaps or artifacts because later timestamps depend on preceding file durations. Use corrected duration directives only when a file’s stored duration is missing or inaccurate.

If the sources do not match, use FFmpeg’s concat filter and re-encode to a common output format rather than assuming the demuxer will make them compatible. The FFmpeg concat filter documentation describes that alternative.

Get YouTube’s stream URL and key

  1. In YouTube Studio, open Live Control Room and create a stream or select a scheduled stream.
  2. Copy the stream URL and stream key from the stream’s encoder details.
  3. Use the exact endpoint supplied for that stream; do not assume a fixed URL. Prefer the RTMPS endpoint when your FFmpeg build supports it. YouTube describes RTMPS as RTMP over TLS/SSL and recommends it.

See YouTube’s encoder setup guidance for locating stream details and managing a key. Never place a real key in a command you publish or share.

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.

Choose output settings for YouTube

YouTube’s current RTMP/RTMPS encoder guidance lists H.264, H.265 or AV1 video, AAC or MP3 audio, constant bitrate (CBR), and frame rates up to 60 fps. It recommends a two-second keyframe interval, which should not exceed four seconds. Select a bitrate for the chosen codec, resolution and frame rate using YouTube’s live encoder settings; there is no single bitrate that fits every stream. Your connection needs enough sustained upload capacity for the chosen output.

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

The example uses H.264 at 4,500 kb/s and a 60-frame GOP. Those are illustrative values, not a universal YouTube recommendation: at 30 fps, 60 frames is two seconds, while at a different frame rate it represents a different interval. Adjust the GOP and bitrate for your actual frame rate and YouTube’s settings for the selected format.

Start FFmpeg

This template assumes compatible input files, a working libx264 encoder, AAC support and an RTMPS endpoint accepted by your FFmpeg build. Replace the playlist, endpoint and key. Do not publish the real key.

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 -re -f concat -safe 1 -i playlist.txt 
  -c:v libx264 -preset veryfast -b:v 4500k -maxrate 4500k -bufsize 9000k 
  -g 60 -keyint_min 60 -sc_threshold 0 
  -c:a aac -b:a 128k -ar 44100 
  -f flv 'rtmps://STREAM_URL/STREAM_KEY'
  • -re reads file input at its native rate rather than sending the playlist as fast as FFmpeg can process it.
  • -f concat -safe 1 -i playlist.txt selects the concat demuxer and its default safe-path behavior.
  • -b:v and -maxrate set the example video rate; -bufsize controls the rate-control buffer.
  • -g 60 -keyint_min 60 -sc_threshold 0 requests a fixed 60-frame GOP in this example. Match the keyframe interval to the target frame rate.
  • -c:a aac -b:a 128k -ar 44100 encodes AAC audio. YouTube’s advanced settings list 128 Kbps for stereo audio; confirm the applicable audio and video settings in its current guidance.
  • -f flv selects the output format commonly used for RTMP-family ingest.

The endpoint format shown is only a placeholder. Use the complete server URL and stream key format required by the values in Live Control Room and your FFmpeg build. YouTube’s bitrate and encoder recommendations vary by resolution, frame rate and codec.

Verify the preview before going live

  1. Start FFmpeg and confirm it is encoding and sending data without repeated errors.
  2. Return to Live Control Room and wait for the stream preview and health information.
  3. Check that the picture, motion and audio are correct. Test with representative content, not just a static or silent sample.
  4. Start the broadcast from Live Control Room when the preview and stream health are acceptable.

YouTube says encoder streams shorter than 12 hours are automatically archived after they end. That does not establish reliable operating guidance for continuous 24/7 use; do not treat this setup as a guarantee of uninterrupted all-day streaming.

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

Troubleshoot common failures

FFmpeg rejects the playlist or cannot open a file

  • Check that playlist.txt is in the working directory or provide its correct path.
  • Check each quoted file path for spelling and access permissions. With -safe 1, use safe relative paths where practical.
  • Ensure the first line is exactly ffconcat version 1.0 if relying on automatic script recognition.

The output has glitches, gaps or broken timing at a file boundary

Confirm that the files share streams, codecs and time bases, and inspect their duration metadata. If the inputs are not compatible, use the concat filter and re-encode to consistent settings. Correct duration directives only when the stored duration is actually inaccurate or missing.

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

YouTube does not receive the stream

  • Confirm that you copied the URL and key for the currently selected stream in Live Control Room, with no missing characters.
  • Check that the key has not been reset since you copied it. If it was exposed, reset it and update the encoder command.
  • Check that the installed FFmpeg build supports the chosen encoder and RTMPS connection. If it does not, use a supported build or the available RTMP endpoint.

The preview reports poor stream health or the picture is unstable

Compare the outgoing codec, resolution, frame rate, bitrate and keyframe interval with YouTube’s settings for that format. Check sustained upload capacity, and test again with representative motion and audio. Lower the output bitrate or resolution if the connection cannot sustain the selected rate.

Audio is missing or does not match

Check whether each playlist item has an audio stream and whether the concat inputs have matching stream layouts. Confirm FFmpeg’s audio encoder and output settings, then listen to the Live Control Room preview before starting the broadcast.

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

Run it yourself or in the cloud

A local FFmpeg process depends on the computer and its network connection staying available. If you need to keep an uploaded-video YouTube stream running without leaving a computer on at home, StreamNeo is the cloud alternative: upload a recording or build a playlist, add your YouTube stream key once, then go live. It loops the uploaded videos from the cloud; it does not stream from a camera.

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.

Each slot streams the uploaded quality up to 4K 60fps at one flat price per slot, with no re-encode or quality tiers. It includes 10 GB storage per slot, pooled across active slots, playlists and looping, and automatic recovery if YouTube drops the stream. The first day is free with no card, one free day per account. Monthly pricing is $9.99 per month. UPI and cards are supported in India; card checkout is available worldwide. See StreamNeo for plan and service details. To try it, start your free day.

Copyright and channel considerations

Only stream video and audio you have the rights or permission to use. A successful FFmpeg connection does not establish that a video is authorized, nor does it ensure that a channel will qualify for monetization. Review YouTube’s applicable Community Guidelines and monetization policies for copyright and reused-content requirements. Avoid assuming that repeatedly broadcasting a playlist makes reused material eligible for monetization.

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 *

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.

More from Patch Notes

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.