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
DocumentaryTube
Admit one · Blog

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

Use an FFmpeg text playlist to send local videos in sequence to YouTube Live, with compatibility checks, ingest guidance, and troubleshooting.
Opened Runtime6 min Written byDocumentaryTube Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To loop a sequence of local videos on YouTube Live, make an FFmpeg concat-demuxer text file, check that the clips have compatible streams and timestamps, then send the playlist to a YouTube stream using FFmpeg. The playlist controls clip order; YouTube Live Control Room supplies the ingest URL and stream key. Test transitions and stream health before leaving it unattended.

What you need before you start

  • FFmpeg installed and available in your terminal or command prompt.
  • Local video files you have the right to stream, with compatible streams, codecs, and time bases.
  • A YouTube channel enabled for live streaming and a stream URL and key from Live Control Room.
  • An upload connection that can sustain the bitrate you select.

First-time live-stream activation on YouTube may take up to 24 hours. If live streaming is not enabled yet, allow for that delay before planning a scheduled broadcast. YouTube Help: Create a YouTube live stream with an encoder.

Create the text playlist

Save a plain-text file beside your videos, for example as playlist.ffconcat. When relying on automatic format recognition, the exact first line must be ffconcat version 1.0 with no leading whitespace or byte-order mark. Put one file directive on each following line, in playback order:

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

Relative paths are resolved from the playlist’s location. For example, if the videos are in a subfolder named clips, use entries such as file 'clips/video-01.mp4'. Paths containing spaces or special characters need correct quoting or escaping. Use plain text rather than a word-processing document, which may add formatting or a byte-order mark.

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 concat demuxer reads the list and presents the files sequentially as one virtual input. Its format and path rules are documented in the FFmpeg Formats Documentation.

Check compatibility before streaming

The concat demuxer expects the inputs to have the same streams, codecs, and time bases. A playlist that mixes files with different audio or video stream layouts may fail or produce an uneven transition. Test the actual files together before starting a public or unattended stream.

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.
  • Use clips with matching video and audio stream layouts, codecs, and time bases where possible.
  • Check that every referenced path exists and that FFmpeg can read each file.
  • Play through the transitions in a test stream; confirm there is no unexpected gap, frozen frame, missing audio, or abrupt timestamp jump.

FFmpeg adjusts timestamps so each file follows the prior one, but inaccurate duration information—such as an estimate based on bitrate—or a truncated file can cause artifacts. The concat demuxer supports a duration directive to override a file’s duration when you have a reliable value. Its default safe=1 setting rejects unsafe paths and directives; do not disable that protection just to make a questionable playlist load. See the concat demuxer documentation for exact syntax and restrictions.

Get the YouTube ingest URL and key

  1. Open YouTube Studio and go to Live Control Room.
  2. Create or select the stream you want to use, then copy its stream URL and stream key.
  3. Enter those values into your encoder configuration. The URL is the ingest destination; the key identifies the stream.
  4. Keep the key private. Do not put it in a public script, screenshot, chat, or shared command. If it is exposed, reset it in Studio and update your encoder.

YouTube’s encoder setup explains that an encoder converts video into a digital format for streaming. The key should be treated like a password because anyone with access to it may be able to send a feed to your stream. See YouTube’s encoder setup instructions.

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

Choose encoder settings for YouTube

YouTube currently documents RTMP/RTMPS ingest, H.264, H.265/HEVC, and AV1 video options, up to 60 fps, CBR, and AAC or MP3 audio. Prefer RTMPS when it is available in the stream settings. Use a bitrate suited to your resolution, frame rate, and codec; YouTube’s recommendations are targets, not proof that your internet upload can sustain the stream.

Setting YouTube guidance
1080p at 30 fps, H.264 14 Mbps recommended
720p at 30 fps, H.264 8 Mbps recommended
Keyframe interval 2 seconds recommended; do not exceed 4 seconds
Rate control CBR
Audio AAC or MP3

These are YouTube Help’s current recommendations accessed in 2026. Other resolutions, frame rates, and codecs have their own bitrate guidance in YouTube’s live encoder settings. Leave headroom on your upload connection and test the stream at the settings you intend to use.

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

Send the playlist to YouTube and make it repeat

