October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober 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 Use a Playlist File to Loop Indian Music Videos in FFmpeg for YouTube Live

Create a text playlist of Indian music videos, loop it with FFmpeg, and send a tested, compatible stream to YouTube Live.
Opened Runtime7 min Written byDocumentaryTube Team

Free tools Windows power users keep installed

One-click scans. No signup required.

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

Use FFmpeg’s concat demuxer to read a text playlist in order, then place -stream_loop -1 before the playlist input to repeat it indefinitely. Pace the file input with -re, encode to a YouTube-compatible stream, and test the transitions: looping alone does not make videos with different formats or timestamps join cleanly.

What you need before you start

  • FFmpeg installed on a computer that can stay on and maintain a reliable internet connection for the broadcast.
  • Local video files you have the right to stream. YouTube’s copyright and monetization rules still apply to music and video in a live playlist.
  • A YouTube live stream configured in YouTube Studio, with a stream key. Treat the key like a password: do not publish it, commit it to a script repository, or share it in logs.
  • A playlist whose files FFmpeg can access. The concat demuxer works best when every file has the same streams, codecs and time bases.

The example below uses H.264 video and AAC audio, with RTMP ingest. YouTube recommends RTMPS, the encrypted version, where available; use the ingest address supported by your YouTube stream configuration.

Create the FFmpeg playlist file

Make a plain-text file named playlist.txt. Its first line must be exactly ffconcat version 1.0 if you want FFmpeg to recognize the format automatically. Do not add a blank line, other text or a byte-order mark before it. Add one file directive per video, in the order you want them to play.

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

Replace each example path with the real path on the machine running FFmpeg. Quote paths that contain spaces or special characters using concat-file syntax. On Windows, use paths appropriate to your system and take care with backslashes and quoting. The playlist is read relative to the FFmpeg process’s working directory unless you use absolute paths.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
KAMRUI Pinova P2 Mini PC, AMD Ryzen 7330U(4 Cores, 8 Threads, Up to 4.3GHz), 16GB RAM 256GB SSD, Zen3 Architecture 7nm Processor, 8MB L3 Smart Cache Mini Computers,Triple 4K Display Home/Business
  • 【AMD Ryzen 7330U】 – The Efficiency-Tuned Powerhouse,AMD Ryzen 7330U (Zen 3, SMT, 4C/8T) in KAMRUI P2 mini PC crushes rivals: Intel i3-10110U (2C/4T, 2019) and N95 (4 efficiency cores, no HT, single-channel memory). Vs predecessor Ryzen 3 4300U (4C/4T): ~50% faster single-core, ~46% multi-core, 8MB L3 cache (vs 4MB). Beats both Intel chips hugely in multi-core, making heavy multitasking, coding, data work smooth at just 15W TDP. High-end power in a cool, efficient box.
  • 【AMD Radeon Graphics】– Triple 4K Vision & Fluidity,The integrated Radeon Graphics (based on the modern Vega architecture with 6 CUs) is a visual beast, outclassing the iGPU offerings from both AMD's prior generation and Intel. The Intel UHD Graphics (i3-10110U/N95) struggles with single-channel memory and low execution units, crippling its gaming performance and barely handling basic 4K video without stuttering. While the older Radeon Vega 5 (4300U) was decent, our 7330U's Radeon Graphics (6 CUs) pushes the boundaries, delivering higher graphics clock speeds (up to 1.8GHz) and significantly better rendering capabilities. It can drive triple 4K@60Hz displays with zero lag, edit photos/videos.
  • 【Generous Storage & Easy Expansion】The KAMRUI Pinova P2 mini desktop computers comes with 16GB LPDDR4X RAM (higher frequency, lower power) for buttery‑smooth multitasking, and a 256GB M.2 SSD for blazing fast boot‑up, quick file transfers, and no more long loading screens. It also features two storage expansion slots (1x M.2 2280 SATA/NVMe PCIe 3.0 slot + 1x M.2 2280 SATA slot), supporting up to 4TB total (not included). You’ll have all the space you need for projects, media, and important data.
  • 【Triple 4K Display Output】The KAMRUI Pinova P2 mini desktop pc is equipped with HDMI 2.0 ×1 + DP 1.4 ×1 + USB 3.2 Gen2 Type‑C ×1 (with DP Alt Mode), enabling simultaneous triple 4K@60Hz output. Whether for home entertainment, remote work, or conference room presentations, it delivers an immersive visual experience. Two USB 3.2 Gen2 Type‑A ports (up to 10Gbps – 21x faster than USB 2.0) make data transfers and device expansion a breeze.
  • 【USB 3.2 Gen2 Type‑C: 10Gbps & Versatile Connectivity】The USB 3.2 Gen2 Type‑C port on the KAMRUI P2 small pc supports 10Gbps data transfer speeds and can also output DisplayPort 1.4 video. Together with Gigabit LAN, Wi‑Fi, and Bluetooth, you get a fast, flexible, and productive connected environment – wired or wireless.

