October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober 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 Run a 24/7 YouTube Story Stream with FFmpeg Concat Files

Use FFmpeg’s concat demuxer and an infinite input loop to send a prerecorded story playlist to YouTube Live. Learn the compatibility checks, settings, launch steps, and failure points.
Opened Runtime8 min Written byDocumentaryTube Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To run a prerecorded story playlist continuously on YouTube Live with FFmpeg, put compatible clips in a concat-demuxer playlist, loop that playlist with -stream_loop -1, pace file reading with -re, and send the output to the YouTube ingest URL and stream key from Live Control Room. The loop only repeats the input: your computer or server, network, FFmpeg process, and YouTube ingest still need monitoring and recovery planning.

What you need before building the stream

  • An activated YouTube channel with live streaming enabled. First-time live activation may take up to 24 hours; after that, a configured stream can go live promptly. YouTube’s live-stream setup guidance describes setup and activation.
  • FFmpeg installed with the required input, encoder, and RTMPS protocol support. Check your build if an encoder or protocol is unavailable.
  • A set of prerecorded story videos you have the rights to use, stored where the machine running FFmpeg can read them.
  • A stable, always-on host and internet connection with enough upload capacity for the selected video and audio bitrate.
  • The server URL and stream key for the YouTube event. Keep the key private; anyone who obtains it may be able to send video to your stream.

This method is for prerecorded video, not a live camera feed. FFmpeg’s concat demuxer joins compatible media packets in sequence; it does not make incompatible clips identical automatically.

Prepare a compatible story playlist

Create the concat file

Save a plain-text file such as stories.ffconcat. If you use the optional signature, it must be the exact first line, with no byte-order mark:

ffconcat version 1.0
file 'story-01.mp4'
file 'story-02.mp4'
file 'story-03.mp4'

Each file directive names the next clip. Relative paths are more portable and work with the demuxer’s default safe-path setting when they use accepted path forms. Paths containing spaces or special characters must be quoted or escaped correctly. Absolute paths and other unsafe forms may be rejected by default.

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 every clip before using stream copy

The concat demuxer expects the files to have the same streams, codecs, and time bases. In practice, compare their video and audio stream layouts, codecs, dimensions, frame rates, and audio properties before attempting a no-reencode pipeline. The demuxer concatenates packets and adjusts timestamps; it does not re-encode clips to reconcile differences.

Different stream properties can make stream copy fail or produce playback problems. Unequal stream durations can also create gaps because timestamp adjustment is global. Incorrect or estimated durations may cause artifacts. If a duration is known accurately and needs correction, FFmpeg’s concat format supports a duration directive for a file.

If the clips are not compatible, pre-transcode them to a common format or use a filter-based concat-and-encode workflow. FFmpeg distinguishes the concat demuxer, useful where packet streams can be joined without re-encoding, from the concat filter, generally appropriate when the inputs need filtering or re-encoding. See the FFmpeg concat FAQ and concat demuxer documentation.

Configure YouTube Live and protect the stream key

  1. In YouTube Studio, create or schedule the live stream and open its Live Control Room settings.
  2. Copy the server URL and stream key shown for that stream. If using encrypted ingest, expose and copy the RTMPS URL in Stream settings.
  3. Use the URL and key for the specific event in FFmpeg’s output destination. Do not publish a real key in a command shared publicly, a screenshot, or a code repository.
  4. Start the encoder after configuring the event, then wait for YouTube’s preview and check Live Control Room’s stream-health messages before relying on the feed.

RTMPS is RTMP over TLS/SSL. YouTube’s documentation describes RTMPS ingest, while its Live API documents a primary RTMPS ingest address and stream name; some encoders expect those combined as STREAM_URL/STREAM_NAME. Use the exact endpoint and key format supplied for your stream. See YouTube’s encoder setup help and the YouTube Live API getting-started documentation.

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.

Run the playlist in a loop with FFmpeg

Re-encode for predictable output

