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

To stream a local playlist continuously, put compatible video files in an FFmpeg concat manifest, then use the concat demuxer with -stream_loop -1 and send the output to the stream URL and key from YouTube Live Control Room. The method works best when the files have matching streams, codecs, and time bases; test the transitions and loop boundary before making the stream public.

What you need before you start

  • FFmpeg installed on a computer that can stay on and connected to the internet for the stream’s duration.
  • Local video files you have the right to broadcast. This workflow is for your own local media; it does not cover downloading or rebroadcasting videos from YouTube.
  • A YouTube channel set up for live streaming, plus the current stream URL and stream key from YouTube Studio’s Live Control Room. YouTube says to enter these into the encoder to start streaming (YouTube’s encoder setup guide). Treat the key like a password: do not share it or expose it in a public script or screenshot.

Choose the stream’s visibility and audience settings in YouTube Studio before going live. YouTube’s live guidance describes selecting visibility and configuring the encoder destination (YouTube Help).

Prepare the playlist manifest

Create a plain-text file named playlist.txt and list the media files in playback order. For example:

ffconcat version 1.0
file '/media/show/part-01.mp4'
file '/media/show/part-02.mp4'
file '/media/show/part-03.mp4'

Use the actual paths on your computer. The ffconcat version 1.0 line must be the first line, exactly as shown, for FFmpeg to recognize this manifest format automatically. The concat demuxer reads the files in order and computes later timestamps from each file’s duration; incorrect duration metadata can cause gaps or artifacts (FFmpeg concat demuxer documentation).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
ASUS ROG G700 (2025) Gaming Desktop PC, Intel® Core™ Ultra 7 265F Processor, NVIDIA® GeForce RTX™ 5070, 1TB M.2 NVMe™ PCIe® 4 SSD, 16GB DDR5 RAM, Windows 11 Home, G700TF-DS774
  • Fearless ROG Design – The G700’s dual-glass chassis showcases iconic ROG design with the ROG Slash and Aura Sync RGB lighting. Its 58L capacity supports triple-slot GPUs.
  • Unstoppable Power – Equipped with the Intel Core Ultra 7 265F processor, NVIDIA GeForce RTX 5070 GPU, 16GB DDR5 RAM, and 1TB SSD PCIe 4.0 storage for seamless gaming and multitasking.
  • Optimized Thermals – Stay cool with a quad-fan system, while dust filters and efficient airflow ensure long-term reliability.
  • Advanced Connectivity – Game without lag with 2.5Gbps Ethernet, Wi-Fi 6, and versatile ports. Dolby Atmos audio and AI noise cancellation enhance sound and communication.
  • Ready for Upgrades – Designed with tool-less access, easily swap out components, ensuring future-proof performance for years to come.

Check whether stream copy is suitable

The concat demuxer expects the files to have the same streams, codecs, and time bases. If those properties match, stream copy with -c copy can avoid re-encoding. It is not a guarantee of seamless transitions for arbitrary files: duration accuracy and actual playback still matter.

If your files have different stream layouts or codec parameters, normalize and re-encode them, or use FFmpeg’s concat filter. The filter is the appropriate route when re-encoding is required; it gives you a way to bring inputs into a consistent output format at the cost of additional CPU and an encode step (FFmpeg FAQ).

Rank #2
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

Start the continuous stream

For compatible files, this schematic command loops the concat input indefinitely, reads it at real-time speed, and sends it to YouTube:

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 current stream URL and key supplied in YouTube Live Control Room. Do not publish a command containing your real key. YouTube describes the URL and key as the encoder destination and credential (YouTube encoder setup; YouTube stream settings).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
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.
  • -re paces file input in real time for live output.
  • -stream_loop -1 repeats the input indefinitely; FFmpeg documents -1 as infinite looping (FFmpeg command-line documentation).
  • -f concat selects the concat demuxer.
  • -safe 0 relaxes the demuxer’s path restrictions. Use it only when the manifest and every referenced path are under your control.
  • -c copy copies compatible streams rather than encoding them again.
  • -f flv sets the outgoing container used by this example. Confirm the target ingest configuration and your FFmpeg build before relying on the command.

