October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

How to Rotate a YouTube Live Playlist with FFmpeg Concat Files

Build a fixed playlist in a text concat file, loop it with FFmpeg, and check compatibility, stream settings, and transitions before going live.
Length6 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To rotate a fixed sequence of videos on YouTube Live, put their paths in an FFmpeg concat file, then pass that file to FFmpeg with -stream_loop -1. The concat demuxer treats compatible files as one continuous input; it does not convert mismatched clips or build a changing schedule for you. Test the transitions and YouTube’s current ingest settings before leaving the stream unattended.

What a concat playlist does—and what it does not

An FFmpeg concat file is a plain-text list that specifies the order of media files. The concat demuxer presents those files as a virtual input, so FFmpeg can process them sequentially. With -stream_loop -1, it repeats that finite input indefinitely.

This is a fixed playlist: it will not automatically discover new files, reorder items, or provide a live scheduling interface. If you change the playlist, edit the text file and restart or otherwise reconfigure the FFmpeg process.

Prepare and check the video files

Check compatibility before concatenating

For concat demuxing, the files need matching stream layouts: the same streams, with compatible codecs and time bases. Compare the number and types of audio and video streams as well as their codecs and time bases. A command that works for one set of files may fail or produce rough transitions with another.

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

The demuxer uses each file’s duration to position the next one. Incorrect duration metadata can therefore cause timing artifacts at transitions. Inspect the files and their reported durations first; use a playlist duration directive only when you know a sound duration value. See the FFmpeg concat demuxer documentation.

Choose demuxing or filtering

Approach Best fit Trade-off
Concat demuxer with stream copy Inputs already have compatible streams and no normalization or filtering is needed. Lower processing demand and no re-encode, but it does not reconcile mismatched codecs, stream layouts, or other properties.
Concat filter with re-encoding Inputs need resizing, frame-rate or encoding normalization, or other filtering. Requires an encoding step and more processing capacity; choose settings appropriate to the output you need.

When the clips differ materially, standardize them first or use the concat filter and re-encode. FFmpeg’s documentation describes the concat filter for concatenation where re-encoding is required. Pre-transcoding a static playlist to matching properties can help, but it is not a guarantee that every source file will concatenate cleanly.

Create the concat file

  1. Put the playlist file in a location where its paths to the media files will be valid.

  2. Create a plain-text file named playlist.ffconcat. Its first line must be exactly ffconcat version 1.0.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
    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.
  3. Add one file directive per video, in the order you want it to play. For example, with all files in the same directory:

    ffconcat version 1.0
    file 'segment-01.mp4'
    file 'segment-02.mp4'
    file 'segment-03.mp4'
  4. Save the file as plain text, not as a word-processing document. Confirm that each path resolves from the playlist’s location.

By default, the concat demuxer’s safe-path mode is enabled. Relative paths made from portable characters are the simplest option. If a trusted playlist genuinely needs paths that the default rejects, -safe 0 permits arbitrary filenames; use it only for a playlist you control because it relaxes checks on paths and directives. Details are in the FFmpeg concat demuxer documentation.

Loop the playlist into YouTube Live

Configure the YouTube broadcast first

Create or select the intended live broadcast in YouTube Studio and obtain its stream key and ingest details from the live control room. Use the current settings shown for your account rather than copying a codec or bitrate recipe from an old forum post. The exact appropriate video codec, resolution, frame rate, bitrate, keyframe interval, audio parameters, and ingest endpoint depend on the current platform guidance and your intended output.

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.

The official YouTube Live recommendations were not available in the source set for this article, so this command deliberately does not prescribe fixed ingest values. Check current YouTube Help and the live console before choosing output parameters. Community examples of FFmpeg sending FLV to an RTMP endpoint are examples, not a universal specification.

Run FFmpeg

For compatible input files, this is the command shape:

ffmpeg -re -stream_loop -1 -f concat -i playlist.ffconcat 
  -c:v libx264 -c:a aac -f flv 'rtmp://INGEST_ENDPOINT/STREAM_KEY'