For clips that need a consistent YouTube-ready output, use an encoding template like this. Replace every placeholder with a suitable value and the ingest URL/key from Live Control Room:

ffmpeg -re -stream_loop -1 -f concat -safe 0 -i stories.ffconcat 
  -c:v libx264 -preset veryfast -pix_fmt yuv420p 
  -b:v VIDEO_BITRATE -maxrate VIDEO_BITRATE -bufsize VIDEO_BUFFER 
  -g KEYFRAME_INTERVAL_FRAMES -keyint_min KEYFRAME_INTERVAL_FRAMES 
  -sc_threshold 0 -c:a aac -b:a 128k -ar 44100 
  -f flv 'rtmps://YOUTUBE_INGEST_URL/YOUR_STREAM_KEY'
  • -re reads file input at its native rate instead of sending it as fast as the machine can process it.
  • -stream_loop -1 loops the input indefinitely. It is an input option and must appear before the relevant -i.
  • -f concat selects the concat demuxer. -safe 0 permits paths the default safe-path check may reject, such as absolute paths. Use it only for a playlist you trust; relative paths are preferable where possible.
  • -c:v libx264 and -c:a aac encode video and audio. The bitrate, buffer, and GOP placeholders must be set for the chosen resolution, frame rate, and connection; do not paste the placeholders literally.
  • The destination shown is illustrative. Substitute the actual RTMPS URL and key, and confirm your FFmpeg build supports the requested encoder and protocol.

This is a command template, not a reported test. FFmpeg options and output behavior can depend on your build and media. Consult the FFmpeg command-line documentation when adapting it.

Use stream copy only when the inputs and output are compatible

If all playlist files already have compatible packet streams, timestamps, and output-container characteristics, stream copy can avoid the CPU cost of re-encoding:

ffmpeg -re -stream_loop -1 -f concat -safe 0 -i stories.ffconcat 
  -c copy -f flv 'rtmps://YOUTUBE_INGEST_URL/YOUR_STREAM_KEY'

Do not assume that arbitrary MP4 files can be concatenated and copied cleanly. If FFmpeg errors, or YouTube’s preview reports codec, timestamp, resolution, or audio problems, normalize the files or re-encode instead.

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.

Choose bitrate and keyframe settings

YouTube’s current encoder-help recommendations call for CBR, a two-second keyframe interval (no more than four seconds), and a bitrate appropriate to codec, resolution, frame rate, and available upload capacity. For H.264, the published figures include:

Output Minimum bitrate Recommended bitrate
720p30 3 Mbps 8 Mbps
720p60 3 Mbps 8 Mbps
1080p30 5 Mbps 14 Mbps
1080p60 6 Mbps 17 Mbps

These are YouTube Help’s published recommendations, not independent measurements, and the page does not give them a publication year. Its current encoder guidance lists RTMP/RTMPS; H.264, H.265 (HEVC), or AV1 video; up to 60 fps; and AAC or MP3 audio. The command above uses H.264/AAC, so select its bitrate for the actual output you configure. YouTube recommends testing upload speed and leaving sufficient capacity rather than setting the encoder at the connection’s unstable maximum.

For stereo, YouTube recommends AAC or MP3 audio at 44.1 kHz and 128 kbps. For 5.1 AAC, it recommends 48 kHz and 384 kbps. It lists Rec. 709 for SDR. These recommendations and the bitrate table are on YouTube’s encoder settings page.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Start, monitor, and keep the feed available

  1. Run a representative test with both audio and moving video before scheduling a continuous broadcast.
  2. Start FFmpeg and confirm that YouTube receives the feed and presents a preview. Check Live Control Room’s health indicators and messages rather than assuming a running FFmpeg process means a healthy stream.
  3. Keep the host, media storage, and network available. Use operating-system-appropriate process supervision, logging, disk-space checks, and alerting. Set restart behavior deliberately and test recovery after failures.
  4. Track the machine’s CPU and upload connection if you are encoding locally. Re-encoding consumes more CPU than stream copy; stream copy reduces that load but is only appropriate for compatible inputs.
  5. Plan for failures of the host, network, encoder, or YouTube ingest. An infinite input loop handles none of those failures by itself, and the official documentation does not guarantee uninterrupted operation.

