October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
DocumentaryTube
concat demuxer

How to Schedule Different Video Playlists in an FFmpeg YouTube Stream

FFmpeg can order files into playlists, but an external scheduler must choose which list runs when. YouTube Studio schedules the broadcast event separately.

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

FFmpeg can play a prepared playlist, but it does not provide a complete native wall-clock scheduler for choosing among playlists. Create a separate concat list for each sequence, then use an external scheduler or wrapper to launch the right FFmpeg process at the right time. Schedule the YouTube broadcast separately in Studio: that controls the event, not which files FFmpeg plays.

How the three scheduling jobs differ

  • Playlist order: FFmpeg reads a list of media files in sequence.
  • Clock-based selection: An external scheduler or wrapper chooses which list to run and when to start or restart FFmpeg.
  • YouTube event: YouTube Studio or the Live Streaming API manages the broadcast event viewers can watch.

These are separate controls. YouTube describes a broadcast as an event and a stream as the inbound audio-video configuration; a stream can be reused for broadcasts at different times. Scheduling a Studio event does not select or change FFmpeg’s input playlist. See YouTube’s explanation of broadcasts and streams.

Prepare one concat list for each playlist

Use the concat demuxer for compatible files

The concat demuxer reads files and directives from a text file in order. Make a separate list for each intended sequence, with one file entry per line. For example, a list can contain:

file '/media/documentary-one.mp4'
file '/media/documentary-two.mp4'
file '/media/documentary-three.mp4'

Save it as a text file such as weekday.txt, then point FFmpeg at that list with the concat demuxer:

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.
ffmpeg -re -f concat -safe 0 -i weekday.txt -c copy -f flv "YOUR_YOUTUBE_STREAM_URL/YOUR_STREAM_KEY"

Replace the example file paths and YouTube destination with your own. This stream-copy example is appropriate only when the inputs meet the concat demuxer’s compatibility requirements and the chosen output is suitable for your ingest configuration. The -re option reads input at its native rate rather than sending a file as fast as possible.

Check compatibility before relying on stream copy

The concat demuxer expects the files to have the same streams, codecs, time bases, and compatible stream layout. Timestamp adjustments are made globally, but differences in stream lengths can create gaps; inaccurate duration metadata can also cause artifacts. Review FFmpeg’s concat demuxer documentation before building a long-running schedule.

  • Inspect each file’s audio and video streams, codec, time base, and duration.
  • Use consistent stream layouts across a list; do not assume that matching file extensions mean matching streams.
  • Test the full sequence, including its transitions and final file, before putting it on a scheduled broadcast.

Normalize dissimilar files with the concat filter

If inputs differ and you need to normalize them, use a concat filter workflow that decodes, filters, and re-encodes them into a consistent output. FFmpeg’s FAQ recommends the concat filter when re-encoding is needed; the demuxer is useful when avoiding re-encoding for inputs that satisfy its constraints. The filter workflow requires an explicit input and output mapping appropriate to your files, so do not substitute a stream-copy command and expect incompatible media to become consistent automatically. Consult the FFmpeg FAQ.

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 which playlist runs at a given time

After preparing lists, connect them to an external clock-based scheduler or wrapper. For example, a system scheduler can launch a script at chosen times, and that script can start FFmpeg with the relevant list. The scheduler and script are implementation choices: choose and test the behavior for your operating system and deployment.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Write down each playlist’s intended start time and the corresponding concat-list filename.
  2. Choose whether each change can tolerate stopping one FFmpeg process and starting another. A restart-based design is straightforward to reason about, but can interrupt the outgoing stream while the encoder reconnects.
  3. Configure the scheduler to invoke a wrapper that selects the intended list and starts FFmpeg with the correct input and YouTube destination.
  4. Test the actual handoff, including what happens if the previous process has not exited, a scheduled job is missed, or FFmpeg fails to start.

The reviewed FFmpeg and YouTube documentation does not establish a seamless, clock-triggered method for replacing a live concat playlist inside a running FFmpeg process. Treat in-process switching as a separate implementation that needs independent testing; do not assume changing a list file changes an already-running input.

Schedule and verify the YouTube broadcast separately

  1. In YouTube Studio, create or schedule the live stream event and set its intended start time. Scheduling promotes an upcoming stream and can let viewers receive reminders; it does not choose your FFmpeg playlist. See YouTube’s encoder setup guidance.
  2. Copy the YouTube stream URL and stream key into the FFmpeg destination configuration. Keep the key private; anyone with access may be able to send to the stream.
  3. Start the encoder using the playlist selected by your scheduler. Check the preview in Live Control Room, then use its controls to go live for the event as appropriate.
  4. Confirm the correct media is playing, the audio and video are present, and the event is associated with the intended broadcast before relying on the schedule.

YouTube’s API names the event a liveBroadcast and the inbound media configuration a liveStream. The API documentation, last updated 2026-09-14 UTC, explains that a broadcast is a distinct YouTube video and that a stream can be reused for broadcasts at different times: Understanding Broadcasts and Streams.

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.

Use HLS only when that is your chosen ingest protocol

The following are YouTube HLS ingestion requirements, not general concat-demuxer requirements. YouTube’s HLS setup guidance specifies 1–4 second segments, MPEG-TS format, a rolling playlist with no more than five outstanding segments, and HTTPS POST/PUT requests. YouTube also notes that HLS has higher latency than RTMP because it sends segments rather than a continuous stream. Follow YouTube’s HLS setup requirements if you choose HLS; do not apply these requirements to an RTMP workflow.

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

Troubleshoot playlist scheduling

The wrong playlist starts

Check the scheduler’s time zone, job time, selected list path, and wrapper logic. Log which list the wrapper launches, then run that exact command manually before the scheduled handoff.

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.

The stream has a gap or an artifact at a file boundary

Check that the inputs have matching streams, codecs, and time bases, and verify duration metadata. Unequal stream lengths and inaccurate stored durations can produce gaps or timestamp artifacts. If the files are not compatible, normalize them with a concat-filter and re-encode workflow instead of stream-copying.

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

FFmpeg connects, but YouTube does not show the expected event

Verify that the configured stream URL and key belong to the intended YouTube stream, and check the event and encoder preview in Live Control Room. A scheduled broadcast event and an FFmpeg playlist are separate configurations.

A playlist change does not affect the live output

Changing a concat list on disk does not establish that a running FFmpeg process will reload it. Use your tested scheduler/wrapper to stop and relaunch with the new list, or implement and test a separate switching method before depending on it.

HLS is more delayed than expected

That is a protocol trade-off noted by YouTube: HLS delivers segments and has higher latency than RTMP’s continuous-stream approach. Check that you intentionally chose HLS and follow its segment and playlist constraints.

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

Copyright and channel-policy checks

Using prerecorded files in a live stream does not remove the need to have the rights to stream them. Confirm that each documentary, soundtrack, still image, and other included material is cleared for your use on YouTube. YouTube’s copyright and monetization decisions are separate from whether FFmpeg can successfully concatenate and transmit the files; technical playback is not evidence of permission or monetization eligibility.

Or let it run in the cloud

If your goal is to keep uploaded videos looping on a YouTube channel without maintaining an FFmpeg machine at home, StreamNeo is a cloud option rather than an FFmpeg playlist scheduler. 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 your uploads as made, up to 4K 60fps, at one price per slot, and automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month. StreamNeo plays uploaded video to YouTube; it does not go live from a camera. Start the free day with StreamNeo.

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 from the Screening Room

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
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.