Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix 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
DocumentaryTube
concat demuxer

How to Play a Folder of Recorded Lessons in Alphabetical Order on YouTube Live with FFmpeg

Use an ordered FFmpeg concat manifest to play recorded lessons from a folder as one continuous YouTube Live broadcast, then test the stream in Live Control Room.

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

To stream recorded lessons from a folder as one continuous YouTube Live broadcast, put the filenames in the order you want in an FFmpeg concat manifest, then send the resulting stream to the ingest URL and key shown in YouTube Live Control Room. FFmpeg does not automatically scan and alphabetize a directory in this workflow. This creates a live broadcast from prerecorded files; it does not upload each lesson as a separate YouTube video.

Decide what “alphabetical” means for your filenames before you build the manifest. In particular, choose whether numeric labels should sort lexically (so “Lesson 10” may come before “Lesson 2”) or in natural numeric order. The manifest’s line order controls playback, so check that order yourself.

1. Check your files and choose the playback order

The concat demuxer can join compatible media by reading inputs in the order listed in a text file. It expects the files to have matching streams, codecs, and time bases; matching filename extensions alone do not establish compatibility. See the FFmpeg concat demuxer documentation and FFmpeg FAQ.

Choose a sort convention

Write down the intended sequence before creating the manifest. For simple numbered lessons, zero-padded names such as Lesson 01.mp4, Lesson 02.mp4, and Lesson 10.mp4 make lexical order more predictable. If your existing filenames use inconsistent numbering or labels, list them manually in the sequence you want rather than relying on a shell’s default sort.

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 stream compatibility

Inspect the video and audio streams in representative files before building the full broadcast. Compare stream layout, codecs, and time bases; an FFmpeg build’s ffprobe utility can report this information. If files differ, packet-level concatenation may fail or behave unexpectedly. Prepare compatible files or use the concat filter when you need to re-encode; the filter is designed for cases where inputs require re-encoding. Re-encoding takes processing time and can affect quality, so test the prepared output before streaming.

2. Create an ordered concat manifest

For the simplest example, put lessons.ffconcat next to the lesson files, or adjust the paths to match your directory layout. Keep the manifest outside the media directory if you plan to generate it from a file listing, so the manifest itself is not mistaken for lesson media.

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.
ffconcat version 1.0
file 'Lesson 01.mp4'
file 'Lesson 02.mp4'
file 'Lesson 10.mp4'

The first line must be exactly ffconcat version 1.0 for automatic format recognition. Add one file directive per lesson, in the exact order you want played. The names above are examples; replace them with the actual filenames.

Paths, spaces, and safety

Run FFmpeg from the directory that contains both the manifest and referenced files, or use paths that resolve correctly from your working directory. Paths containing spaces or special characters need correct quoting or escaping according to the concat demuxer’s syntax. The demuxer rejects unsafe paths by default; keep the default safety behavior with -safe 1 rather than casually disabling it with -safe 0. Review the FFmpeg documentation if your paths are more complex than these simple examples.

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.

3. Set up the YouTube Live broadcast

  1. In YouTube Studio, create a live stream or schedule one, then open its Live Control Room.
  2. Copy the ingest URL and stream key shown for that stream. YouTube recommends RTMPS; copy the actual RTMPS URL from your Live Control Room rather than guessing or substituting a URL.
  3. Keep the stream key private. Do not put it in a public script, repository, screenshot, or shared command transcript. Anyone with the key may be able to send a broadcast to your stream.
  4. Configure FFmpeg’s output using the copied endpoint and key. The following is a template, not a complete encoder configuration; replace the placeholders and select video and audio settings appropriate for your files and connection:
ffmpeg -re -f concat -safe 1 -i lessons.ffconcat 
  -c:v libx264 -preset veryfast -b:v 5M -maxrate 5M -bufsize 10M 
  -r 30 -g 60 -pix_fmt yuv420p 
  -c:a aac -b:a 128k -ar 44100 
  -f flv "YOUR_RTMPS_URL/YOUR_STREAM_KEY"

