DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober 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 Scan×
Skip to content
VGSources
Blog

How to Loop Videos to YouTube Live with FFmpeg and a Text Playlist

A practical guide to sequencing local videos with an FFmpeg text playlist and sending the feed to YouTube Live, with setup checks and troubleshooting.
Length6 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use FFmpeg’s concat demuxer to play a sequence of local video files as one input, then send that feed to YouTube Live over RTMP or RTMPS. Create a plain-text playlist, check that its files are compatible, enter your YouTube stream URL and key, and test the stream before leaving it unattended. The instructions below cover playlist setup, YouTube’s documented encoder settings, testing, and common failure points.

What you need before you start

  • FFmpeg installed and available in a terminal or command prompt. Check the version with ffmpeg -version.
  • Local video files that you have the right to stream.
  • A YouTube channel with live streaming enabled. YouTube says first-time activation may take up to 24 hours; see Create a YouTube live stream with an encoder.
  • A reliable upload connection that can sustain the bitrate you choose.

This method sends video from the computer running FFmpeg. It does not make the stream independent of that computer, its power, or its internet connection.

Create the text playlist

Make a plain-text file in the same folder as your videos, for example playlist.ffconcat. Its first line must be exactly ffconcat version 1.0, with no leading whitespace or byte-order mark, for FFmpeg to recognize the format automatically. Add one file directive for each video, in playback order:

ffconcat version 1.0
file 'video-01.mp4'
file 'video-02.mp4'
file 'video-03.mp4'

Use paths relative to the playlist when practical. For filenames or paths containing spaces or special characters, quote or escape them according to FFmpeg’s concat script syntax. Keep the file plain text; do not include numbering or bullets as part of the directives. The FFmpeg Formats Documentation describes the concat demuxer and its script format.

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 that the videos can be concatenated

The concat demuxer presents files sequentially as one virtual input, but it is not a general-purpose converter. FFmpeg’s documentation requires the inputs to have the same streams, codecs, and time bases. Files with mismatched formats may fail, produce broken transitions, or behave unpredictably. Check your files before relying on the playlist; if necessary, convert them to matching stream characteristics first.

  • Confirm that every listed path resolves from the playlist’s location.
  • Check that the files contain compatible video and audio streams, codecs, and time bases.
  • Play the sequence through its transitions and listen for gaps, abrupt cuts, or audio problems.
  • Be alert to inaccurate duration metadata, which can cause timestamp artifacts. The concat format has a duration directive for overriding a file’s duration when needed.

The default safe=1 behavior rejects unsafe paths and directives. Avoid disabling it casually: doing so permits a broader range of paths and directives. Test your actual playlist and files with the FFmpeg build you intend to use.

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.

Get the YouTube stream URL and key

  1. Open YouTube Studio and go to Create > Go live to enter Live Control Room.
  2. Create or select a stream and locate its encoder settings.
  3. Copy the server URL and stream key into your encoder configuration. Use the RTMPS URL if YouTube provides one for the stream.
  4. Keep the key private. It is a credential: do not publish it in a script, screenshot, chat, or shared command. If someone else obtains it, reset it in YouTube Studio.

YouTube’s encoder setup guidance is at Create a YouTube live stream with an encoder. The precise Studio labels can vary as YouTube updates its interface. YouTube says a channel’s first live-stream activation may take up to 24 hours.

Choose encoder settings using YouTube’s guidance

Set the output to a format YouTube supports and that your FFmpeg build can encode. YouTube currently documents RTMP/RTMPS ingest, H.264, H.265/HEVC, and AV1 video options, frame rates up to 60 fps, constant bitrate (CBR), and AAC or MP3 audio. Its recommended keyframe interval is two seconds and should not exceed four seconds. The recommended bitrate depends on resolution, frame rate, and codec; for H.264, YouTube lists these examples:

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.
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.
Output YouTube-recommended video bitrate
720p30 H.264 8 Mbps
1080p30 H.264 14 Mbps

These are YouTube Help recommendations, accessed in 2026, not a guarantee that your connection can sustain the stream. Consult YouTube’s current live encoder settings, bitrates, and resolutions for other combinations. Test upload capacity with headroom; an unstable connection can interrupt a stream even when the encoder settings match the table.

FFmpeg commands depend on the installed build, operating system, input characteristics, and desired output. The playlist syntax alone does not establish a complete, verified streaming command for every environment. Confirm looping and encoder options against your local FFmpeg version and test your actual files before using a command unattended. Keep the stream key out of shell history, logs, and scripts that may be shared.

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

Test and monitor the broadcast

  1. Start the encoder and confirm that YouTube receives the feed and shows a preview.
  2. Check both picture and sound. YouTube recommends testing with audio and movement similar to the real stream.
  3. Watch a playlist transition to verify that the next file begins cleanly and timestamps remain continuous.
  4. Review Live Control Room’s stream health and messages while the test is running.
  5. Confirm the intended audience setting—public, private, or unlisted—and verify that the broadcast remains live before relying on it.

For scheduled broadcasts and other channel controls, use YouTube Studio. A successful preview is not proof that an unattended process will recover from a computer shutdown, network outage, or encoder failure.

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

Rights, visibility, and YouTube rules

Choose public, private, or unlisted deliberately in YouTube Studio. Before streaming, confirm that you have permission to use every video and audio track, including music, game footage, and material supplied by someone else. YouTube provides rights-management controls, but only the rights holder or relevant licence can establish whether a particular file may be broadcast. A video being available online or on your own device does not by itself prove that you may rebroadcast it.

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.

Troubleshoot common problems

Symptom Likely cause What to check
FFmpeg does not recognize the playlist format The header is not at the exact start of the file, or the file has a byte-order mark. Make ffconcat version 1.0 the first line with no leading whitespace or BOM; save as plain text.
A file cannot be opened A path is wrong, relative to a different folder, or quoted incorrectly. Check the playlist’s location, spelling, and quoting. Keep the default safe-path behavior unless you understand the implications of changing it.
Playback breaks at a transition or shows timestamp artifacts Inputs differ in streams, codecs, or time bases, or duration metadata is inaccurate. Compare the files’ stream characteristics, test the transition, and consider a concat duration directive if the reported duration is wrong.
YouTube does not receive a feed The URL or key is incorrect, live streaming is not enabled, or the connection cannot reach the ingest server. Recheck the encoder values in Live Control Room and the channel’s live eligibility. Allow up to 24 hours for first-time activation.
Video is rejected or stream health is poor Codec, bitrate, keyframe interval, or upload capacity does not meet the selected output needs. Compare the output to YouTube’s current encoder guidance; use CBR and a two-second keyframe interval where supported, and verify sustained upload capacity.
Audio is missing or distorted The source’s audio stream or output audio settings are incompatible or incorrectly configured. Check that the files’ audio streams are present and compatible, use a supported AAC or MP3 output, and test listening through the sequence.
The stream stops when unattended The local computer, FFmpeg process, power, or internet connection stopped; the demuxer only sequences files. Inspect the machine and process, power and network stability, and YouTube’s stream-health messages. Plan for local-process monitoring and restart if you need to keep the DIY setup running.

Or let it run in the cloud

With StreamNeo, upload your recording or build a playlist, add your YouTube stream key, and go live. It loops uploaded videos from the cloud, so no computer or home connection has to stay on. Each slot supports the uploaded quality up to 4K 60fps at one flat price per slot, without re-encoding or quality tiers; automatic recovery is available if YouTube drops the stream. The first day is free with no card, once per account.

Monthly: $9.99 per month. See StreamNeo for details. Start your free StreamNeo 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.

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.