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 DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
DocumentaryTube
24/7 streaming

How to Stream a 24/7 YouTube Playlist with Separate Video and Audio Files from a VPS

Use FFmpeg on a VPS to loop separate video and audio playlists, map them into one output, and send the stream to YouTube over RTMPS—with practical testing and recovery guidance.

By DocumentaryTube Team 8 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Run FFmpeg on your VPS with one input for the video playlist and another for the audio playlist, map their video and audio streams into a single output, then send that output to YouTube over RTMPS. Before leaving it unattended, check that your files work together, decide how their different playlist lengths should repeat, and test transitions and recovery.

How the setup works

The video and audio remain separate FFmpeg inputs, but YouTube receives one outgoing stream containing both. For compatible media, FFmpeg’s concat demuxer can assemble each playlist without re-encoding. If the files need conversion or their formats differ, normalize them or use a filter-based workflow instead.

The example below loops the video playlist and audio playlist independently. That means each repeats when it reaches the end of its own total duration; it does not keep individual video and audio items paired. If particular songs must accompany particular scenes, prepare a paired schedule instead of relying on independent loops.

Prepare and inspect your files

Inventory the media

On the VPS, organize the files and record their order. Check each file’s video and audio codecs, dimensions, frame rate, sample rate, and duration. FFmpeg can inspect a file with ffprobe, for example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
ffprobe -v error -show_streams -show_format "video-01.mp4"

Repeat the inspection for the audio files. Do not assume files are compatible just because they have familiar extensions: the appropriate no-transcode workflow depends on the actual streams and whether FFmpeg can concatenate them cleanly.

Create concat-demuxer manifests

Make one text manifest for the video sequence and another for the audio sequence. Each entry is a path to a file, in playback order. For example, video-list.txt could contain:

file 'video-01.mp4'
file 'video-02.mp4'
file 'video-03.mp4'

And audio-list.txt could contain:

file 'track-01.m4a'
file 'track-02.m4a'
file 'track-03.m4a'

Use paths that the FFmpeg process can read. If filenames contain quotes or other characters that complicate the manifest syntax, rename the files or carefully escape the paths according to FFmpeg’s concat-demuxer rules.

Choose a playback schedule deliberately

Independent looping is suitable when the two sequences can repeat on their own timelines. If the video playlist totals 80 minutes and the audio playlist totals 65 minutes, their cycle boundaries will not coincide; after each loop, their relative pairing changes. For a synchronized program, design both playlists to the intended schedule, or create paired segments and a workflow that preserves those pairings.

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

Send both inputs to YouTube over RTMPS

Get the current ingest details

In YouTube Live Control Room, create or open the intended live stream and retrieve its current ingestion URL and stream key. YouTube also exposes RTMPS ingestion-address fields through its LiveStreams API. Use the account’s active details rather than copying a static endpoint from an example. RTMPS carries RTMP over TLS/SSL, and YouTube documents its RTMPS connection on port 443.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Treat the stream key like a password. Do not put it in a public script repository, screenshot, shared command history, or exposed log. Limit access to the VPS account and any file or service configuration that holds it; regenerate the key in YouTube if it is disclosed.

Start with a copy-based command

If the chosen streams are compatible with the output container and with YouTube’s ingest requirements, this schematic command loops each concat input, maps video from the first input and audio from the second, and sends the combined output using FFmpeg’s FLV muxer:

ffmpeg -re -stream_loop -1 -f concat -safe 0 -i video-list.txt 
       -re -stream_loop -1 -f concat -safe 0 -i audio-list.txt 
       -map 0:v:0 -map 1:a:0 
       -c:v copy -c:a copy 
       -f flv "rtmps://YOUR_INGEST_HOST/YOUR_APPLICATION/YOUR_STREAM_KEY"

Replace the URL with the RTMPS ingestion address supplied for your stream, including the required application path and key in the format YouTube gives you. Keep the key out of any version-controlled file. This command is a starting pattern, not a promise that every media combination or FFmpeg build will accept it unchanged. Confirm the installed build’s RTMPS support and test with the real files.

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

The two -stream_loop -1 options make the inputs repeat independently. The -map options explicitly select the first video stream from the video input and the first audio stream from the audio input. The copy settings avoid re-encoding; if the sources cannot be copied into a valid, stable output, remove that assumption and use an encoding/filter workflow appropriate to the media.

Normalize when copying is unsuitable

When source files differ in ways that prevent a clean concat or output, convert them to a consistent format before relying on unattended playback, or use FFmpeg’s concat filter and encode the result. The right video and audio settings depend on the source files, desired output, FFmpeg build, and YouTube’s current requirements. Inspect the files first; do not choose a VPS size or encoding workload without accounting for whether the process is copying or transcoding.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

For YouTube stream settings such as resolution, frame rate, bitrate, and keyframes, check the current recommendations in Live Control Room or YouTube’s current streaming guidance for the output you intend to send. The correct values depend on that output; a single bitrate or keyframe setting cannot be inferred from these playlist inputs alone.

