October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
FFmpeg

How to Schedule Different Videos in an FFmpeg YouTube Stream

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

To play different videos one after another inside a single YouTube live broadcast, make an FFmpeg concat-demuxer list in the order you want and stream that list to the event’s YouTube server URL. This works best when the files have matching stream layouts, codecs and time bases. If by “schedule” you mean separate broadcasts at different times, schedule those in YouTube Live Control Room or manage them with the YouTube Live Streaming API; an FFmpeg playlist does not create a broadcast calendar.

Choose what you mean by “schedule”

  • Play clips in sequence during one broadcast: FFmpeg reads a concat list from top to bottom. Use this when video A should be followed by video B in the same live event.
  • Start separate live events at different times: create or schedule each event in YouTube Live Control Room, or use the Live Streaming API. The API supports reusing a liveStream resource when encoder settings recur, as well as creating a separate liveStream for each broadcast. Its documentation notes that only one event can be live at a time when reusing a stream resource. See YouTube’s explanation of broadcasts and streams.

The concat list is a fixed sequence for an FFmpeg input. It is not a timer, a YouTube event schedule, or a playlist editor that reliably updates a running FFmpeg process. The documentation cited here does not establish a dependable hot-reload procedure for changing the list mid-stream.

Prepare the videos and choose a join method

Use the concat demuxer for compatible files

The concat demuxer reads files one after another and adjusts timestamps so each follows the previous file. It can avoid re-encoding in suitable cases. FFmpeg’s documentation says: “All files must have the same streams (same codecs, same time base, etc.).” Check that the files have compatible stream layouts as well as matching codec and time-base characteristics; also verify their duration metadata. Incorrect duration information can cause artifacts at joins. Read the FFmpeg documentation’s concat demuxer section.

Use the concat filter when inputs need normalization

If the files do not meet the demuxer’s compatibility requirements, use a filter graph to decode, normalize and concatenate the audio and video, then encode the result. The filter approach is more flexible, but it requires choosing output properties that suit the actual inputs and YouTube encoder configuration. FFmpeg’s concatenation FAQ explains the distinction. There is no single safe command for every mix of resolutions, frame rates, audio tracks and codecs; inspect and test your source sequence before using it for a public event.

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.

Build the concat list

  1. Put the files in a known order. Use full paths or paths relative to the list file, and keep the names in the order you want them played.
  2. Create a UTF-8 text file such as playlist.txt with one file entry per video. For example:
    file '/videos/intro.mp4'
    file '/videos/gameplay-part-1.mp4'
    file '/videos/gameplay-part-2.mp4'
  3. Check path quoting. The examples use simple paths without embedded single quotes. If a path contains special characters, use FFmpeg’s documented quoting and escaping rules rather than assuming the example will work unchanged.
  4. Review the sequence and durations. A typo or inaccurate duration metadata can affect the transition timing. This list is static for the input being read; do not assume edits will change an already-running process.

Connect FFmpeg to a YouTube live event

  1. Create or schedule the event in YouTube Live Control Room. YouTube’s encoder livestream guide explains how to create an encoder stream and obtain its server URL and stream key.
  2. Keep the stream key private. Treat it like a password: anyone who has it may be able to send video to your event. Do not publish it or include it in a public script or screenshot.
  3. Start FFmpeg with the concat list as input. For compatible files where packet-level concatenation is appropriate, a basic copy-to-RTMP pattern is:
    ffmpeg -re -f concat -safe 0 -i playlist.txt -c copy -f flv "SERVER_URL/STREAM_KEY"

    -re reads the input at its native rate rather than sending the file as fast as possible; -f concat selects the concat demuxer; -safe 0 permits absolute paths in the list; -i names the list; and -c copy passes compatible encoded streams through without re-encoding. Replace SERVER_URL/STREAM_KEY with the server URL and key YouTube supplies, following the endpoint format shown in the current YouTube interface. Do not share a real key.

  4. Check the preview. For a scheduled stream, YouTube says to wait for the encoder preview and then click Go live in Live Control Room. Confirm picture, sound and the transition between clips before the public broadcast begins.

The command is a pattern, not a universal guarantee: input compatibility, FFmpeg version, audio presence and the supplied endpoint can change what is required. The FFmpeg documentation is rolling, so check the options supported by the version installed on your machine.

Test before the broadcast

  • Run the complete sequence using the actual files and listen for audio gaps, abrupt changes in level, or unexpected silence at the joins.
  • Watch the transitions for freezes, black frames, timestamp jumps or sync drift. If a join fails, first check stream compatibility and the files’ duration metadata.
  • Confirm the YouTube preview appears and that the event is configured as intended. Use an appropriate private or unlisted setup if the event is not ready for a public audience.
  • For files that need different output properties, switch to a normalization-and-filter workflow rather than relying on -c copy. The required filter and encoding settings depend on the files; do not apply a generic command without validating its output.

Troubleshoot common problems

FFmpeg rejects the concat input or a join breaks

Check that the files have the same streams, codecs and time bases, and that duration metadata is accurate. The demuxer is intended for compatible inputs. If they differ, normalize and concatenate with the filter workflow described in 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.

The second video starts at the wrong time or shows artifacts

Incorrect duration metadata can affect timestamp adjustment. Inspect the source files and test the complete list; do not assume the listed order alone will correct bad timing information.

YouTube does not show a preview

Recheck the server URL and stream key copied from the event’s encoder setup, then confirm FFmpeg is running and sending to the intended endpoint. Keep the key private while troubleshooting.

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 stream is sending, but the scheduled event is not public

A scheduled event has a preview and a separate Go live action in Live Control Room. After confirming the preview, use that control to take the event live.

Changing the text list does not change what is playing

The concat list is not a documented hot-reload mechanism. Stop and configure the process with the desired sequence, then verify the behavior for your FFmpeg method and version before relying on a mid-broadcast change.

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

Copyright and YouTube rules still apply

Being able to stream a file does not establish that you have the rights to broadcast it. Use videos and audio you own or are authorized to use, and review YouTube’s current rules and event settings before going live. YouTube’s encoder guide also states that streams under 12 hours are automatically archived; because platform limits can change, verify the current guidance in YouTube’s live-streaming help page before planning around that limit.

Or let it run in the cloud

If your goal is a YouTube channel that keeps uploaded videos playing 24/7, StreamNeo is an alternative to maintaining an FFmpeg process on a computer. Upload a recording or build a playlist, add your YouTube stream key, and go live. StreamNeo loops uploaded videos from the cloud; it does not broadcast 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.
  • Nothing has to stay on at home: the stream runs in the cloud, so your computer can be off.
  • Any quality up to 4K 60fps streams as uploaded, at one flat price per slot, with no re-encode or quality tiers.
  • Automatic recovery is included if YouTube drops the stream.
  • The first day is free with no card required. The monthly option is $9.99 per month.

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

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.

Read next

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