Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
DocumentaryTube
FFmpeg

How to Stream Local Video Files to YouTube from Linode with FFmpeg concat

Use FFmpeg’s concat demuxer on a Linode Linux server to stream authorized local video files to YouTube Live. This guide covers manifests, ingest settings, capacity and troubleshooting.

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

You can stream a sequence of video files from a Linode Linux server to YouTube Live with FFmpeg’s concat demuxer. The method uses a text manifest of local files—it does not turn a YouTube playlist URL into downloadable video. You need authorized media on the server, compatible inputs, FFmpeg, and a current YouTube Live ingest URL and stream key.

What this method does—and what it does not do

FFmpeg’s concat demuxer reads a text file listing media files and processes them in sequence. The FFmpeg documentation describes it as reading “a list of files and other directives from a text file” and demuxing them one after another: FFmpeg concat demuxer documentation.

This is a file-based workflow. A YouTube playlist URL is not a concat manifest, and this method does not resolve, download, or extract YouTube videos. Use recordings you control and have permission to rebroadcast. Copyright permission and YouTube’s live-stream policies still apply.

What you need before starting

  • A Linux Linode instance with the media files stored locally or on storage the instance can reliably read.
  • An FFmpeg build that includes the required input, encoder and output protocols. Check the installed build with ffmpeg -version and ffmpeg -protocols.
  • Files with matching stream layouts, codecs and time bases if you plan to join them using the concat demuxer without normalizing them first.
  • A YouTube channel with live streaming enabled and access to the stream URL and key in YouTube Studio’s Live Control Room.
  • Enough sustained CPU, memory, disk throughput and outbound network capacity for the chosen workflow.

Prepare and check the video files

Put the inputs in a stable directory

Keep the files in a directory that will remain available while FFmpeg runs, such as /srv/media. Use predictable filenames and confirm the Linux account running FFmpeg can read each file.

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.

Create the concat manifest

Create a UTF-8 text file such as /srv/media/playlist.ffconcat with the documented header and one file directive per input, in playback order:

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

Use valid FFmpeg concat-script quoting and escaping for filenames containing spaces, apostrophes or other special characters. Prefer simple filenames if you can. The header must be the first line for FFmpeg to recognize the script format automatically.

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.

Check stream compatibility

The concat demuxer does not make unlike files match. Inputs should have the same streams, codecs and time bases; mismatches can cause errors, missing audio or video, timestamp discontinuities, or playback artifacts. Inspect each file’s streams and duration before the broadcast. If stream layouts or encoding parameters differ, use a filter-based concat workflow that decodes and re-encodes to a consistent output rather than assuming the demuxer will normalize them.

Durations matter because FFmpeg uses each file’s duration to place the next file. Incorrect or unusual duration metadata can produce timestamp artifacts or gaps. If you see jumps or synchronization problems, verify reported durations and timestamps as well as the manifest paths.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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.

Get YouTube’s current ingest URL and stream key

  1. Open YouTube Studio and go to the Live Control Room.
  2. Create or select the live stream or event you intend to use.
  3. Copy the server URL and stream key shown for that stream. Prefer the RTMPS endpoint when your FFmpeg build supports it; RTMPS is RTMP protected by TLS. YouTube’s instructions are at Set up your encoder for live streaming and Use an RTMPS encoder.

Treat the stream key as a password. Do not publish it, commit it to source control, expose it in screenshots, or leave it in shared logs or shell history. Use a protected configuration approach with permissions limited to the account that runs the stream. Never use a real key in a tutorial command.

Choose encoding settings and start FFmpeg

Set a profile that fits YouTube and the Linode instance

YouTube’s encoder guidance covers supported codecs, bitrate ranges by resolution, constant bitrate and a recommended two-second keyframe interval: YouTube live encoder settings. Select a resolution, frame rate, video and audio bitrate, and keyframe interval that match those current recommendations and your server’s capacity. There is no single correct Linode size or bitrate for every source and output.

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

The following is an illustrative transcode command, not a universal preset. Replace the ingest placeholder with the current YouTube RTMPS URL and key using your protected credential method. Confirm option support and ordering against the FFmpeg version installed on your instance:

