October 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 NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
DocumentaryTube
concat demuxer

FFmpeg Concat Demuxer vs. Concat Filter: Which Should You Use for a YouTube Video?

Use the concat demuxer to join compatible clips without re-encoding; use the concat filter when your workflow needs decoded media, filtering, or re-encoding.

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

Use FFmpeg’s concat demuxer when your files have matching streams and you want to join them without re-encoding; use the concat filter when you need to filter or normalize media and can re-encode. A YouTube destination does not change that choice: it depends on the input files and the work the edit requires.

How the two concat methods differ

The concat demuxer reads a text playlist and presents the listed files in sequence, as if their packets were muxed together. The concat filter joins inputs in a filtergraph, working with decoded media; use that path when the workflow requires re-encoding. FFmpeg’s official FAQ sets out this distinction.

Decision Concat demuxer Concat filter
Best fit Join compatible files while avoiding re-encoding. Join files in a workflow that requires re-encoding, such as one involving filtering or conversion to a common output representation.
Processing path Sequences packets from the listed files. Processes decoded media through a filtergraph.
Input considerations Files must have matching streams, including codecs and time bases. The graph must be designed for the actual inputs and their streams.
Re-encoding and filters Streamcopy can avoid decoding and encoding, but cannot apply filters. Filtering requires decoded frames, so filtered streams cannot also use streamcopy.
Timing considerations Global timestamp adjustment can leave gaps when stream lengths differ; incorrect duration information can cause artifacts. A filtergraph does not automatically resolve every synchronization or stream-layout issue.

These methods are not interchangeable quality settings. Streamcopy passes encoded packets onward without decoding, filtering, or encoding. It avoids adding a re-encoding generation, but compatibility with the source and target formats still matters. See FFmpeg’s command-line documentation.

Check whether the demuxer fits your files

Before writing the playlist, compare the files’ stream layouts. The demuxer expects the same streams, codecs, and time bases across the listed files. If they do not match, streamcopy concatenation may fail; choosing the filter route means building a re-encoding workflow suitable for those inputs, not assuming FFmpeg will automatically make every difference disappear.

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.
#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.
  • Compare the video and audio streams in every file, including whether a stream is absent from any clip.
  • Check codecs and time bases, as well as the stream layout.
  • If streamcopy is the goal, confirm that the target container can accept the resulting streams.
  • If you need to resize, crop, normalize, or otherwise filter the media, use a filtering and re-encoding path instead of combining filters with -c copy.

FFmpeg documents a limited automatic conversion for the concat demuxer: it currently adds the h264_mp4toannexb bitstream filter for H.264 in MP4, including some cases such as resolution changes. That exception does not remove the demuxer’s matching-stream requirements. See the concat demuxer documentation.

Join compatible files with the concat demuxer

1. Create the playlist

Save a plain-text file named playlist.ffconcat in the same directory as the clips. Use the exact first line shown so FFmpeg can recognize the format, then add one file directive for each clip in playback order:

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.
ffconcat version 1.0
file 'clip-01.mp4'
file 'clip-02.mp4'
file 'clip-03.mp4'

Paths with spaces or special characters need appropriate quoting or escaping. Relative paths that meet FFmpeg’s safe-path rules work with the default safety setting.

2. Run the streamcopy command

ffmpeg -f concat -i playlist.ffconcat -c copy output.mp4

-f concat selects the concat demuxer, -i playlist.ffconcat supplies its playlist, and -c copy requests streamcopy. This avoids decoding and re-encoding the streams; it does not apply filters. The command assumes the inputs and target container are compatible with streamcopy.

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.

3. Review the output before uploading

Check that the joined file plays through the boundaries between clips and that the expected audio and video are present. This is a practical output check, not a guarantee that a particular file meets YouTube’s current upload requirements. The FFmpeg materials cited here explain concatenation and streamcopy, not YouTube’s current upload encoding, size, or codec specifications.

Playlist paths, safety, and timing

When FFmpeg rejects a path

The concat demuxer’s safe option defaults to 1, which rejects paths outside its documented safe-path rules. Prefer suitable relative paths when possible. If you genuinely need absolute paths or other path forms that safe mode excludes, you can use -safe 0, for example:

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
ffmpeg -f concat -safe 0 -i playlist.ffconcat -c copy output.mp4

Use that only when necessary and with a playlist whose paths you trust: safe 0 permits filenames that the default validation rejects. The behavior and playlist rules are documented in FFmpeg’s concat demuxer manual.

When joins have gaps or boundary artifacts

The demuxer adjusts timestamps globally. If audio and video streams within a file have different lengths, that adjustment can leave a gap before the next file; inaccurate stored duration information can also cause artifacts. Check the stream lengths and container duration information when a boundary behaves unexpectedly. The playlist format supports a duration directive to override a file’s reported duration when you have a reliable value.

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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When to use the concat filter

Choose a concat filtergraph when the job requires filtering or when you need a re-encoding workflow to convert sources into a common output representation. Unlike the demuxer recipe above, a filtergraph connects inputs as graph streams rather than reading one demuxer playlist. Its design depends on the actual files: account for which inputs have audio, whether any are video-only, and the intended output codecs and container.

There is no universal filtergraph for every playlist. In particular, do not add filters to the demuxer streamcopy command and expect -c copy to apply them: filtering requires decoded frames, which is incompatible with streamcopy for those filtered streams. FFmpeg’s FAQ recommends the concat filter when re-encoding is required, and its command-line documentation explains the streamcopy limitation.

Troubleshoot common concat problems

  • “Streams do not match.” Compare every file’s stream layout, codecs, and time bases. The demuxer requires matching streams; if your edit needs media conversion, build an appropriate filter-and-re-encode workflow.
  • A gap or artifact appears at a join. Check whether audio and video stream durations differ and whether the container reports accurate durations. The demuxer’s global timestamp adjustment and incorrect duration estimates can affect boundaries.
  • Absolute paths are rejected. Safe-path validation is enabled by default. Use suitable relative paths or, only for a trusted playlist when needed, set -safe 0.
  • You need resize, crop, normalization, or another filter. Use decoded media in a filtering and re-encoding workflow. Streamcopy does not permit filtering those streams.
  • The streamcopy command is fast, but you are unsure whether quality changed. Streamcopy does not decode or encode the packets, so it does not introduce a re-encoding generation. It can still fail because of stream or container compatibility.

Or let it run in the cloud

If your goal is to keep uploaded videos playing as a YouTube live stream rather than make one joined upload, StreamNeo is a separate option: upload a recording or build a playlist, add your YouTube stream key, and go live. It is not an FFmpeg concatenation tool and plays uploaded videos, not a camera feed.

  • Your computer and home connection do not have to stay on; the stream runs in the cloud.
  • Each slot streams the uploaded quality up to 4K 60fps at one flat price, with no re-encode or quality tiers.
  • It automatically recovers if YouTube drops the stream.
  • The first day is free with no card. Monthly service is $9.99 per month.

Start a StreamNeo free day.

Version and YouTube caveats

FFmpeg’s command-line documentation describes a continuously developed project; options and behavior should be checked against the version installed on your system. The official FFmpeg pages cited here were accessed on 2026-10-03 and do not state a publication date or geographic scope. They do not establish YouTube’s current upload requirements, so check YouTube’s current guidance separately before uploading.

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