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

To loop a playlist of local videos on YouTube Live, put the filenames in an FFmpeg concat-demuxer list, then use -stream_loop -1 to repeat that list indefinitely. The direct route works best when the files have compatible stream layouts and parameters; mismatched clips may need normalization or a re-encoding workflow first.

Choose the right way to join your files

FFmpeg’s concat demuxer reads a playlist as one virtual input. It is the straightforward choice when your clips have compatible streams and parameters. The concat filter is intended for workflows that require decoding and re-encoding, which lets you normalize differences such as resolution, frame rate, codec, audio layout, or time base. Do not assume that a playlist of mismatched files will join seamlessly without preparation. See the FFmpeg FAQ.

  • Use the concat demuxer: source files are sufficiently compatible and you want a simpler input workflow.
  • Normalize or use a filter/re-encode workflow: the files differ in ways that prevent a consistent output, or you need scaling, frame-rate conversion, or audio handling. Re-encoding requires encoding work and may introduce generation loss.

Build the playlist file

Create a plain-text file named playlist.txt in a location the account running FFmpeg can access. List one media file per line:

file 'clip-01.mp4'
file 'clip-02.mp4'
file 'clip-03.mp4'

Use paths that are valid from the FFmpeg process’s working environment. If a filename or path contains spaces or punctuation, quote it correctly in the concat-file format and test a short run before going live.

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.

Send the repeating playlist to YouTube Live

For compatible inputs, this command is a starting template. Replace the output URL with the RTMP or RTMPS server address and stream key shown for your broadcast in YouTube Studio:

ffmpeg -re -stream_loop -1 -f concat -safe 0 -i playlist.txt 
  -c:v libx264 -preset veryfast -b:v 6M -maxrate 6M -bufsize 12M 
  -g 60 -r 30 -c:a aac -b:a 128k 
  -f flv 'rtmps://SERVER/APP/STREAM_KEY'
  • -re reads the file input at its native rate, so FFmpeg simulates a live source rather than sending the file as fast as possible.
  • -stream_loop -1 repeats the input indefinitely.
  • -f concat -safe 0 -i playlist.txt selects the concat demuxer and reads the playlist. -safe 0 permits paths the demuxer would otherwise reject as unsafe; only use a playlist you control.
  • -c:v libx264 encodes video as H.264. The example uses a veryfast preset and sets a 6 Mbps target and maximum video bitrate with a 12 Mbps buffer.
  • -r 30 sets output frame rate to 30 fps. -g 60 sets a 60-frame GOP, or two seconds at 30 fps.
  • -c:a aac -b:a 128k encodes audio as AAC at 128 Kbps.
  • -f flv selects the output container commonly used for RTMP/RTMPS ingest.

FFmpeg options apply to the next input or output in command order: input options such as -re and -stream_loop go before -i; encoding and muxer options go after the input and before the output address. The loop flag does not make incompatible clips compatible. Also, this example does not scale video, and files without audio may require silence synthesis or another method to provide a consistent audio 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.

Match encoder settings to YouTube’s ingest guidance

Use the current YouTube Live encoder settings for the codec, resolution, and frame rate you plan to send. YouTube’s guidance supports RTMP/RTMPS ingest, H.264, H.265, or AV1 video, AAC or MP3 audio, up to 60 fps, constant bitrate (CBR), and a recommended keyframe interval of two seconds, no longer than four seconds. YouTube Help recommends streaming with RTMPS for encryption in transit.

The following are YouTube-published H.264 ingest recommendations, accessed in 2026—not guarantees of the quality viewers will receive:

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 setting YouTube-recommended bitrate
1080p at 30 fps 10 Mbps
1080p at 60 fps 12 Mbps
720p at 30 fps 6 Mbps
Stereo audio 128 Kbps

The command template’s bitrate is not a universal recommendation: select settings for your actual output and check YouTube’s official table before broadcasting because guidance may change. Check that your upload connection can sustain the stream bitrate with headroom; YouTube advises choosing settings suited to a reliable connection.

Set up and test before relying on a long stream

  1. Create or select the broadcast: In YouTube Studio, open Live Control Room and create or select the stream. Copy its stream URL and key into the FFmpeg output address. The key is a credential; do not expose it in a public script, screenshot, or log. If it is compromised, reset it in Live Control Room as described in YouTube’s live encoder guidance.
  2. Check playlist access and compatibility: Run FFmpeg as the same account and environment that will handle the broadcast. Confirm it can read every listed path. If streams differ incompatibly, normalize them or switch to a filter/re-encoding workflow before sending the feed.
  3. Run a representative short test: Include typical motion and audio, then verify the stream appears in Live Control Room. YouTube recommends testing before going live and monitoring stream health and messages during the event.
  4. Plan for interruptions: Decide how you will notice missing files, network failures, or a stopped FFmpeg process, and how you will restart it. FFmpeg’s behavior should not be treated as a guarantee of automatic reconnection in every failure mode.

Troubleshoot common failures

Symptom Likely cause What to check or change
FFmpeg cannot open a playlist entry The path is wrong or unavailable to the account running FFmpeg; quoting may also be malformed. Check each path from that account’s environment, correct the concat-file quoting, and test with a short playlist.
The transition between clips fails or output parameters change Source streams are not compatible for demuxer concatenation. Inspect the differing stream properties; normalize the clips or build a filter/re-encoding workflow with consistent output streams.
YouTube does not receive the feed The output address, stream key, or ingest connection may be wrong. Copy the current URL and key from the selected Live Control Room stream, verify the RTMPS address, and check Live Control Room messages.
Stream health reports bitrate or connection trouble The chosen output settings may not suit the connection, or the connection may not have enough sustained upload capacity. Use the matching YouTube bitrate guidance, check upload capacity with headroom, and test before a longer broadcast.
Audio is absent or inconsistent One or more files may lack audio or use a different audio layout. Check every source file. Synthesize silence or otherwise normalize audio if the output needs a consistent audio stream.
The stream stops and does not resume The FFmpeg process, host, source files, or network may have failed; automatic recovery is not assured for every failure mode. Monitor the process and Live Control Room, identify the failure, then restart or repair the workflow as needed.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or let it run in the cloud

If you want a YouTube playlist to stay live without leaving a computer or home connection running, StreamNeo runs uploaded videos from the cloud. Upload your recording or build a playlist, add your YouTube stream key once, and go live. It is for uploaded video playback to YouTube, not a camera-based live feed.

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.
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
  • Nothing has to stay on at home; the stream runs from the cloud.
  • Videos stream as uploaded, up to 4K 60fps, at one price per slot with no quality tiers.
  • Automatic recovery is included if YouTube drops the stream.
  • The first day is free, with no card required; one free day per account.

Monthly: $9.99 per month.

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.