DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
Mountain View desk5 min

How to Stream a YouTube Playlist Continuously with FFmpeg Concat

Use an FFmpeg concat manifest and infinite input looping to stream local videos continuously to YouTube Live, with compatibility checks and troubleshooting.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To loop local video files continuously into a YouTube Live stream, list them in order in an FFmpeg concat manifest, then feed that manifest to FFmpeg with -stream_loop -1 and real-time input pacing. The concat demuxer works best when every file has matching stream layouts, codecs and time bases; mismatched files need normalization and re-encoding instead of a blind stream copy.

What you need before you start

  • FFmpeg installed on a computer that can remain online and send the stream for as long as needed.
  • Local video files you have the right to broadcast. This method does not download or rebroadcast videos from YouTube.
  • A YouTube Live stream and its current server URL and stream key, copied from YouTube Studio or Live Control Room.
  • Sufficient, stable upload bandwidth for the output bitrate, plus time to test the full playlist and its repeat point.

YouTube describes the stream key as similar to a password and address. Keep it private: do not include it in a public script, screenshot, tutorial, or shell-history excerpt.

As an Amazon Associate I earn from qualifying purchases.

Prepare the concat manifest

Create a plain-text file named playlist.txt. Put the version header on the first line exactly as shown, followed by one file line per local video, in playback order:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ffconcat version 1.0
file '/media/show/part-01.mp4'
file '/media/show/part-02.mp4'
file '/media/show/part-03.mp4'

Replace the example paths with paths that exist on your computer. The concat demuxer reads the listed files in sequence and derives subsequent timestamps from each file’s duration. FFmpeg’s documentation requires the files to have the same streams, codecs and time bases. Incorrect duration metadata can create gaps or artifacts, so matching file extensions alone is not enough.

#1 Best Overall
CyberPowerPC Gaming PC, AMD Ryzen 5 5500, Radeon RX 6500 XT 4GB
  • System: AMD Ryzen 5 5500 3.6GHz 6 Cores | AMD B550 Chipset | 8GB DDR4 | 500GB PCIe 4.0 NVMe SSD | Windows 11 Home
  • Graphics: AMD Radeon RX 6500 XT 4GB Graphics | 1x HDMI | 1x DisplayPort
  • Connectivity: 4 x USB-A 3.2 | 4 x USB-A 2.0 | 1 x LAN | WiFi 5 | Bluetooth 5.0 | 7.1 Channel Audio
  • Tempered Side Case Panel | Custom RGB Lighting | Keyboard and Mouse
  • 1 Year Parts & Labor Warranty, Free Lifetime Tech Support

Check whether stream copy is suitable

For compatible files, stream copy avoids a decode-and-encode pass, saving CPU and avoiding another generation of encoding loss. It is not a promise of seamless transitions: the demuxer remains sensitive to stream compatibility and duration metadata.

Input situation Approach Trade-off
Files have matching streams, codecs and time bases, and transitions have been tested Concat demuxer with -c copy Low processing overhead and no re-encode; stricter compatibility and duration requirements.
Files have different stream layouts or codec parameters, or need a consistent output profile Decode, normalize and re-encode; use FFmpeg’s concat filter when re-encoding is needed More CPU use and an encoding step, but output can be normalized.

Do not assume packet-copy concatenation will work for arbitrary files. If the sources differ, decide on a target resolution, frame rate, video and audio codecs, and audio layout before building a re-encode workflow. There is no universally safe re-encode command without those details.

Rank #2
Sale
WIWB Gaming PC Desktop, GeForce RTX 3050 8GB GDDR6, AMD Ryzen 7 4700LE
  • 8-Core 16-Thread Processing Power – Powered by the Ryzen 7 4700LE processor with Zen 2 architecture, delivering 8 cores and 16 threads with a boost clock up to 4.2GHz. Effortlessly handle multitasking, streaming, content creation, and demanding applications simultaneously without slowdowns.
  • GeForce RTX 3050 8GB Graphics – Equipped with 8GB GDDR6 dedicated VRAM and real-time ray tracing support. Experience smooth 1080p gaming at 55-60 FPS in AAA titles like Cyberpunk 2077, 70+ FPS in Fortnite, and 90-100 FPS in Apex Legends with DLSS enabled. The 8GB buffer handles modern game textures comfortably – a step above 6GB variants
  • High-Speed Memory & Storage – Paired with 16GB of DDR4 3200MHz dual-channel RAM (16GB), the PC ensures responsive multitasking—whether streaming while gaming or editing videos. It also includes a 512 GB NVMe M.2 SSD for lightning-fast boot times, quick game loads, and ample storage for your game library, creative projects, and files.
  • Next-Gen WiFi 6 Connectivity – Stay connected with the latest WiFi 6 technology for faster speeds, lower latency, and improved network efficiency. Whether you're gaming online, streaming 4K content, or joining video conferences, enjoy stable, high-speed wireless connectivity.
  • Ready-to-Use Value Desktop – Pre-built and ready to go right out of the box. Perfect for gamers, students, content creators, and home office users seeking reliable performance without the hassle of building a PC themselves. The mature AM4 platform with DDR4 memory offers excellent value and proven stability.

