To loop an ordered set of local video clips into a YouTube Live stream, put compatible files in an FFmpeg concat list, then use the concat demuxer with -stream_loop -1 and real-time input pacing. FFmpeg sends each clip after the previous one; it does not create transitions or make mismatched files compatible. The steps below cover playlist syntax, encoding, YouTube settings, and common failures.
1. Check whether the concat demuxer fits your clips
The concat demuxer treats a text list of files as one virtual input. FFmpeg’s documentation describes it as reading files and directives from a text file and demuxing them one after another, as if their packets had been muxed together. It is a good fit when the clips are already compatible and you want to avoid an intermediate joined file.
- Each file should have the same stream layout, codecs, and time bases—for example, matching video and audio streams.
- The demuxer plays clips consecutively. It does not add transitions or normalize each clip’s picture, audio, or format.
- If the clips differ in codec, stream layout, or timing, normalize or re-encode them first, or use FFmpeg’s concat filter. FFmpeg’s FAQ distinguishes the demuxer approach from the filter approach and recommends the filter when re-encoding is needed: FFmpeg FAQ.
See the FFmpeg concat demuxer documentation for the directive syntax and compatibility details.
2. Create the concat playlist
-
Put the clips and playlist in a working directory, or decide how you will refer to each clip from the directory where FFmpeg will run.
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.
-
Create a UTF-8 or ASCII-compatible plain text file named
playlist.ffconcat. Its first line must be exactlyffconcat version 1.0—no leading blank, extra spaces, or byte-order mark—so FFmpeg can recognize the format automatically. -
Add one
filedirective per clip, in the order you want them played:ffconcat version 1.0 file 'clip1.mp4' file 'clip2.mp4' file 'clip3.mp4' -
Use simple relative paths where practical. Paths with spaces or special characters must be quoted or escaped using concat-file syntax; this is not a shell command line. The demuxer’s safe-path check is on by default. For a trusted playlist with absolute paths or paths FFmpeg considers unsafe, use
-safe 0before-i. Do not disable that check for a playlist you do not trust.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.
3. Get the YouTube Live ingest details
Create or select the live stream in YouTube Live Control Room and copy the ingest URL and stream key YouTube provides. Keep the key private: anyone who obtains it may be able to send video to your stream. Use the current RTMP or RTMPS ingest information supplied by YouTube rather than guessing an endpoint.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minuteBefore broadcasting, check the current YouTube live encoder settings. The page lists RTMP/RTMPS, supported video codecs, frame rates up to 60 fps, AAC or MP3 audio, and CBR guidance. It recommends a two-second keyframe interval and says not to exceed four seconds. Recommendations vary by codec, resolution, and frame rate, so select the bitrate from YouTube’s current guidance for your chosen output rather than treating the sample command below as universal.
4. Run the loop with FFmpeg
This representative RTMP(S) command shows the workflow. It is an illustrative starting point, not a tested or universally suitable preset. Replace the ingest URL and stream key with your own values, and choose output resolution, frame rate, and bitrate for the source material and the upload connection.
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.
ffmpeg -re -stream_loop -1 -f concat -safe 0 -i playlist.ffconcat
-c:v libx264 -preset veryfast -pix_fmt yuv420p
-r 30 -g 60 -b:v 4500k -maxrate 4500k -bufsize 9000k
-c:a aac -b:a 128k -ar 44100
-f flv "$INGEST_URL/$STREAM_KEY"
-repaces a file-based input at its native rate instead of reading and sending it as fast as storage permits.-stream_loop -1repeats the input indefinitely.-f concatselects the concat demuxer.-safe 0relaxes its path restrictions; omit it when simple safe relative paths suffice.-g 60sets a 60-frame GOP, which corresponds to a two-second interval at the command’s 30 fps. At a different frame rate, set the GOP length accordingly to target YouTube’s recommended two-second keyframe interval.- The sample encodes H.264 video and AAC audio. Its 4500 kbps video rate is only an example; consult YouTube’s current settings for the selected codec, resolution, and frame rate, and ensure your connection can sustain the output.
The example assumes the input has audio. If clips have no audio, the command does not manufacture an audio stream; choose a deliberate silent-audio source or another audio plan compatible with the output you intend to send.
5. Test and monitor the broadcast
YouTube recommends testing with audio and motion representative of the real stream, then monitoring stream health and messages while live. Start the encoder and check YouTube Live Control Room before relying on a long loop. The YouTube Live Streaming API documentation describes stream states such as active, ready, inactive, and error, along with health states including good, ok, bad, and noData.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →6. Troubleshoot common failures
FFmpeg does not recognize the playlist
Check that ffconcat version 1.0 is the exact first line, with no blank line, leading characters, or byte-order mark. Confirm the file is plain text and paths use concat syntax rather than shell quoting rules.
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
FFmpeg rejects paths
Try simple relative filenames from the working directory. For absolute paths or paths rejected by the safe-path check, use -safe 0 as an input option before -i, and only when you control and trust the playlist.
Clips fail at a boundary or produce artifacts
Verify that every clip has matching streams, codecs, and time bases. Also check duration metadata, truncation, and whether audio and video lengths differ. The demuxer schedules each next file using the previous file’s duration; if you know the correct duration, a duration directive can override an incorrect value. For incompatible sources or per-clip normalization, prepare a common format or use a filter-based workflow.
YouTube reports no data, bad health, or an ingest error
Verify the ingest URL and stream key in Live Control Room, then inspect YouTube’s health messages. Check that FFmpeg is still running, the output is paced in real time, and the upload connection can sustain the selected bitrate. Use the current YouTube encoder settings if the codec, frame rate, keyframe interval, or bitrate may be outside its guidance.
Free tools Windows power users keep installed
One-click scans. No signup required.
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.
The stream has no sound
Check whether the source clips contain audio streams. The example command maps an audio encoder but does not create audio from silent inputs; supply a deliberate audio source or configure an output plan that matches the intended stream.
Or let it run in the cloud
If you want a YouTube channel to keep looping uploaded videos without leaving a computer or home connection running, StreamNeo runs the stream from the cloud. Upload your recording or build a playlist, add your YouTube stream key once, and go live. It plays uploaded video—not a camera feed—and streams to YouTube only.
Quick Recap
- Nothing has to stay on at home.
- Every quality up to 4K 60fps streams as uploaded, at one flat price per slot; there are no quality tiers or re-encoding.
- StreamNeo automatically recovers if YouTube drops the stream.
- The first day is free, with no card required. The Monthly price is $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.