The playlist file defines sequence, but the complete repeat-and-stream command depends on your installed FFmpeg build, operating system, playlist paths, codecs, and chosen ingest settings. Check the options supported by your local build and validate a command with your actual files rather than copying a command that assumes a different setup. In particular, confirm that your build supports the repeat option you choose, that it applies to the concat input, and that the selected output settings satisfy YouTube’s current ingest requirements.

  1. Run a short test with the concat playlist and verify FFmpeg can open every entry and proceed from one clip to the next.
  2. Configure the output to use the YouTube stream URL and key, an ingest-compatible video and audio codec, CBR, and a two-second keyframe interval.
  3. Enable repeating the playlist using the loop option supported by your FFmpeg build; verify it reaches the last clip and returns to the first.
  4. Start sending the feed and watch the Live Control Room preview and stream-health messages before publishing or leaving the process unattended.

Do not expose the stream key when sharing a command or log. If you keep it in a local script, restrict access to that file. Exact command syntax varies with FFmpeg version and platform; the FFmpeg format reference and your build’s help output are the appropriate places to verify option placement.

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.

Test the stream and publishing controls

Before relying on a long-running broadcast, make a test with movement and audio similar to the real program. Confirm the preview appears, audio is audible, the playlist transition is clean, and the stream remains live. Monitor YouTube’s stream-health messages while testing; a successful connection alone does not confirm that viewers receive the intended picture and sound.

Choose public, private, or unlisted deliberately in Studio, and manage scheduled streams and other channel settings there. Confirm that you have rights to every video and audio track. YouTube provides rights-management controls, but whether a particular recording may be streamed depends on the rights and permissions for that material.

Troubleshoot common failures

Symptom Likely cause What to check
FFmpeg cannot open the playlist Incorrect header, encoding, path, or quoting Make ffconcat version 1.0 the exact first line; save as plain text without a byte-order mark; check every path and escape spaces or special characters correctly.
Playlist opens, but a clip fails or transitions badly Incompatible streams, codecs, time bases, inaccurate duration, or a damaged file Test the files together, compare their stream layouts, inspect the affected media, and use a duration override only when you know the correct duration.
YouTube shows no incoming feed Wrong ingest URL or key, live streaming not enabled, or an encoder connection problem Recheck the selected stream’s URL and key in Live Control Room, confirm activation is complete, and inspect FFmpeg output for connection errors.
Stream health reports instability or dropped frames Upload capacity is insufficient or fluctuating for the chosen bitrate Test upload capacity under realistic conditions, reduce output bitrate or resolution if needed, and retest before leaving it running.
Picture or audio is missing or unsupported Output codec, stream layout, or encoding settings do not match the selected setup Use a supported video and audio codec and the current YouTube settings for your resolution and frame rate; verify both picture and sound in the preview.
The stream stops when the computer or process stops The local FFmpeg process or its host is no longer running For a do-it-yourself setup, keep the host powered, connected, and running FFmpeg; monitor the process and restart it if it exits.

Or let it run in the cloud

StreamNeo is a YouTube-only cloud service for looping uploaded videos, rather than a camera feed. Upload your recording or build a playlist, add your YouTube stream key once, and go live. Your computer and home connection do not have to stay on. StreamNeo keeps the uploaded video running in the cloud and can automatically recover if YouTube drops the stream.

Every slot streams the uploaded file as made, up to 4K 60fps, at one flat price per slot with no quality tiers; the first day is free with no card. A slot includes 10 GB of storage, pooled across active slots, plus 24/7 looping, playlists, and support. Monthly: $9.99 per month.

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

See StreamNeo or check the plan details. Start your free day on 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

  1. How to Migrate a 24/7 YouTube Stream to a New VPSAdmit one · BlogHow to Migrate a 24/7 YouTube Stream to a New VPSOpened04 OCT 2026Runtime6 min
  2. How to Run a YouTube Playlist on a Headless Linux Server—and Broadcast It LiveAdmit one · BlogHow to Run a YouTube Playlist on a Headless Linux Server-and Broadcast It LiveOpened04 OCT 2026Runtime6 min
  3. How to Make a 24/7 Indian Music YouTube Stream Restart After a Server RebootAdmit one · BlogHow to Make a 24/7 Indian Music YouTube Stream Restart After a Server RebootOpened04 OCT 2026Runtime6 min
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.