Send a compatible playlist to YouTube Live

  1. Get the current destination. In YouTube Studio / Live Control Room, create or select the live stream and copy its current server URL and stream key. Enter the matching values in your encoder; never expose the key.
  2. Use a supported output profile. YouTube’s current encoder guidance covers RTMP/RTMPS; H.264, H.265/HEVC and AV1 video; AAC or MP3 audio; constant bitrate (CBR); and frame rates up to 60 fps. For broad compatibility, H.264 video with AAC audio over RTMPS is a sensible starting point, but follow the settings for your stream in YouTube’s live setup.
  3. Choose a bitrate for the actual output. YouTube gives separate bitrate guidance by resolution, frame rate and codec. Select the applicable recommendation and confirm your available upload bandwidth can sustain it; a single bitrate is not correct for every stream.
  4. Check keyframes. YouTube recommends a two-second keyframe interval and says not to exceed four seconds. Configure the encoder accordingly when you are encoding; with -c copy, the source files determine their encoded keyframes, so inspect the source profile rather than assuming FFmpeg is changing it.
  5. Test before going public. Start an unlisted or test stream if appropriate, check the Live Control Room preview and stream health, and watch transitions between every file, including the transition from the last file back to the first.

For compatible files, an adaptable command is:

ffmpeg -re -stream_loop -1 -f concat -safe 0 -i playlist.txt 
  -c copy -f flv 'rtmps://<ingest-host>/<stream-key>'

Replace the destination with the URL and key supplied by YouTube Live Control Room, in the format required by that ingest. Do not paste a real key into a public example or share it. Confirm your FFmpeg build and the target ingest configuration support the chosen output before relying on the command.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • -re paces file input in real time for live output.
  • -stream_loop -1 is an input option that repeats the input indefinitely.
  • -f concat selects the concat demuxer for the manifest.
  • -safe 0 relaxes the demuxer’s path restrictions. Use it only when you control the manifest and every path it names.
  • -c copy passes encoded streams through without re-encoding; it does not repair incompatible files.
  • -f flv selects the output container commonly used for RTMP-family live ingest. Use the current YouTube-provided destination and settings.

Copyright, audience and ending the stream

Only include media you are authorized to broadcast. A playlist being local, or being available on YouTube, does not by itself give you permission to rebroadcast it. Choose the intended audience and visibility in YouTube’s live setup, and check that your stream’s privacy and audience settings match your intent.

Rank #3
msi Codex Z2 Gaming Desktop, AMD R7-8700F, RTX 5070, 32GB DDR5, 2TB SSD | NVIDIA GeForce RTX 5070, USB Type-C, VR-Ready, Windows 11 Home. Model A8NVP-436US
  • POWERHOUSE 8-CORE GAMING PERFORMANCE — Driven by the AMD Ryzen 7 8700F with 8 cores and 16 threads, boosting up to 5.0 GHz for smooth, responsive gameplay and the ability to handle AAA titles, streaming, and background tasks all at once
  • NEXT-GEN BLACKWELL ARCHITECTURE — The NVIDIA GeForce RTX 5070 is powered by NVIDIA's cutting-edge Blackwell GPU architecture, delivering a massive generational leap in rasterization and ray tracing performance so you can experience your games the way they were meant to be played.
  • Simplistic Design: Enjoy the latest generation of Windows 11 Home for your everyday needs. *MSI recommends Windows 11 Pro for business use.
  • Cool While Gaming: In conjunction with an ARGB fan Air Cooler, the Codex R2 features four system cooling fans; three in the front and one in the rear to pull in cool air and push heat out of the PC.
  • Turn on the Bright Lights: With the built-in RGB lighting, take your gaming experience to the next level by pressing the MSI LED button to cycle through lighting options. Customize lighting even further with MSI Center software.