Check the files before streaming

The concat demuxer is a virtual concatenation method: it reads each file in sequence and adjusts timestamps so the next file follows the previous one. FFmpeg’s documentation says all files must have the same streams, including codecs and time bases: FFmpeg concat demuxer documentation. If clips vary in video codec, audio stream layout, dimensions, frame rate, pixel format or aspect ratio, normalize them to a common format first or use a filter-based workflow that converts each input consistently. A 2024-09-22 FFmpeg-user mailing-list response also recommends matching properties for a static playlist; that is practical guidance, not a promise of seamless transitions: FFmpeg-user discussion.

Inaccurate duration information can cause artifacts. The concat demuxer allows a duration directive where you need to set a duration explicitly. Do not assume -stream_loop -1 repairs timestamp discontinuities or incompatible media.

Configure the YouTube Live output

YouTube’s current live encoder guidance supports RTMP/RTMPS ingest and H.264, H.265 (HEVC) or AV1 video; AAC or MP3 audio; and constant bitrate (CBR) encoding. For a straightforward compatibility-oriented setup, the command below encodes H.264 video and AAC audio. YouTube recommends a two-second keyframe interval and sets four seconds as the maximum. With 30 fps video, -g 60 gives a two-second interval. If you change frame rate, adjust the GOP length accordingly. See YouTube’s live encoder settings.

YouTube’s published H.264 bitrate recommendations include these ranges. They are platform recommendations, not guarantees of a particular viewer experience:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
GMKtec M5 Ultra Gaming Mini PC Ryzen 7 7730U 32GB RAM 512GB SSD Desktop
  • Office Gaming Mini PC - UPGRADED GMKtec Nucbox M5 Ultra Series is equipped with the powerful AMD Ryzen 7 7730U processor, 8 Cores/16 Threads, Base 2.00GHz (Power Saving Quiet Mode) with Turbo Boost up to 4.50GHz (Performance Mode) in BIOS settings, Based on the ZEN 3+ architecture, this small but powerful mini pc delivers satisfying results in productivity, office work, and gaming. 35% Performance increase over AMD Ryzen 5 7430U/ Ryzen 7 5700U, 5600U, 5560U, 5500U.
  • 32GB DDR4 RAM & 512GB PCIe SSD - Installed with DDR4 32GB RAM Dual Channel (2x16GB), the Nucbox M5 Plus mini pc support expansion to 64GB RAM. Featured with 512GB M.2 2280 PCIe 3.0 SSD, support dual slot expansion to 4TB SSD. (Upgrades not included)
  • DUAL NIC LAN 2.5G RJ45 - Fast Network Speeds: Enjoy up to 2500Mbps data transmission speed without worrying about lagging. Ideal for working, gaming, and surfing the internet. Great for Untangle, Pfsense or as a server office PC.
  • Mini Desktop Computer with 4K Triple Screen Display - Nucbox M5 Ultra integrates AMD Radeon Graphics 8 Cores 2000 MHz GPU to deliver powerful graphics processing power to easily handle the demands of complex design software, 4K@60Hz UHD video editing, and playback. It can connect to 3 display screens simultaneously.
  • Fast Internet WiFi 6E + BT5.2 Connection - GMKtec Mini PC with WiFi-6E Wireless, have 2.5G/5G/6G triple band, more faster and lower latency. Bluetooth 5.2 allowing you more quickly to connect other wireless devices (headset, mouse, keyboard, etc.) Interface features 2*USB3.2 ports, 2*USB2.0 ports, 1*HDMI 2.0 port(4K@60Hz), 1*USB-C port(PD/DP/DATA), 1*DP Port, 1*Audio 3.5mm (HP&MIC), 1*DC Power Port.
Output profile Recommended video bitrate
720p at 30 fps 3–8 Mbps
720p at 60 fps 3–8 Mbps
1080p at 30 fps 5–14 Mbps
1080p at 60 fps 6–17 Mbps

Choose a rate within the range for your intended resolution and frame rate, and below what your internet connection can sustain reliably. YouTube lists 128 Kbps audio and a 44.1 kHz sample rate for stereo in its advanced recommendations. Test your actual upload capacity and watch the stream health indicators rather than assuming a nominal connection speed will hold.