These operational safeguards are practical recommendations, not a universal supervisor configuration prescribed by FFmpeg or YouTube. Choose and validate them for the operating system and host you actually use.

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.

Plan separately for recordings and copyright

A 24-hour live stream is not necessarily a 24-hour archive

YouTube’s setup guidance says streams under 12 hours are automatically archived. A continuous 24/7 broadcast exceeds that documented window, so do not count on one complete 24-hour or longer VOD being automatically available. Keep separate copies of the source stories and verify YouTube’s current handling if you need a platform archive. The cited guidance establishes the under-12-hour rule, not a guarantee for longer streams. See YouTube’s live-stream archiving guidance.

Confirm rights and channel-policy fit

Use stories, footage, music, narration, and images that you own or are authorized to stream. A live stream is still subject to copyright and YouTube’s channel policies. Permission to use a clip does not automatically establish that a channel’s overall content meets every monetization or reused-content requirement; review the policies that apply to your channel and format before building a continuous feed.

Troubleshoot common failures

Symptom Likely cause What to check or change
FFmpeg rejects a playlist path Absolute or otherwise unsafe path with the default safe-path setting, or malformed quoting. Use relative paths where practical; check quoting and the playlist text. Only use -safe 0 with a trusted file list.
Concat fails or the join has glitches Clips have different streams, codecs, time bases, or incompatible packet properties; durations may be unequal or inaccurate. Inspect the files, normalize them to a common format, or use a filter-and-encode approach. Correct a duration only when its value is known accurately.
FFmpeg exits after a short run Invalid input, unsupported build feature, unreadable file, or output/connection error. The loop option cannot fix those failures. Read FFmpeg’s error output, verify every playlist path and installed encoder/protocol support, and check the RTMPS endpoint and key.
YouTube does not show a preview or reports stream health problems Wrong ingest URL/key, unsupported or unsuitable output settings, timestamp/codec issue, or insufficient upload stability. Re-copy the event’s URL and key, check the selected codec and bitrate, and test with representative audio and motion while monitoring Live Control Room.
Video stalls or disconnects during a long run Host, network, storage, FFmpeg process, or ingest interruption. Check logs, resource and disk availability, network stability, and alerting. Configure and test host-level restart/recovery rather than relying on -stream_loop alone.
The full broadcast is not available as one replay The stream exceeded the documented automatic-archive duration. Retain the source media separately and do not assume a continuous stream longer than 12 hours will be archived as a single VOD.

Cost and deployment trade-offs

FFmpeg itself does not require a paid hosting service. A local always-on computer avoids a separate host bill but depends on home power, equipment, and internet staying available. A cloud VPS or dedicated host can keep the process away from your home computer, but adds hosting cost and still requires you to configure FFmpeg, storage, network capacity, monitoring, and recovery. Re-encoding also uses host CPU; stream copy can reduce that load only when the files are compatible.

Or let it run in the cloud

StreamNeo is a cloud service for keeping a YouTube channel live from uploaded videos. Upload a recording or playlist, add your YouTube stream key, and go live; the cloud loops the video, so your computer and home connection do not need to stay on. It supports uploaded video up to 4K 60fps as uploaded, at one flat price per slot, and automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month. Learn more at StreamNeo, then start your free 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.

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 Send a YouTube Live Stream to a Premiere—and What “Premiere Playlist” Can’t DoAdmit one · BlogHow to Send a YouTube Live Stream to a Premiere-and What “Premiere Playlist” Can't DoOpened04 OCT 2026Runtime6 min
  2. How to Run a YouTube Live Playlist from a Raspberry PiAdmit one · BlogHow to Run a YouTube Live Playlist from a Raspberry PiOpened04 OCT 2026Runtime4 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.