October DealsAmazon USOctober deal check: compare before you payAmazon 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 NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
FFmpeg

How to Stream a Pre-Encoded H.264 Playlist to YouTube with FFmpeg Copy Mode

Use FFmpeg’s concat demuxer, -re, and -c copy to send compatible pre-encoded H.264 segments to YouTube, with setup checks and troubleshooting.

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

To stream a compatible H.264 playlist to YouTube without re-encoding, join the files with FFmpeg’s concat demuxer, pace the file input with -re, and send it to YouTube using -c copy over the RTMPS ingest URL shown in Live Control Room. Copy mode preserves the existing audio and video streams; it cannot fix incompatible segments or change bitrate, frame rate, keyframe spacing, or audio format.

Check whether copy mode will work

FFmpeg’s concat demuxer can present multiple files as one continuous input, but it is not a general-purpose converter. FFmpeg requires the files to have the same streams, codecs, and time bases. Check every segment before building the playlist, and investigate unreliable duration metadata: the demuxer adjusts timestamps using each file’s duration, so inaccurate duration information can cause artifacts at joins. See the FFmpeg concat demuxer documentation.

  • Compare the stream count and layout across all segments, including whether each has audio.
  • Confirm the video and audio codecs and time bases match.
  • Check that the encoded resolution, frame rate, bitrate, keyframe spacing, and audio properties are suitable for YouTube. Copy mode cannot alter them.
  • If the files do not match, prepare compatible files or use a re-encoding workflow. Re-encoding is a different workflow from strict stream copy.

A single file already assembled in playback order avoids cross-file concat compatibility and duration issues. Use the playlist method when you need to sequence separate, compatible segments.

Get YouTube’s current ingest details

  1. In YouTube Studio, open Live Control Room and create or schedule an encoder stream. Copy the server URL and stream key supplied for that stream.
  2. Prefer RTMPS when your FFmpeg build and network support it. YouTube describes RTMPS as RTMP over TLS/SSL; the RTMPS URL is available through the lock icon in Live Control Room. Use the exact URL provided there rather than assuming a fixed address. See YouTube’s encoder setup guidance and RTMPS troubleshooting.
  3. Treat the stream key as a credential. Do not expose it in public shell history, shared scripts, screenshots, or logs. The command below uses environment variables as a pattern; choose a secret-handling method appropriate to your system.

Build the concat manifest

Create a plain-text manifest in UTF-8. Its first line must be exactly ffconcat version 1.0, followed by one file directive per segment in playback order. 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.
ffconcat version 1.0
file 'part-001.ts'
file 'part-002.ts'
file 'part-003.ts'

Quote or escape path characters as needed. FFmpeg’s concat demuxer defaults to safe-path mode, which rejects paths it considers unsafe. The example command uses -safe 0 to permit arbitrary file names and paths; use that only with a manifest and local paths you trust. The safe-path rules and manifest syntax are documented in the FFmpeg formats manual.

Send the playlist with FFmpeg

Set YOUTUBE_RTMPS_URL to the exact RTMPS ingest URL from Live Control Room and YOUTUBE_STREAM_KEY to the matching key, then run this command pattern from the directory containing playlist.ffconcat:

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.
ffmpeg -re -f concat -safe 0 -i playlist.ffconcat -map 0:v:0 -map 0:a? -c copy -f flv "$YOUTUBE_RTMPS_URL/$YOUTUBE_STREAM_KEY"

This is a command pattern, not a tested invocation: confirm that the RTMPS URL syntax matches the value YouTube supplies and that your installed FFmpeg build supports RTMPS. The -re option reads a file input at its native frame rate, which paces packets for live delivery; put it before the file input. FFmpeg documents -codec copy as copying streams without re-encoding. See the FFmpeg command-line documentation.

  • -f concat selects the concat demuxer, and -i playlist.ffconcat names its manifest.
  • -map 0:v:0 selects the first video stream. -map 0:a? maps audio if present; if the source has no audio, you can omit that mapping.
  • -c copy copies the selected encoded streams unchanged. Do not add video filters, scaling, frame-rate conversion, -c:v libx264, or audio re-encoding if you require strict copy mode.
  • -f flv selects the output muxer used by this command pattern. Verify compatibility with the ingest details and FFmpeg build you actually use.