Replace the endpoint and stream key with the values for your broadcast, and replace or confirm the output encoding settings against current YouTube guidance and the capabilities of your installed FFmpeg build. This is a template, not a tested, universally valid recipe.

  • -re and -stream_loop -1 are input options, so they appear before the corresponding -i playlist.ffconcat.
  • -f concat selects the concat demuxer. The list is repeated indefinitely by -stream_loop -1.
  • The example maps the first available video and audio streams by default. If your files have unusual or multiple streams, explicitly select the intended streams and verify that the output includes the audio and video you expect.
  • -f flv is an output format used in community RTMP examples, not a substitute for checking YouTube’s current account-specific ingest settings.

-re can be useful when a file input would otherwise be read faster than real time. Validate the behavior with your actual source files and FFmpeg version. Keep the stream key secret: do not publish it in scripts, screenshots, logs, or a public repository.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Test before leaving the stream unattended

  1. Start with a short run and watch FFmpeg’s console output for input, timestamp, or encoding errors.

  2. Check YouTube Studio’s live console to confirm it receives a usable stream and that the selected broadcast is receiving the expected audio and video.

  3. Watch at least one transition between files. Check for a pause, black frames, audio gaps, or a timing jump, then inspect stream compatibility and duration metadata if a transition is irregular.

  4. Confirm that the playlist returns to its first item after the final file and continues as expected. Do not assume a successful start proves that the loop or every transition is clean.

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

Common problems and fixes

Symptom Likely cause What to check
FFmpeg rejects the concat input or errors when a new file begins. Files have different stream counts, stream types, codecs, or time bases. Compare the input streams. Standardize the files or use the concat filter with re-encoding rather than expecting the demuxer to normalize them.
The transition has a timing jump or visible/audio artifact. A file’s duration metadata may be inaccurate, or the inputs may not be sufficiently compatible. Inspect the reported durations and stream properties. Correct a duration in the playlist only when you have a reliable value; otherwise normalize or re-encode and test again.
A listed file cannot be opened. The relative path is resolved from the wrong location, the filename is misspelled, or safe-path rules reject it. Check the path relative to the playlist and use simple relative filenames when possible. Only for a trusted playlist that needs it, consider -safe 0.
YouTube does not show a usable incoming stream. The endpoint, stream key, output format, or encoding settings may not match the selected broadcast’s current ingest configuration. Check the key and endpoint in the live control room, review FFmpeg’s output, and verify current YouTube guidance rather than relying on an old community recipe.
Video arrives but audio is absent or wrong. The source files may have inconsistent or unexpected audio streams, or the output may not select the intended stream. Inspect each file’s audio stream and verify the output actually contains the audio you intend to send. Do not assume an old claim about a universal audio arrangement applies to your setup.

Copyright and YouTube channel considerations

FFmpeg only sends the media you provide; it does not grant permission to use it. Before streaming, make sure you have the rights needed for the video, music, and other material, including any third-party elements. Repeatedly broadcasting a playlist also does not by itself establish that the channel complies with YouTube’s policies or is eligible for monetization. Review the current rules that apply to your channel and content in YouTube Help; do not treat a technically successful stream as a policy approval.

For a practical pre-stream rights review, use StreamNeo’s copyright safety checklist as a separate checklist, not as a substitute for YouTube’s rules or legal advice.

Or let it run in the cloud

If your goal is a continuously looping YouTube channel rather than running FFmpeg on your own machine, StreamNeo is a cloud alternative: upload your recording or build a playlist, add your YouTube stream key once, and go live. Nothing has to stay on at home. Each slot streams the uploaded quality up to 4K 60fps at one flat price per slot, with automatic recovery if YouTube drops the stream. Your first day is free with no card.

Monthly: $9.99 per month.

StreamNeo streams uploaded videos to YouTube; it does not go live from a camera. See StreamNeo for details, or start your free 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 quests from Patch Notes

  1. How To Create Custom Stickers & Shoutouts In Monster Hunter WildsMonster Hunter WildsBlog20min
  2. How to Get XL Gogoat in Pokemon Legends Z-A (An Extra-Large Gogoat)Pokemon Legends Z-ABlog20min
  3. How to Get Rotting Lightbringer in Diablo 4Diablo 4Blog17min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.