Run the playlist as a live stream

This illustrative command reads the playlist at native media rate, repeats it, transcodes to H.264/AAC, and sends it to YouTube. It is a starting point, not a tested command or universal preset.

ffmpeg -re -stream_loop -1 -f concat -safe 0 -i playlist.txt 
  -c:v libx264 -preset veryfast -pix_fmt yuv420p 
  -b:v 5M -maxrate 5M -bufsize 10M -g 60 
  -c:a aac -b:a 128k -ar 44100 
  -f flv 'rtmp://a.rtmp.youtube.com/live2/REPLACE_WITH_STREAM_KEY'
  1. Set the video bitrate. The example’s 5M is for illustration. Select a suitable rate from YouTube’s range for the output resolution and frame rate; set -b:v and -maxrate to the chosen rate, and adjust -bufsize appropriately.
  2. Set the keyframe interval. At 30 fps, -g 60 corresponds to two seconds. For another frame rate, use roughly two times the frames per second to retain that interval.
  3. Use the correct stream key and ingest address. Replace the placeholder with the key from your YouTube live stream configuration, and select an ingest protocol and address YouTube supports for that configuration. YouTube recommends RTMPS where available.
  4. Start the stream and check both ends. Watch FFmpeg’s output for failed stream mapping, missing audio or non-monotonic timestamps. In YouTube Live Control Room, confirm the incoming signal and monitor stream health.

-stream_loop -1 is an input option, so it appears before -i playlist.txt. It asks FFmpeg to repeat the concat input indefinitely. -re paces file input at native media rate so it behaves like a live source instead of being sent as fast as the computer can read it. The command encodes rather than copying source streams, which gives you control of the outgoing codec and settings.

Test transitions and check YouTube’s rules

Before announcing or scheduling a long broadcast, run a short test with representative clips and then test the complete playlist loop. YouTube advises testing with representative movement and audio and monitoring stream health and messages during the event: YouTube live encoder guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
BOSGAME E5 11 Pro Mini PC, AMD Ryzen 5300U 4C/ 8T, Business Home Office PC
  • 【AMD Ryzen 3 5300U CPU: Outperforms N150 & 3500U】 BOSGAME E5 mini PC is powered by the TSMC 7nm FinFET architecture AMD Ryzen 3 5300U processor (4 Cores, 8 Threads, up to 3.8GHz boost, 6MB total cache). Compared to low-end Intel N150 or 3500U chips which only have 4 single threads and throttle under load, the 5300U delivers over 30% faster multi-core speed. Run 30+ browser tabs, large Excel sheets, and Zoom meetings simultaneously without system lag.
  • 【8GB DDR4 RAM & 256GB NVMe SSD Storage】 Installed with high-speed 8GB DDR4 dual-channel memory and a fast 256GB M.2 2280 SSD, eliminating slow boot times and application loading delays. To accommodate growing data requirements, the upgradeable hardware design features dual SODIMM slots that allow you to expand memory up to 64GB RAM, ensuring smooth operation during heavy multitasking.
  • 【High-Capacity Dual M.2 SSD Storage Expansion】 Never worry about running out of space for your business files. In addition to the pre-installed 256GB system drive, the motherboard houses an extra empty internal M.2 2280 NVMe PCIe 3.0 slot. This allows you to easily add a second solid-state drive for up to an additional 2TB of storage capacity (upgrades not included) without needing to remove or reinstall the original operating system.
  • 【Radeon 6-Core Graphics & Triple 4K Displays】 Integrated with official AMD Radeon Graphics (6 Graphics Cores, 1500 MHz frequency) for casual gaming, photo editing, and crisp 4K media decoding. Featuring 1x HDMI 2.0 port, 1x DisplayPort, and 1x Full-Function Type-C port, the E5 outputs true 4K@60Hz resolution to three monitors at once. This multi-screen setup eliminates constant window-switching for traders, programmers, and office workers.
  • 【Dual 2.5GbE LAN Ports for Advanced Networking】 Experience fast wired network transmission speeds up to 2500Mbps without lagging or buffering. The integration of dual 2.5 Gigabit Ethernet ports (powered by Realtek RTL8125 controller) makes this compact computer an exceptional hardware choice for tech enthusiasts. Easily configure it into software routers, hardware firewalls (pfSense, OpnSense), home NAS servers, or local homelabs.
  • Confirm every listed path resolves from the FFmpeg process and every clip has the expected audio and video streams.
  • Compare stream count, codecs, time bases, dimensions, frame rates and audio channel layout across playlist entries.
  • Listen and watch at file boundaries. Look for silence, a frozen frame, a jump, missing audio, timestamp warnings or an unexpected change in aspect ratio.
  • Check that the output resolution, frame rate, bitrate and keyframe interval match your intended YouTube ingest profile and the connection’s sustained upload capacity.
  • Use music and video you are authorized to broadcast. A playlist file does not grant rights to copyrighted recordings, performances, artwork or video, and repeated content remains subject to YouTube policies.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common failures