Do not use -re to throttle an actual capture or live input: FFmpeg warns that low read rates on such inputs can result in packet loss. Its role here is pacing the file input.

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
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.

Match the encoded source to YouTube’s ingest guidance

YouTube’s current encoder settings page, accessed in 2026, recommends the following H.264 ingest bitrates. These are platform recommendations, not a guarantee that a particular internet connection can sustain the stream. Choose the row matching the playlist’s actual resolution and frame rate, and test against your upload capacity. See YouTube’s live encoder settings.

Resolution and frame rate YouTube-recommended H.264 bitrate
720p at 30 fps 8 Mbps
720p at 60 fps 8 Mbps
1080p at 30 fps 14 Mbps
1080p at 60 fps 17 Mbps
1440p at 30 fps 21 Mbps
1440p at 60 fps 34 Mbps
4K/2160p at 30 fps 42 Mbps
4K/2160p at 60 fps 50 Mbps

YouTube’s same guidance recommends CBR, video up to 60 fps, keyframes every two seconds (no more than four seconds apart), and AAC or MP3 audio. For stereo audio, it recommends a 44.1 kHz sample rate and 128 kbps audio bitrate. Because copy mode cannot change any of these properties, inspect the source before streaming. If it does not meet the requirements for your intended ingest, prepare a compliant source or re-encode it beforehand.

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

Test and start the live event

  1. Test with representative movement and audio before relying on the stream. YouTube recommends testing and checking stream health rather than assuming the encoder settings are correct.
  2. Watch the preview and status messages in Live Control Room. Confirm that both picture and sound arrive as expected.
  3. For a scheduled event, wait for the preview and use the control room’s Go live action when required; connecting FFmpeg does not necessarily start the event for viewers.
  4. When finished, end the event through Live Control Room as appropriate, then stop FFmpeg. YouTube says streams under 12 hours are automatically archived.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common failures

The manifest will not open

  • Confirm its first line is exactly ffconcat version 1.0 and that the file is plain text.
  • Check file names, quoting, escaping, and playback order.
  • If paths trigger safe-mode rejection, use suitable safe relative paths or -safe 0 only for a manifest and local paths you trust.

The first segment plays, or joins show glitches

Compare every segment’s stream layout, codecs, and time bases. Check duration metadata as well: timestamp adjustment at each join relies on the preceding file’s duration. If the files are not compatible, concat demuxing will not make them compatible.

The file plays too quickly or timing is wrong

Ensure -re appears before -i playlist.ffconcat so FFmpeg paces the file input at its native rate. Do not apply this pacing approach to an actual capture or live input.

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 reports quality or ingest problems

Compare the existing encoding with YouTube’s guidance for bitrate, CBR, keyframe interval, frame-rate limit, and audio format. Stream copy cannot correct a mismatch; use a compliant source or re-encode before sending it.

RTMPS connection or certificate error

Check that you copied the current RTMPS URL from Live Control Room, that your FFmpeg build supports RTMPS, and that network rules permit the required connection. YouTube’s RTMPS troubleshooting page advises checking the protocol and URL, port requirements, and RTMPS support.

No preview appears

Verify the URL and key belong to the intended event, then check whether FFmpeg is transmitting and inspect Live Control Room status messages. For scheduled streams, wait for the preview and use Go live if the control room requests it.

Or let it run in the cloud

If you want a pre-recorded YouTube stream to keep running without leaving a computer on, StreamNeo runs the uploaded video or playlist 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; the stream runs at the quality you uploaded, up to 4K 60fps, for one flat price per slot. StreamNeo automatically recovers if YouTube drops the stream. The first day is free with no card, and the monthly option is $9.99 per month. It streams to YouTube and plays uploaded videos; it does not go live from a camera. Start your free day with StreamNeo.

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 Patch Notes

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.