When you are finished, stop the outgoing stream from FFmpeg and end the stream in Live Control Room as appropriate. YouTube says streams shorter than 12 hours are automatically archived after they end; do not assume that archive behavior applies to a stream that exceeds 12 hours.

Troubleshooting gaps, failures and unexpected output

  • The concat input fails to open: Check that playlist.txt is plain text, the ffconcat version 1.0 header is the first line, and each listed path is correct and readable. If using -safe 0, verify the manifest and paths are under your control.
  • FFmpeg reports stream or codec mismatches: The concat demuxer expects matching streams, codecs and time bases. Use compatible source files, or decode and normalize them with a re-encode workflow or concat filter.
  • There is a gap, glitch or timestamp artifact between files: Check stream compatibility and duration metadata, then test the affected transition. The demuxer calculates later timestamps from earlier file durations; inaccurate metadata can affect the result.
  • The stream does not appear in YouTube: Re-copy the current stream URL and key from the selected Live Control Room stream, verify they match, and review YouTube’s preview and stream-health status. Treat the key as a secret.
  • YouTube reports an encoding or connection issue: Compare the actual output codec, audio format, CBR setting, frame rate, keyframe interval and bitrate with YouTube’s current guidance for the chosen resolution and codec. Check that upload capacity is adequate and stable.
  • The loop boundary behaves differently from the middle of the playlist: Test the final-to-first transition explicitly. A playlist that plays file-to-file successfully can still reveal a compatibility or duration problem when it restarts.
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

With StreamNeo, upload a recording or build a playlist, add your YouTube stream key once, and go live. StreamNeo loops uploaded videos from the cloud, so your computer and home connection do not have to stay on. It supports any uploaded quality up to 4K 60fps at one flat price per slot, without re-encoding or quality tiers, and automatically recovers if YouTube drops the stream. The first day is free with no card required. Monthly access is $9.99 per month. Learn about StreamNeo or start your free first day.

Quick Recap

Bestseller No. 1
CyberPowerPC Gaming PC, AMD Ryzen 5 5500, Radeon RX 6500 XT 4GB
CyberPowerPC Gaming PC, AMD Ryzen 5 5500, Radeon RX 6500 XT 4GB
Graphics: AMD Radeon RX 6500 XT 4GB Graphics | 1x HDMI | 1x DisplayPort; Tempered Side Case Panel | Custom RGB Lighting | Keyboard and Mouse
$759.00
Rank #4
KOTIN Prebuilt Gaming PC RTX 5070 12GB, Ryzen 7 9700X, 32GB DDR5, 1TB SSD
  • POWERED BY RTX 5070 12GB + RYZEN 7 9700X - The GeForce RTX 5070 12GB GDDR7 graphics card pairs with an 8-core AMD Ryzen 7 9700X processor to drive smooth 1440p and 4K gameplay, giving this gaming PC the headroom for modern titles, streaming, and creative work.
  • 32GB DDR5 6000MHz MEMORY & 1TB NVMe SSD - 32GB of high-speed DDR5 memory and a 1TB PCIe 4.0 NVMe solid state drive deliver quick load times, smooth multitasking, and generous storage, keeping this prebuilt gaming desktop responsive under heavy workloads.
  • BUILT-IN 11.3-INCH Smart DISPLAY - An integrated smart screen shows real-time CPU and GPU temperatures, usage, and weather while you play, adding a distinctive and functional touch to your battlestation.
  • 850W 80+ GOLD POWER SUPPLY, 360MM LIQUID COOLING & WiFi 7 - An 850W 80 Plus Gold certified power supply provides stable, efficient power with headroom for future upgrades, while a 360mm AIO liquid cooler, WiFi 7, and an ARGB mid-tower case keep the Ryzen 7 CPU cool and connected in a clean build.
  • READY TO PLAY OUT OF THE BOX - Arrives fully assembled and tested with Windows 11 Home pre-installed, so your prebuilt gaming computer is ready to set up in minutes. Assembled in the USA, and backed by a one-year limited warranty and lifetime free technical support.

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.

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 Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver 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.