ffmpeg -re -f concat -safe 0 -i /srv/media/playlist.ffconcat 
  -c:v libx264 -preset veryfast -b:v 2500k -maxrate 2500k -bufsize 5000k 
  -g 60 -c:a aac -b:a 128k -f flv 'rtmps://CURRENT_YOUTUBE_INGEST/STREAM_KEY'

In this example, FFmpeg transcodes to H.264 video and AAC audio; the bitrate and GOP values are examples only. The frame count represented by -g 60 depends on the output frame rate, so it is not automatically a two-second keyframe interval for every stream. Match the GOP to the selected frame rate and YouTube’s current recommendation. The -re input option reads media at its native playback rate rather than sending the files as fast as the server can process them.

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.

Consider stream copy only when inputs already match

Stream copy avoids video and audio re-encoding and therefore reduces CPU demand, but it is appropriate only when the inputs and resulting stream are compatible with YouTube’s ingest requirements and with each other. If you need to use -c copy, verify the codec, stream layout, timestamps and container behavior before relying on it. Re-encoding provides more control over output consistency but consumes CPU and may require a larger instance.

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

Size and test the Linode workload

Instance requirements depend on whether FFmpeg is copying or re-encoding, the resolution and frame rate, codec and preset, and whether other jobs run at the same time. Monitor CPU use and verify that your FFmpeg build has the encoder and protocol you need. The reviewed provider guidance does not establish a universally suitable Linode size, so test the exact workload rather than choosing by a blanket recommendation.

Plan for sustained outbound bandwidth. YouTube recommends keeping upload capacity above the total stream bitrate, with 20% headroom recommended, and advises testing and monitoring stream health: YouTube streaming tips. If sending multiple streams, include all their bitrates in the total. Confirm that the instance can reach the ingest endpoint and port YouTube currently shows; do not assume one port applies to every endpoint or setup.

Go live, preview and monitor

  1. Start FFmpeg and watch its output for input, encoding and connection errors.
  2. In Live Control Room, wait for YouTube to receive the encoder feed and check the preview and stream health before relying on the broadcast.
  3. Monitor the Linode’s CPU and network use, along with YouTube’s stream health, throughout the session.
  4. After the event, check the resulting YouTube archive if you need to confirm the complete broadcast was captured.

First-time live streaming may take up to 24 hours to become available. If the Live Control Room does not allow you to start, check current channel eligibility and live-stream access in YouTube Studio: YouTube live streaming requirements.

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.

Troubleshooting

Symptom Likely cause What to check
FFmpeg cannot open a manifest entry Incorrect path, permissions, or invalid quoting and escaping. Check the exact path on the server, read permissions for the FFmpeg user, and concat-script syntax.
Files fail to join, or playback jumps at a boundary Incompatible streams or time bases, or inaccurate duration information. Inspect each input’s streams, codecs, timestamps and durations. Use a filter-and-transcode workflow if the inputs need normalization.
FFmpeg connects but YouTube does not show a usable feed Wrong or stale server URL or key, a scheme or endpoint mismatch, or missing protocol support in the FFmpeg build. Copy the current endpoint and key from Live Control Room, verify RTMPS/RTMP and the displayed endpoint port, and check FFmpeg’s protocol support.
Dropped frames, buffering or stream-health warnings Insufficient encode capacity, outbound bandwidth or network stability. Run a preflight test and monitor resource use. Reduce output bitrate or resolution, or use an instance with enough sustained CPU and network capacity.
No audio or audio out of sync Inputs have different audio streams, timestamps or durations. Inspect every file’s streams and timestamps. Ensure the concat inputs match, or normalize them with a filter-based transcode.
Live streaming is unavailable in Studio Live access is not enabled for the channel or account. Check YouTube Studio’s eligibility and access status; first-time activation can take up to 24 hours.

Or let it run in the cloud

If your goal is a YouTube channel that keeps playing uploaded videos without maintaining an FFmpeg process on your Linode, StreamNeo is a hosted alternative. Upload your recording or build a playlist, add your YouTube stream key, and go live. Nothing has to stay on at home; your computer and home connection are not the stream host.

  • Uploaded video streams at its original quality up to 4K 60fps, at one price per slot, without re-encoding or quality tiers.
  • StreamNeo automatically recovers if YouTube drops the stream.
  • The first day is free with no card required. Monthly billing is $9.99 per month.

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 *

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

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.