To loop a folder of gaming VODs into a YouTube Live stream, make an explicit playlist, confirm its files are compatible with FFmpeg’s concat demuxer, then use -stream_loop -1 and -re to repeat and pace the playlist. Encode to YouTube’s recommended format and bitrate, send it to the RTMPS address from Live Control Room, and verify the preview and stream health before clicking Go live. FFmpeg does not automatically find and order every video in a folder; the playlist defines the sequence.
1. Prepare an explicit playlist
The concat demuxer reads a text file of file directives and presents the listed inputs sequentially. Create the list deliberately so the order is predictable. For example, save this as /srv/vods/playlist.txt:
ffconcat version 1.0
file '/srv/vods/part-01.mp4'
file '/srv/vods/part-02.mp4'
file '/srv/vods/part-03.mp4'
The ffconcat version 1.0 header is optional when you explicitly specify -f concat. Absolute paths work with -safe 0; use that option only with a playlist you control. A safer arrangement is a playlist beside the videos that uses relative paths while retaining safe path handling. See the FFmpeg concat demuxer documentation.
Do not create the list with an unchecked wildcard or assume filesystem order is the order you want. Review it for missing files, duplicates, unrelated media, or an accidental entry for the playlist itself. The Linux account that runs FFmpeg must be able to read every listed file.
Recommended Free Tools
#1 Best Overall
- Spacious Design: Measuring 21.1" wide and 14.1" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
- Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy ergonomic support with the integrated cushioned wrist rest.
- Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
- Durable Surface: Work with confidence on our lap desk's solid surface, featuring a sleek black carbon color, ensuring optimal air circulation to prevent your laptop from overheating.
- On-the-Go Convenience: With an integrated handle and lightweight design (2.8 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
2. Check that the VODs can be concatenated
The concat demuxer joins packets; it is not a general-purpose converter for arbitrary videos. FFmpeg requires the inputs to have matching streams, codecs, and time bases. Differences in resolution, frame rate, audio layout, codec, or stream count can cause errors or bad transitions.
Inspect representative files
Use ffprobe on each file and compare stream count, codecs, time bases, resolution, frame rate, audio layout, and duration. For example:
Rank #2
- 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.
ffprobe -v error -show_streams -show_format /srv/vods/part-01.mp4
Repeat for the other playlist entries. Also check the actual durations and file readability. FFmpeg adjusts timestamps so the first file starts at zero and subsequent files follow it; unequal stream lengths or inaccurate duration information can introduce gaps or artifacts.
Choose the right concatenation method
| Method | Use it when | Trade-off |
|---|---|---|
| Concat demuxer | Inputs already have compatible stream properties. | Lower processing burden, but stream or duration mismatches can cause errors and artifacts. |
| Concat filter with re-encoding | Inputs need to be decoded and joined into a consistent output. | More processing work; it provides a route for mixed source formats when configured to handle them. |
If the files do not match, either normalize them to compatible properties before building the playlist or use a filter-and-re-encode workflow. The FFmpeg FAQ on joining video files distinguishes the filter route for re-encoding from packet concatenation. No single flag reliably reconciles every mixed VOD collection.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Rank #3
- Note: Not suitable for MacBooks released after 2023 or devices with a protruding front camera; Not applicable to full-screen or notch-style tempered glass screen protectors; Do not use on the rear camera of the phone.
- 💻 Why Do You Need a Webcam Cover Slide? — Safeguard your privacy by covering your webcam with our reliable webcam cover when not in use. Don't let anyone secretly watch you. Stay protected!
- ✅ Thin & Stylish — Enhance your laptop's functionality and aesthetics with our 0.027" ultra-thin webcam covers. Seamlessly close your laptop while adding a touch of sophistication.
- ✅ Fits Most Devices — Compatible with laptops, phones, tablets, desktops! Keep your privacy intact on Ap/ple, Mac/Book, iPh/one, iP/ad, H/P, L/novo, De/ll, Ac/er, As/us, Sa/msung devices.
- ✅ 365 Days Protection — Our upgraded 3.0 adhesive ensures a strong hold that won't damage your equipment. Experience reliable, long-term privacy protection day in and day out.
3. Loop and pace the playlist with FFmpeg
Once the playlist is ready, run a command like this from a Linux shell:
ffmpeg -re -stream_loop -1 -f concat -safe 0 -i /srv/vods/playlist.txt
-c:v libx264 -preset veryfast -pix_fmt yuv420p
-r 30 -g 60 -keyint_min 60 -sc_threshold 0
-b:v 5M -maxrate 5M -bufsize 10M
-c:a aac -b:a 128k -ar 44100
-f flv 'rtmps://SERVER_FROM_LIVE_CONTROL_ROOM/STREAM_PATH/STREAM_KEY'
-rereads the files at their native rate instead of sending them as fast as the server can process them.-stream_loop -1asks FFmpeg to repeat the input indefinitely. It is an input option, so it appears before the playlist’s-i.-f concatselects the concat demuxer.-safe 0permits absolute paths in this controlled playlist.-c:v libx264selects H.264 encoding;-c:a aacselects AAC audio. The command outputs FLV for RTMP/RTMPS ingest.-r 30sets the output frame rate. At 30 fps,-g 60gives a two-second GOP; set the GOP/keyframe interval to about two seconds if you choose another frame rate.-b:v,-maxrate, and-bufsizeare example rate-control settings, not a universal YouTube preset.
Replace the destination with the exact RTMPS URL and stream key shown in YouTube Live Control Room. Keep the key secret. Confirm that your installed FFmpeg build has the selected encoder and supports RTMPS; FFmpeg’s manuals are regenerated nightly, so consult the current FFmpeg documentation or your installed build’s ffmpeg -h output for version-specific behavior.
Rank #4
- Anti-Slip Surface - Transform your laptop into a mobile workstation with the AboveTEK portable laptop lap desk. The anti-slip surface provides a strong grip for laptops up to 15.6 inches(Diagonal), while the double rubber strip on the bottom ensures a stable display or typing experience on your lap, couch, or bed.
- Retractable Mouse Pad - Retractable laptop mouse pad extends on both directions for the left/right handed with elevation along the edges for stopping mouse from falling off. The size of laptop tray is 14" X 9.7" and the size of mouse pad is 7.4" X 6.1".
- Effective Heat Shield - The effective heat shield made of sturdy and thick material protects your laptop from overheating. Prioritizes your comfort and safety, an ideal lap pad or board for working anywhere.
- EASY to Carry and Store - With an ergonomic and simplistic design, the lap desk is portable to store in a backpack. Only 15" in size, 2.2 lb of weight and with slim 0.6 inch thickness, it is ready to be easily carried around.
- Widely Applicable - The smooth platform accommodates laptops and tablets up to 15.6 inches(Diagonal), making it a versatile accessory and one of the best gifts for mom, dad, students and professionals. Perfect for use as a laptop bed tray or tablet holder anywhere at home, library, or park.
4. Match encoder settings to YouTube’s ingest guidance
The figures below are YouTube Help recommendations for H.264, checked 2026-10-03; they are platform guidance, not a guarantee that a particular server or connection can sustain the stream. YouTube’s table can change, so check its current encoder settings, bitrates, and resolutions before broadcasting.
| Output | YouTube minimum video bitrate | YouTube recommended video bitrate |
|---|---|---|
| 720p at 30 fps, H.264 | 3 Mbps | 8 Mbps |
| 1080p at 30 fps, H.264 | 5 Mbps | 14 Mbps |
| 1080p at 60 fps, H.264 | 6 Mbps | 17 Mbps |
- YouTube recommends a two-second keyframe interval and says not to exceed four seconds.
- For stereo AAC audio, YouTube recommends 128 Kbps at 44.1 kHz.
- YouTube recommends CBR. The example command’s bitrate settings are a starting point, not a substitute for matching the bitrate to your chosen resolution and frame rate.
- YouTube’s broader encoder guidance lists RTMP/RTMPS, H.264, H.265, or AV1 video, frame rates up to 60 fps, and AAC or MP3 audio. This command specifically uses H.264, AAC, and RTMPS/FLV ingest.
Leave upload headroom rather than setting the video bitrate equal to the full measured upload capacity. YouTube Help says, “We recommend running a speed test to test your upload bitrate.” Test the actual server connection and watch YouTube’s stream-health messages.
Free tools Windows power users keep installed
One-click scans. No signup required.
Best Value
- Spacious Design: Measuring 21.1" wide and 12" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
- Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy laptop support with the integrated device ledge.
- Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
- Durable Surface: Work with confidence on our lap desk's solid surface, featuring a blush pink color, ensuring optimal air circulation to prevent your laptop from overheating.
- On-the-Go Convenience: With an integrated handle and lightweight design (2.14 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
5. Connect in YouTube Live Control Room and start the broadcast
- In YouTube Live Control Room, get the stream URL and key for the broadcast. Use the RTMPS endpoint YouTube provides where available; YouTube recommends RTMPS as encrypted ingest.
- Put that exact destination in the FFmpeg command, start FFmpeg, and keep the process running on the server.
- Wait for the incoming stream preview. Check the stream-health messages and confirm the picture and audio are behaving as expected.
- When the preview and health checks are satisfactory, start the broadcast in Live Control Room. YouTube’s streaming with an encoder guidance covers the control-room workflow.
Before relying on a long-running broadcast, test a representative section of the playlist. Monitor CPU usage, upload capacity, and YouTube’s health messages; performance depends on the server, input files, and connection, so no single command can promise real-time operation for every setup.
6. Troubleshoot playlist transitions and ingest errors
- FFmpeg says a file cannot be opened: check spelling, absolute or relative path handling, permissions, and readability as the Linux account running FFmpeg.
- The wrong clips play or the playlist repeats unexpectedly: inspect the text file line by line for order, duplicates, unrelated entries, or a playlist/output accidentally included in the list.
- Concat errors, freezes, or glitches at a transition: compare stream layouts, codecs, time bases, resolution, frame rate, and audio properties. Normalize the files or use a concat filter and re-encode rather than applying unverified flags.
- There is a gap or artifact between clips: check for unequal stream lengths and inaccurate duration information as well as property mismatches.
- YouTube reports a bitrate or keyframe problem: verify output resolution, frame rate, bitrate, and GOP duration against YouTube’s current table; a 60-frame GOP is two seconds only at 30 fps.
- RTMPS will not connect: use the exact RTMPS address, path, and port supplied in Live Control Room, and check that the installed FFmpeg build supports RTMPS.
- The server falls behind or the stream drops: monitor CPU and network upload during a representative test. Reduce output demands or move to a more capable server if it cannot sustain the chosen encode and upload rate.
7. Account for rights and YouTube channel rules
A technical loop does not grant permission to rebroadcast a game, soundtrack, commentary, or other material. Use VODs you own or are authorized to stream, and review YouTube’s applicable copyright and live-stream rules before going live. For a practical preflight, use StreamNeo’s copyright safety checklist; it is a checklist, not a substitute for rights clearance or YouTube’s rules.
Also consider whether a continuous stream built from previously uploaded material fits your channel’s obligations. YouTube’s live-streaming guidance and policies can change; check the rules applicable to your account and content rather than assuming that a technically valid stream is automatically eligible for every YouTube feature or monetization program.
Or let it run in the cloud
If you want to avoid maintaining a Linux server and FFmpeg process, StreamNeo keeps a YouTube channel live from uploaded videos: upload a recording or build a playlist, add your YouTube stream key, and go live. Nothing has to stay on at home; it streams the uploaded video as made, up to 4K 60fps, at one price per slot; and it automatically recovers if YouTube drops the stream. The first day is free with no card. The monthly option is $9.99 per month.
Quick Recap
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.