Test before leaving it unattended

  1. Run a short test. Start the process while you can observe it, and check FFmpeg’s output for input errors, mapping problems, or connection failures.
  2. Check YouTube’s stream preview. Confirm that both picture and sound arrive, and verify that the selected video and audio are the ones you intended.
  3. Watch playlist boundaries. Let the test cross at least one transition in each playlist. Check for unexpected gaps, abrupt changes, playback termination, or audio/video pairing that does not match your plan.
  4. Test the planned restart path. Verify that the process can be restarted with access to the manifests, media, and current stream credentials, and that it resumes the intended schedule.
  5. Check account and content readiness. Confirm the stream is available to go live in the account’s current Live Control Room and that you have the rights needed for every video and audio item.

There is no universal VPS size established for this workflow. Resource needs depend on the media, output resolution and bitrate, whether FFmpeg transcodes, storage and network demands, and the VPS provider’s limits.

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

Keep the process recoverable

A 24/7 stream needs more than a command that works once: plan for process exits, temporary network failures, VPS restarts, and YouTube-side interruptions. Use a process supervisor and monitoring suitable for your VPS so you can detect a stopped process and decide how it should restart. Make sure the restart path can access the media and credentials without exposing the stream key.

FFmpeg documents an RTMP FIFO muxer configuration that attempts recovery after temporary failures. It is an option to evaluate for the deployment, not a guarantee of uninterrupted delivery or YouTube availability. Test how the chosen arrangement behaves when the connection drops and when FFmpeg restarts; decide how to avoid an unintended schedule reset.

RTMPS or HLS?

Ingest path What to know When it fits
RTMPS RTMP carried over TLS/SSL; YouTube documents port 443 and provides RTMPS ingestion addresses. The straightforward choice for this basic FFmpeg-to-YouTube continuous-stream workflow.
HLS YouTube’s HLS workflow uses segments and requires muxed audio and video; it generally has higher latency than RTMP-based ingestion. Consider it when the use case or required codec/HDR characteristics call for HLS. It is not simply an interchangeable flag for the RTMPS command above.

Copyright and channel considerations

Only include material you have the right to stream, including music and any embedded audio. A playlist that runs technically does not establish that its contents are cleared for a live broadcast. Check YouTube’s current policies and the status of the channel and stream in Live Control Room before scheduling a long-running broadcast.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2Ă— USB C male to USB A female adapters and 2Ă— USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Separately, technical uptime does not determine whether a channel’s programming meets YouTube’s monetization rules. Repeated or reused material can raise issues distinct from copyright permission, so review the current YouTube Partner Program and reused-content guidance if monetization is part of the plan.

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

Troubleshooting common problems

FFmpeg cannot open a manifest or media file

Check the working directory and file permissions, then confirm every manifest path resolves from the FFmpeg process’s environment. A process launched by a supervisor may start in a different directory than an interactive shell.

The output has video but no sound, or sound but no video

Check that the correct files are in each manifest and that each input contains the stream you expect. Confirm the mapping is -map 0:v:0 for video and -map 1:a:0 for audio, and inspect the actual streams with ffprobe.

FFmpeg rejects the output or reports incompatible streams

The source streams may not be suitable for copy-based output or may not concatenate cleanly. Inspect codecs and stream properties, test the files individually, then normalize them or use a filter-and-encode workflow rather than assuming -c copy will work.

The picture and sound drift or change pairing after a loop

Independent playlists repeat on their own total durations. If the sequences have different lengths, their relative alignment changes at cycle boundaries. Build a paired schedule or make the sequences fit the intended cycle instead of expecting independent loops to stay synchronized.

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.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 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.

YouTube does not receive the stream

Verify that the RTMPS URL and stream key are current and copied in the format YouTube supplied. Check that the installed FFmpeg build supports RTMPS, that the VPS can connect to the endpoint on the documented port, and that the stream is configured and available in Live Control Room.

The stream stops after a temporary failure

Inspect FFmpeg and supervisor logs to identify whether the process exited or the connection failed. Test the restart and recovery configuration, including whether it reconnects with valid credentials and returns to the intended playlist position. A recovery attempt is not a guarantee against every outage.

Or let it run in the cloud

If your goal is a YouTube channel that keeps a pre-recorded playlist live, StreamNeo is the cloud alternative: upload a 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. Each slot streams what you upload, up to 4K 60fps, at one flat price per slot; it also includes 10 GB of storage per slot pooled across active slots, looping and playlists, and automatic recovery if YouTube drops the stream. The first day is free with no card.

Plans are available for a day, a week, a month, six months, or a year; the same product is included on every plan. Monthly pricing is $9.99 per month. UPI and cards are accepted in India, with card checkout worldwide. StreamNeo is for uploaded videos streamed to YouTube, not a live camera feed. See StreamNeo or its plans, then start the free first day.

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.

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

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.