This is an adaptable example, not a tested universal command. The concat demuxer’s compatibility requirements and timestamp behavior mean that a successful start does not prove every transition will be clean.

Set YouTube-compatible encoder settings

Match the output to YouTube’s current encoder recommendations and to the media you are sending. YouTube’s guidance lists RTMP/RTMPS protocols; H.264, H.265/HEVC, and AV1 video; AAC or MP3 audio; constant bitrate (CBR); frame rates up to 60 fps; and a recommended two-second keyframe interval that should not exceed four seconds (YouTube encoder settings, bitrates, and resolutions).

Rank #4
msi Codex Z2 Gaming Desktop, AMD R7-8700F, RTX 5070, 32GB DDR5, 2TB SSD
  • 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.

For broad compatibility, H.264 video with AAC audio over RTMPS is a sensible starting point, but it is not a substitute for checking the current Live Control Room guidance. Select a bitrate from YouTube’s resolution- and frame-rate-specific recommendations, and make sure your available upload bandwidth can sustain it. There is no single bitrate that is correct for every resolution, frame rate, and codec.

Test the playlist and monitor the stream

  1. Start with an unlisted or otherwise appropriate test stream in YouTube Live Control Room.
  2. Check the preview and stream-health indicators while the encoder is running.
  3. Watch transitions between files and the final-to-first transition at the loop boundary. This can reveal mismatched streams, timestamp gaps, or inaccurate duration metadata.
  4. If the preview or health indicators show problems, stop the test and resolve the media or output settings before switching to the intended visibility.

YouTube recommends testing before going live and monitoring stream health (YouTube encoder settings). When finished, stop the outgoing stream from the encoder and end the stream in Live Control Room as appropriate. YouTube’s encoder guide says streams shorter than 12 hours are automatically archived after they end; do not assume the same archival behavior for streams that exceed 12 hours (YouTube encoder setup).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common problems and fixes

FFmpeg rejects the manifest or cannot open a file

  • Confirm ffconcat version 1.0 is the first line and that every file path is valid on the machine running FFmpeg.
  • Use quoted paths as in the example, and check that the process has permission to read each file.
  • If you used -safe 0, make sure the manifest and paths are trusted and controlled by you.

The stream starts, but transitions have gaps or artifacts

Check whether every file has matching streams, codecs, and time bases. Review duration metadata because the concat demuxer uses file durations to calculate subsequent timestamps. Test individual transitions and the loop boundary. If the sources are incompatible, normalize and re-encode them or use the concat filter rather than relying on packet-copy concatenation (FFmpeg concat documentation; FFmpeg FAQ).

YouTube does not receive the stream

  • Verify that the URL and key are the current values shown in Live Control Room and that the key has not been mistyped. Keep it private.
  • Check that the outgoing protocol, codecs, bitrate, frame rate, and keyframe interval align with YouTube’s current recommendations for the selected output (YouTube encoder settings).
  • Confirm that the computer’s upload connection can sustain the selected bitrate, then review YouTube’s stream-health feedback.

The stream stops when the computer or connection stops

This FFmpeg setup runs from your computer, so the process, machine, and network connection must remain available. If you need the playlist to continue without a home computer running, use a cloud-hosted approach instead.

Or let it run in the cloud

StreamNeo is an alternative if your goal is continuous playback of uploaded videos on YouTube without keeping a computer on at home. Upload your recording or build a playlist, add your YouTube stream key, and go live. StreamNeo loops the uploaded videos from the cloud; it does not stream from a camera.

  • Nothing has to stay on at home for the stream to keep running.
  • Each slot streams your upload as made, up to 4K 60fps, at one flat price per slot, without re-encoding or quality tiers.
  • It automatically recovers if YouTube drops the stream.
  • The first day is free with no card, once per account.

The monthly option is $9.99 per month. See StreamNeo for details, or start the free first day.

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

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.