To repeat a YouTube Live product-demo playlist, put the files in a concat-demuxer list, then use -stream_loop -1 to loop that list and -re to send it at real-time speed. This repeats the playlist; it does not guarantee gap-free transitions. The files must have compatible streams, codecs and time bases, and inaccurate duration metadata can cause timestamp problems.
1. Prepare a compatible playlist
Create a plain-text file named playlist.txt, with one file entry per line:
file '/media/demo-a.mp4'
file '/media/demo-b.mp4'
file '/media/demo-c.mp4'
For relative paths, run FFmpeg from the directory containing the list and use file names relative to it. The concat demuxer applies path-safety rules. The example command below uses -safe 0 to allow paths such as the absolute paths shown above; only do this with a playlist you trust, because it relaxes those checks. See the FFmpeg concat demuxer documentation.
Before streaming, check that each file has the same streams, codecs and time bases. Differences in stream length or incorrect duration metadata can produce gaps or timestamp artifacts. If the clips do not match, normalize them to a common video size, frame rate, pixel format and codec, plus a common audio codec, sample rate and channel layout. A September 2024 FFmpeg-user mailing-list response also recommends transcoding a static playlist to common properties before concatenation; that is community advice, not a guarantee of seamless playback (FFmpeg-user discussion).
#1 Best Overall
- 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.
2. Configure and run FFmpeg
In YouTube Studio, create or select an encoder-based live stream. Copy the ingest URL and stream key shown for that stream into your encoder configuration. Treat the key like a password: anyone who has it may be able to send video to your stream. YouTube’s setup instructions are at Create a YouTube live stream with an encoder.
Use this illustrative command as a starting point, replacing the endpoint and key with the values YouTube provides. It is not a tested, universal command; adapt the output settings to your stream and FFmpeg build.
Rank #2
- 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.
ffmpeg -re -stream_loop -1 -f concat -safe 0 -i playlist.txt
-c:v libx264 -preset veryfast -pix_fmt yuv420p
-r 30 -g 60 -keyint_min 60 -sc_threshold 0
-b:v 5000k -maxrate 5000k -bufsize 10000k
-c:a aac -b:a 128k -ar 44100 -ac 2
-f flv 'rtmps://YOUR_YOUTUBE_INGEST/YOUR_STREAM_KEY'
-f concat -i playlist.txttells FFmpeg to read the listed files as a virtual sequence.-stream_loop -1repeats that input indefinitely.-repaces file input at its native rate so it is not sent as fast as the computer can read it. Both are input options, so they appear before the corresponding-i. See the FFmpeg command-line documentation.-g 60at-r 30requests a two-second keyframe interval. The example’s5000kvideo bitrate is illustrative, not a recommendation for every resolution or frame rate.- The command transcodes video to H.264 and audio to AAC with the listed output settings. If your clips are already compatible, stream-copying may avoid encoding work, but only if their properties and timestamps work together and the resulting output meets YouTube’s ingest requirements.
YouTube recommends RTMPS and currently lists H.264, HEVC or AV1 video, AAC or MP3 audio, constant bitrate (CBR), and keyframes every two seconds, with intervals not over four seconds. Its bitrate guidance varies by codec, resolution and frame rate. Choose settings using YouTube’s current live encoder settings, bitrates and resolutions, rather than copying the example bitrate blindly. Check that your FFmpeg build supports the selected output muxer and protocol.
3. Test transitions and monitor the stream
- Start with a short private or unlisted test if that suits your channel. YouTube advises testing before going live.
- Check the Studio preview for picture, sound and ingest warnings. Watch each clip boundary, then the transition from the final playlist item back to the first.
- If a transition stutters or leaves a gap, inspect the files’ stream layout, time bases, durations and timestamps. Normalize the clips to a shared profile if needed, then retest the actual playlist.
- Monitor stream health and YouTube’s messages while FFmpeg runs. The process and network connection must remain active; looping the input does not restart a crashed process or repair a dropped connection.
YouTube says streams under 12 hours are automatically archived. Do not assume the same archive outcome for a continuous stream lasting 12 hours or longer (YouTube encoder-stream guidance).
Rank #3
- 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.
4. Troubleshoot common problems
| Symptom | Likely cause | What to check or change |
|---|---|---|
| FFmpeg errors when moving to the next clip | Different stream layouts, codecs or time bases in the concat input | Inspect every file and normalize the clips to matching streams and compatible properties before concatenating. |
| Brief gap, glitch or audio discontinuity at a clip boundary | Unequal stream lengths, inaccurate duration metadata, incompatible timestamps or damaged media | Check durations and timestamps, validate the source files, and test each boundary—including the playlist wraparound. |
| YouTube reports an ingest problem | Output codec, bitrate, resolution, frame rate, keyframe interval or protocol does not match the selected stream’s requirements | Compare the FFmpeg output settings with the current YouTube encoder guidance and the settings shown for your stream. |
| The stream stops instead of looping | The FFmpeg process exited or lost its network connection | Check FFmpeg’s output and connection, then restart or supervise the process as appropriate. -stream_loop -1 repeats media only while FFmpeg is running. |
5. Keep the stream running without a computer at home
Or let it run in the cloud
FFmpeg keeps the stream going only while its process and connection stay up. StreamNeo is a cloud service for keeping a YouTube channel live from uploaded videos: upload a recording or build a playlist, add your YouTube stream key once, and go live. It loops the video in the cloud, so nothing has to stay on at home. Each slot streams uploads as made, up to 4K 60fps, at one flat price per slot; it also includes automatic recovery if YouTube drops the stream. The first day is free with no card.
For a single slot, the monthly option is $9.99 per month. StreamNeo is YouTube-only and plays uploaded videos, not a live camera feed. Learn more at StreamNeo, or start the free first day.
Rank #4
- 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
Copyright and channel considerations
Only stream material you have the rights to use. A successful FFmpeg setup does not establish permission to rebroadcast a game’s music, footage, trailers or other third-party material. Review YouTube’s applicable copyright and monetization rules for your channel and content before scheduling a long-running stream. Repeating a playlist also does not itself guarantee that YouTube will treat the content as eligible for monetization; channel eligibility and content review are separate from ingest configuration.
Quick Recap
Best Value
- 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.
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.
Free tools Windows power users keep installed
One-click scans. No signup required.




