Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › FFmpeg

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

By Freedom251 Team · · 6 min read

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.

To stream a folder of MP4 videos to YouTube Live from a Vultr server, install FFmpeg, put the files in playback order in a concat-demuxer list, then send the playlist to the RTMPS ingest URL and stream key shown in YouTube Live Control Room. Use stream copy only when the files’ codecs and parameters are compatible with the output; otherwise transcode them to settings suited to YouTube. Test the actual playlist and confirm the preview and stream health before relying on it unattended.

Before you start

  • A Linux Vultr server with FFmpeg installed and enough CPU capacity if you plan to transcode.
  • The MP4 files uploaded to the server, readable by the account that will run FFmpeg.
  • Outbound network access from the server to the YouTube ingest endpoint.
  • A YouTube Live event and its ingest URL and stream key from Live Control Room.

Vultr has an FFmpeg installation guide that uses Ubuntu 20.04 as an example and also lists older distribution examples such as Debian 10, CentOS 8, and Fedora 32. Treat those versions as dated examples, not current installation instructions; use the package guidance for the Linux distribution and release actually installed on your server. See Vultr’s FFmpeg guide.

As an Amazon Associate I earn from qualifying purchases.

The sources cited here do not establish a current Vultr instance size, egress price, or bandwidth allowance. Check Vultr’s current plan terms and estimate your stream’s sustained bitrate and duration before choosing a server.

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

Prepare the YouTube Live event and protect the stream key

  1. In YouTube Studio, create or schedule the live stream and open its Live Control Room.
  2. Copy the exact stream URL and stream key from the encoder settings. Select RTMPS if you want the encrypted ingest endpoint; YouTube may show RTMP by default. RTMPS is RTMP over TLS/SSL. YouTube recommends it in its encoder settings guidance.
  3. Keep the stream key private. Do not put a real key in a public command, script, screenshot, or log. YouTube treats it like a password; if it is exposed, reset it in Live Control Room and update the encoder.

FFmpeg’s output URL must use the exact endpoint and key YouTube provides for that event. The placeholder URL in the example below is not a literal ingest address.

#1 Best Overall
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • 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.

Put the MP4 files in playback order

Create a plain-text playlist file, for example /srv/videos/playlist.txt, with one entry per video in the desired order. Absolute paths make it easier to identify which files FFmpeg will read:

file '/srv/videos/01-intro.mp4'
file '/srv/videos/02-main.mp4'
file '/srv/videos/03-outro.mp4'

FFmpeg’s concat demuxer treats the listed files as one concatenated input. Check that every path exists and is readable by the FFmpeg process. Prefer straightforward filenames that do not need complicated quoting or escaping. Concatenation does not guarantee seamless transitions: differences in codecs, stream parameters, timestamps, frame rates, or audio layout can cause errors or discontinuities.

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.

Choose stream copy or transcoding

Method Use it when Trade-off
Stream copy (-c copy) The source streams are compatible with the intended YouTube output and you do not need to resize, filter, or change the encoded media. FFmpeg passes compressed packets through without decoding and re-encoding, reducing processing demand and preserving the existing encodings. It may fail if stream information or parameters are unsuitable for the output.
Transcode You need to standardize or change the video or audio, such as resizing or applying filters, or the input streams are not suitable as-is. It gives you control over output settings but uses server CPU and re-encoding can affect quality.

Do not assume that an MP4 container means every file has compatible video and audio streams. Inspect and test the actual playlist. If the files already contain compatible H.264 video and AAC audio and need no changes, stream copy may work; if not, transcode and check the result in YouTube’s preview.

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

Send the playlist to YouTube with FFmpeg

Transcoding example

This illustrative starting command reads the list in real time, encodes H.264 video and AAC audio, and sends the result to an RTMPS endpoint:

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.
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 not a tested or universal command. Replace the placeholder with the exact RTMPS URL and key arrangement shown in Live Control Room. Set resolution, frame rate, keyframe interval, bitrate, and codecs to suit the media and YouTube’s current guidance. The sample’s 4500k video bitrate is not a YouTube recommendation for every resolution.

Stream-copy example