This illustrative command uses H.264, AAC, 30 fps, and a two-second keyframe interval at 30 fps. The 5 Mbps video bitrate is YouTube Help’s recommendation for H.264 at 1080p and 30 fps; it is not a universal rate for other resolutions, frame rates, or codecs. Use your actual RTMPS URL and key, and confirm your FFmpeg build supports the chosen encoder and options.

Match encoder settings to the stream

YouTube’s current encoder guidance covers RTMP/RTMPS, H.264, H.265 (HEVC), or AV1, up to 60 fps, AAC or MP3 audio, and constant bitrate (CBR). It recommends a two-second keyframe frequency, not more than four seconds, along with square pixels, progressive scan, and SDR Rec. 709. These are YouTube recommendations; support for a codec or option depends on the FFmpeg build and your chosen output setup. Consult YouTube Help’s live encoder settings for bitrate guidance by codec, resolution, and frame rate. For example, YouTube lists 8 Mbps for H.264 at 720p and 60 fps, distinct from its 1080p/30 recommendation.

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

Choose a bitrate that suits the intended resolution and frame rate and leaves room within your upload capacity. YouTube Help says, “We recommend running a speed test to test your upload bitrate.” Test with representative lesson footage and audio rather than assuming that a nominal internet speed guarantees a stable stream. YouTube explains that RTMPS is RTMP over TLS/SSL.

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

4. Test, start, and monitor the live stream

  1. Make a short private or unlisted test broadcast using representative lesson audio and motion. Confirm the manifest plays in the intended order and the image and sound are present.
  2. In Live Control Room, check the preview and stream health before running the full lesson sequence. YouTube recommends testing before going live and monitoring stream health.
  3. If you scheduled the stream, wait for the preview to appear, then click Go live in Live Control Room. Sending data from FFmpeg alone does not necessarily make a scheduled broadcast public.
  4. Monitor the broadcast as it runs. If you need a YouTube replay, note that YouTube says streams under 12 hours are automatically archived; its cited guidance does not promise an archive for streams lasting longer.

See YouTube Help on creating a live stream for the Studio workflow and stream controls.

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.

5. Troubleshoot common failures

  • Lessons play in the wrong order: FFmpeg follows manifest order, not a directory’s alphabetical listing. Edit the file lines and verify the complete sequence, especially around numbers such as 2 and 10.
  • FFmpeg rejects a file or output becomes unreliable at a transition: Check that inputs have compatible streams, codecs, and time bases. A common extension does not prove compatibility. Prepare consistent inputs or use the concat filter for a re-encoding workflow.
  • A filename with spaces or punctuation is not found: Check the working directory and path spelling, then use concat-demuxer quoting or escaping rules. Avoid disabling safe-path checks just to suppress an error.
  • YouTube does not receive the broadcast: Recheck that the URL and stream key came from the correct Live Control Room stream and were copied accurately. Use the provided RTMPS endpoint where available; never post the key publicly.
  • The preview is unstable or stream health is poor: Test upload capacity, lower the selected bitrate or output resolution if necessary, and verify the encoder is using the intended frame rate, keyframe interval, and CBR settings. Use YouTube’s guidance for the target codec and resolution rather than a rate chosen for a different setup.
  • A scheduled broadcast is not public yet: Check for the preview in Live Control Room and click Go live when it is ready.

Or let it run in the cloud

If you want prerecorded lessons to keep a YouTube channel live without leaving a computer running, StreamNeo runs the playlist from the cloud. Upload your recording or build a playlist, add your YouTube stream key, and go live. Nothing has to stay on at home; uploads stream as made, 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 service is $9.99 per month. StreamNeo is for uploaded videos and YouTube streams, not camera broadcasts. Start your 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
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.