FFmpeg cannot open a playlist file or one of its clips

Check the working directory, spelling, capitalization where relevant, and whether the FFmpeg process can read each path. Use absolute paths to remove ambiguity, and quote paths containing spaces or special characters. Ensure the playlist’s first line is the exact format marker if relying on automatic format recognition.

The next video causes errors, a freeze or a bad transition

Compare the streams and timing properties of the files around that boundary. The concat demuxer expects matching stream structures, codecs and time bases. Normalize mismatched files before concatenating them, or adopt a filter-based workflow built to convert each input. Check FFmpeg output for non-monotonic timestamps and inaccurate duration effects; looping does not correct those problems.

There is no audio, or audio changes between clips

Inspect the audio stream in every playlist entry, including codec, channel layout and sample rate. A video-only file or changing audio layout can interrupt an intended continuous soundtrack. Ensure the output maps the intended audio and that each clip supplies a compatible stream before relying on the playlist for continuous audio.

YouTube reports a weak or unstable stream

Check that the selected bitrate is within YouTube’s recommendation for the output profile and below the connection’s sustainable upload capacity. Confirm that encoding is CBR as required by YouTube’s guidance, and that the keyframe interval is two seconds or less than the stated four-second maximum. Test again while monitoring YouTube’s stream health messages.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
GMKtec G3S Mini PC Intel N95 Processor (Up to 3.4GHz) 8GB RAM 256GB M.2 SSD
  • 12th Intel Alder Lake N95 Processor – The GMKtec G3 S Mini PC is powered by the 12th Gen Intel N95 processor with 4 cores, 4 threads, 6MB cache and a burst frequency up to 3.4GHz. Compared with N100/N5105/N5100/N5095, the N95 delivers up to 36% overall performance improvement. Perfect for routine tasks, office work, and home entertainment, this compact mini desktop is more convenient than traditional bulky PCs.
  • 8GB RAM & 256GB SSD Storage – Pre-installed with 8GB DDR4 memory and a fast 256GB M.2 2242 SSD, the G3 S mini desktop offers quicker startup, smoother multitasking, and faster file transfers. Enjoy seamless performance whether you’re working on multiple applications, browsing, or streaming content.
  • Rich Interfaces & Connectivity – The G3 S mini computer comes equipped with USB 3.2 (up to 10Gbps), dual HDMI 2.0 (4K@60Hz), and a 3.5mm audio jack. With support for WiFi 5, Bluetooth 5.0, and Gigabit Ethernet (RJ45 1000MbE), it connects easily with monitors, projectors, printers, office equipment, and other peripherals, making it versatile for both home and business use.
  • Dual 4K Display Support – Featuring upgraded Intel UHD Graphics (up to 1000MHz), the G3 S supports 4K video playback and AV1 decoding for a smooth viewing experience. With dual HDMI outputs, you can connect two 4K@60Hz displays simultaneously, enabling efficient multitasking for work and entertainment.
  • GMKtec WARRANTY - GMKtec offers a 1-year limited GMKtec's warranty for each mini PC, starting from the date of the purchase. All defects due to design and workmanship are covered. With a professional after sales team always ready to attend to your needs, you can simply relax and enjoy your mini PC.

The stream stops after one pass

Confirm that -stream_loop -1 is before the relevant -i playlist.txt input and that the process has not exited because of an input, encoding or network error. The option repeats media input; it does not prevent a computer shutdown, internet outage or YouTube ingest interruption.

Or let it run in the cloud

If you do not want a computer at home to run FFmpeg throughout the broadcast, StreamNeo keeps a YouTube channel live from uploaded videos in the cloud. 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.

  • One flat price per slot for any uploaded quality up to 4K 60fps; it streams the file as made, with no re-encode or quality tiers.
  • Automatic recovery if YouTube drops the stream.
  • The first day is free, with no card required.
  • Each slot includes one always-on stream, 10 GB storage per slot pooled across active slots, 24/7 looping and playlists, and StreamNeo team support. The product is the same across plans; only billing length changes.

Monthly: $9.99 per month. UPI and cards are available in India; card checkout is available worldwide. Start the free day at StreamNeo registration.

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.

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.

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
Windows Errors? Fix Them Before They SpreadFree repair scan

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.