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 DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
DocumentaryTube
Admit one · Blog

How to Stream a Folder of MP4 Videos to YouTube with FFmpeg on Vultr

Build an ordered FFmpeg playlist on Vultr and stream it to YouTube Live using the event’s RTMPS URL and stream key. This guide covers output settings, monitoring, and troubleshooting.
Opened Runtime6 min Written byDocumentaryTube Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To stream multiple MP4 files from a Vultr Linux server to YouTube Live, put their paths in an FFmpeg concat-demuxer playlist, then send that input to the RTMPS ingest URL and stream key shown in YouTube Live Control Room. Use stream copy only when the files’ encoded streams are compatible with the output; otherwise, encode to settings that match YouTube’s current guidance. The commands below are starting points, not tested universal configurations.

What you need before starting

  • A Vultr Linux server with FFmpeg installed, enough CPU for any transcoding you plan to do, and outbound network access to YouTube’s ingest endpoint.
  • The MP4 files stored on the server and readable by the account that will run FFmpeg.
  • A YouTube live event and its ingest URL and stream key from Live Control Room.
  • A playlist file that specifies the videos in the order you want them to play.

Vultr’s published FFmpeg installation guide uses Ubuntu 20.04 as its example and also lists Debian 10, CentOS 8, and Fedora 32. Those are dated examples, not current installation instructions for every server image. Follow the package guidance for your chosen distribution. Vultr’s FFmpeg installation guide

Current Vultr instance sizing, egress pricing, and bandwidth allowances are not established here. Check the plan details and estimate transfer for your stream’s bitrate and duration before choosing a server.

Prepare an ordered playlist of files

Create a plain-text playlist, for example at /srv/videos/playlist.txt. Use absolute paths and list files in playback order:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
file '/srv/videos/01-intro.mp4'
file '/srv/videos/02-main.mp4'
file '/srv/videos/03-outro.mp4'

FFmpeg’s concat demuxer treats the list as a concatenated input. Make sure each path exists and is readable, and keep filenames simple where possible to avoid quoting or escaping errors. The files’ stream properties matter: a playlist does not guarantee seamless transitions or that one set of output options will suit every file. FFmpeg concat demuxer documentation

Choose stream copy or transcoding

Approach When it fits Trade-off
-c copy (stream copy) The source streams are compatible with the required output and you do not need to resize, filter, or otherwise change them. FFmpeg passes the compressed streams through without decoding and encoding, reducing processing. It cannot make incompatible streams compatible, and unsuitable stream information can make the output fail.
Transcoding, such as -c:v libx264 and -c:a aac You need to change codecs, resolution, pixel format, or other output characteristics, or stream copy does not work with the files. It uses server CPU and re-encodes the media, which can affect quality. The server must sustain the chosen encoding settings in real time.

FFmpeg documents stream copy as a path that omits decoding and encoding; it is not a promise that arbitrary MP4 files can be joined and sent unchanged. Inspect the actual files and test the playlist. FFmpeg stream-copy documentation

Rank #2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Set resolution, frame rate, bitrate, and keyframes

YouTube’s current encoder guidance recommends constant bitrate (CBR), supports up to 60 fps, and recommends a 2-second keyframe interval, not exceeding 4 seconds. For H.264, YouTube lists 10 Mbps for 1080p at 30 fps and 12 Mbps for 1080p at 60 fps. These are YouTube recommendations, not guarantees that a particular Vultr server or network connection can sustain a stream. YouTube also advises testing with audio and motion similar to the intended broadcast and checking the connection’s available upload speed. YouTube encoder settings, bitrates, and resolutions

Pick output settings to match the source and the event’s needs. The sample command below uses a 60 fps keyframe interval of 60 frames, which is 2 seconds at 30 fps—not at every frame rate. If you change the frame rate, set the GOP length so keyframes are about 2 seconds apart and no more than 4 seconds apart. Use bitrate recommendations for your actual output resolution, frame rate, and codec rather than treating the 1080p examples as universal values.

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.
Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Send the playlist to YouTube Live with FFmpeg

  1. Create or schedule the live event. In YouTube Studio, open Live Control Room and set up the event. Copy the exact ingest URL and stream key shown in its encoder settings.
  2. Select RTMPS. YouTube recommends RTMPS, an encrypted extension of RTMP. Select RTMPS in Live Control Room and use the URL it displays; RTMP may be shown by default. YouTube encoder settings
  3. Run FFmpeg with the playlist. For a transcoding starting point, replace the placeholder destination with the exact RTMPS URL and key arrangement provided for your event:
ffmpeg -re -f concat -safe 0 -i /srv/videos/playlist.txt 
  -c:v libx264 -preset veryfast -b:v 4500k -maxrate 4500k -bufsize 9000k 
  -pix_fmt yuv420p -g 60 -c:a aac -b:a 128k -ar 44100 
  -f flv 'rtmps://INGEST_URL/STREAM_KEY'

This is an illustrative command, not a tested configuration or a universal YouTube preset. Its bitrate, frame rate, keyframe interval, codecs, audio settings, URL syntax, and key arrangement must be adjusted for the event, the source files, and YouTube’s current guidance. In particular, -g 60 represents a 2-second interval only when the output is 30 fps. If compatible source streams need no changes, try stream copy instead by replacing the encoding options with -c copy; test it with the actual playlist before relying on it. FFmpeg command-line documentation

Keep the key secret. YouTube treats a stream key like a password. Do not publish it in a command, script, screenshot, shell history, or log. If it is exposed, reset it in Live Control Room and update the encoder. YouTube stream settings

Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Monitor the preview and end the stream

Start FFmpeg and watch the preview and stream-health indicators in Live Control Room before making the broadcast public. For a scheduled stream, YouTube’s workflow is to begin the encoder feed, wait for the preview, then select “Go live.” If the preview does not appear or health warnings show, diagnose the input, encoder output, and connection before depending on the stream unattended. YouTube live streaming help

YouTube automatically archives streams that are under 12 hours. For a scheduled event, end it through Live Control Room and stop the encoder feed as directed there. A playlist that reaches its final file is not by itself a repeat instruction: if you want the folder to play again, configure and test repeat behavior deliberately rather than assuming the concat list loops. YouTube live streaming help

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
UnionSine 500GB Ultra Slim Portable External Hard Drive HDD-USB 3.0
  • [Upgraded Version] - This external hard drive features a mirrored logo stripe combined with a striped anti-slip design, and the rounded corners of the casing make it easier to grip. The stripes also have a heat dissipation function, ensuring stable and fast data transfer.
  • 【Ultra-thin and quiet】 - The motherboard adopts JMicron 578 noise-free solution, giving you a quiet working environment. Lightweight and portable size designed to fit in your pocket for easy portability.
  • 【Ultra-Fast Data Transfers】 - Pairing this external hard drive with JMicron 578 solution USB 3.0 and USB 2.0 interfaces enables blazing-fast data transfer. It boasts theoretical read speeds of up to 125MB/s and write speeds of up to 103MB/s.
  • 【Plug and Play】 - With no software to install, just plug it in and the drive is ready to use.The hard disk chip is wrapped with an aluminum anti-interference layer to increase heat dissipation and protect data.
  • 【What You Get】 - 1 x Portable Hard Drive, 1 x USB 3.0 Cable, 1 x User Manual, Gift-type shell packaging ,Three-year manufacturer's warranty and free technical support services.

Troubleshooting common failures

Symptom Likely cause What to check
FFmpeg cannot open a playlist entry A path is incorrect, a file is missing, or the running account lacks read permission. Verify every absolute path and test file readability as the account running FFmpeg.
The stream fails when it reaches another file Files may have different codecs, stream layouts, or parameters that the chosen output path cannot handle. Test the complete playlist. If stream copy is unsuitable, transcode to consistent output settings.
YouTube does not show a preview The ingest URL or key may be wrong, the selected protocol may not match the URL, or FFmpeg may not be sending a valid feed. Copy the current RTMPS URL and key from Live Control Room, confirm the feed is running, and review FFmpeg’s output.
Live Control Room reports poor stream health The encoder settings or available server/network capacity may not sustain the feed. Check the bitrate and frame rate against YouTube’s guidance, verify the server can encode in real time, and test the connection with representative video and audio.
The stream ends after the last video The playlist was consumed once rather than repeated. Set up and test the intended repeat behavior explicitly; do not assume a concat list loops.

Or let it run in the cloud

If your goal is a continuing YouTube channel rather than specifically running FFmpeg on Vultr, StreamNeo is a cloud service for looping uploaded videos or playlists to YouTube Live. Upload the recording or build a playlist, add the YouTube stream key, and go live. Your computer and home connection do not have to stay on, and StreamNeo can automatically recover if YouTube drops the stream. Each slot streams the uploaded quality up to 4K 60fps at one flat price per slot, with no re-encoding or quality tiers. The first day is free with no card. The monthly plan is $9.99 per month.

Quick Recap

SaleBestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.99
Bestseller No. 2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$229.99
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
Bestseller No. 4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$151.99

Start your free StreamNeo day

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 *

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.

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
PC Slower Than It Used to Be?Free scan - under a minute
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.