If the playlist’s streams are compatible and you do not need to change them, try stream copy instead of the encoding options:

Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • 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.
ffmpeg -re -f concat -safe 0 -i /srv/videos/playlist.txt 
  -c copy -f flv 'rtmps://INGEST_URL/STREAM_KEY'

As above, use the event’s actual ingest URL and keep the key secret. If FFmpeg reports incompatible streams or YouTube does not accept the feed, inspect the inputs and use a transcode configuration appropriate to the output.

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

Match output settings to YouTube and your server

YouTube’s encoder guidance, accessed in 2026, recommends constant bitrate (CBR), supports up to 60 fps, and recommends a 2-second keyframe interval, not exceeding 4 seconds. For H.264 it recommends 10 Mbps for 1080p at 30 fps and 12 Mbps for 1080p at 60 fps. These are YouTube recommendations, not guarantees that a particular source or Vultr server can sustain them. See YouTube’s encoder settings, bitrates, and resolutions.

Best Value
UnionSine 500GB Ultra Slim Portable External Hard Drive HDD-USB 3.0 | for PC, Mac, Laptop, PS4, Xbox one, Xbox 360-(Black)
  • [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.

The example’s -g 60 sets a GOP length in frames, not a fixed two-second interval for every frame rate. For a two-second interval, set the GOP length to roughly twice the output frames per second—for example, 60 frames at 30 fps or 120 frames at 60 fps—and confirm it matches the encoder guidance and the actual output frame rate. Do not exceed YouTube’s recommended four-second interval.

Choose resolution and frame rate based on the source material and the server’s ability to encode and upload continuously. YouTube recommends running a speed test and testing with audio and motion similar to the intended stream. Allow for network variation rather than treating a speed-test result as proof of sustained capacity. A Vultr plan’s suitability cannot be inferred from the bitrate alone without checking its current network and plan details.

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

Start, verify, and end the broadcast

  1. Run FFmpeg with the playlist and the correct event ingest details.
  2. Wait for the preview and stream-health indications in Live Control Room. Confirm video, audio, and playback before making the broadcast public.
  3. For a scheduled stream, YouTube’s workflow is to begin the encoder feed, wait for the preview, then select “Go live” in Live Control Room.
  4. When finished, end the scheduled stream through Live Control Room and stop the feed as directed there. YouTube says streams under 12 hours are automatically archived.

A playlist without a repeat instruction plays through its listed files once. If you need repeated playback, verify the FFmpeg loop behavior against your intended run before using it for a long broadcast; do not assume that a successful one-pass test proves an unattended loop is reliable.

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

Troubleshoot common failures

  • FFmpeg cannot open a listed file: Check the spelling and absolute path in the playlist, file permissions, and whether the FFmpeg process runs as an account that can read the media.
  • The concat input fails or playback breaks between files: Compare the files’ video and audio streams and parameters. Stream copy is not guaranteed to work across mismatched inputs; transcode to a consistent output when needed.
  • YouTube does not receive the stream: Recheck the event’s exact ingest URL, protocol, and key. Confirm outbound connectivity from the server and that FFmpeg is still running.
  • The key may have been exposed: Reset it in Live Control Room, then update the FFmpeg destination before starting again.
  • Live Control Room reports poor stream health: Check the output bitrate, resolution, frame rate, keyframe interval, and server/network capacity against YouTube’s encoder guidance. Test with representative movement and audio before relying on the setup.
  • FFmpeg cannot keep up while encoding: Transcoding consumes CPU. Reduce the encoding workload or use a server that can sustain the chosen settings; stream copy avoids re-encoding only when the source is compatible.

Or let it run in the cloud

If maintaining FFmpeg on a Vultr server is more work than you want, StreamNeo keeps an uploaded-video YouTube stream running from the cloud. Upload your recording or build a playlist, add your YouTube stream key once, and go live. Nothing has to stay on at home; it streams uploaded video, not a camera feed. Each slot streams the uploaded quality up to 4K 60fps at one flat price per slot, with no re-encode or quality tiers, and it automatically recovers if YouTube drops the stream.

The first day is free with no card required. The monthly option is $9.99 per month. Start your free StreamNeo day.

Quick Recap

Bestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.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.
$219.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 | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$189.99

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.

FFmpegLinuxRTMPSVultrYouTube Live

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.

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.