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
Mountain View desk5 min

How to Create an FFmpeg Concat Playlist from Videos with Different Codecs for YouTube

A playlist orders video clips but does not reconcile codecs. Use FFmpeg’s concat filter to join mixed-codec inputs, normalize mismatched streams, and prepare an upload suited to YouTube.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A concat playlist only sets the order of your clips; it does not make different codecs compatible. If the videos use different codecs, use FFmpeg’s concat filter to decode, join, and re-encode them. Use the concat demuxer with -c copy only when the input streams are compatible and you want to avoid re-encoding.

Choose the right FFmpeg concatenation method

FFmpeg offers two approaches that sound similar but do different jobs. The concat demuxer reads a text manifest and joins packets; the concat filter joins decoded streams and lets you encode the result. FFmpeg’s FAQ says of the filter: “This operation is recommended if you need to re-encode.” FFmpeg FAQ

As an Amazon Associate I earn from qualifying purchases.

Approach Re-encodes? Input compatibility Best for
Concat demuxer with -c copy No Files need matching streams, including codecs and time bases, and compatible parameters. Joining compatible clips quickly without another generation of encoding.
Concat filter with an encoder Yes Different codecs can be decoded and joined, but corresponding streams and other properties may need normalization. Clips with different codecs or other differences that call for filtering or re-encoding.

A playlist does not convert one codec into another. Stream copy copies compressed packets without decoding or encoding, so it cannot solve a mixed-codec mismatch. The demuxer also uses each file’s recorded duration to adjust timestamps for the next file; inaccurate durations can cause artifacts. FFmpeg concat demuxer documentation FFmpeg stream-copy documentation

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.

Inspect the clips before building the output

Check the files’ streams and properties before choosing filters. The example below assumes each clip has one video stream and one audio stream; that assumption does not hold for every file. Inspect codec, resolution, pixel format, frame rate, sample rate, channel layout, and stream presence with ffprobe. Differences in those properties may require normalization even when the clips’ codecs are the same.

#1 Best Overall
Alienware Aurora Gaming Desktop, RTX 5070, Intel Core Ultra 7 265F
  • Legend perfected: Modern design with a matte basalt black finish in an optimized chassis with customizable AlienFX lighting zones, including the striking stadium lighting.
  • Game changing graphics: Step into the future of gaming and creation with the NVIDIA GeForce RTX 5070 graphics, powered by NVIDIA Blackwell architecture.
  • Marathon gaming unlocked: This high-performance technology ensures clean energy is consistently available, unleashing the top-level power of Intel Core Ultra 7 265F processor as you game, livestream, and multi-task for hours on end.
  • Total command: Alienware Command Center software allows you to create and edit AlienFX lighting across the ecosystem, choose and monitor your performance mode across distinct power states, and create custom gaming profiles for your whole library.
  • Dell Services: 1 Year Onsite Service provides support when and where you need it. Dell will come to your home, office, or location of choice, if an issue covered by Limited Hardware Warranty cannot be resolved remotely.
ffprobe -hide_banner -i clip-one.mp4

If a clip has no audio, the basic audio-and-video filter graph below cannot select an audio stream from it. Add a silent audio source for that clip or build separate video and audio concatenations. Do not assume that a file extension tells you the codecs or stream layout inside the file.

Create a playlist for compatible clips

For clips that meet the concat demuxer’s compatibility requirements, make a plain-text manifest named, for example, inputs.txt. Put one file entry per line in the order you want them joined:

Rank #2
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
  • Model: Dell OptiPlex 7050 Small Form Factor (SFF)
  • Processor: Intel Core i7-7700 3.60 GHz
  • Memory: 32GB DDR4 Ram
  • Storage: 1TB Solid State Drive (SSD) Fast Boot + Storage
  • Operating System: Windows 11 Pro (64-bit)
file 'clip-one.mp4'
file 'clip-two.mov'
file 'clip-three.mkv'

Keep paths relative to the manifest’s directory where practical. The demuxer applies safety checks to paths. The -safe 0 option permits paths that fail those checks, so use it only with a playlist you trust.

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

Join compatible files without re-encoding using:

ffmpeg -f concat -safe 0 -i inputs.txt -c copy joined.mp4

This command is not a solution for different codecs. If FFmpeg reports incompatible streams, or the inputs differ in required stream properties, switch to a filter-and-encode workflow rather than trying to force packet copying.

Rank #3
ZYNEEX Prebuilt Gaming Desktop PC, AMD Ryzen 5 5500, GeForce RTX 3050 6GB,16GB DDR4 3200MHz RAM, 1TB NVMe SSD, ARGB Air Cooling, Wi-Fi,Tower Computer for Gaming, Streaming, Editing
  • 【POWERFUL PERFORMANCE】 – AMD Ryzen 5 5500 6-Core 12-Thread Desktop Processor (up to 4.2GHz). Effortlessly handle 3A games, 4K video editing, and multitasking.
  • 【SMOOTH GAMING】 – Equipped with GeForce RTX 3050 6GB GDDR6 Graphics Card. Experience high-frame-rate 1080P gaming with ray tracing.
  • 【FAST & AMPLE STORAGE】 – 16GB DDR4 3200MHz RAM + 1TB NVMe SSD. Enjoy rapid game loads, quick file transfers, and ample space for your entire library.
  • 【KEEP COOL】 – Advanced ARGB air cooling system with multiple fans. Maintains stable performance and low noise even during marathon gaming sessions.
  • 【READY TO USE】 – Features built-in Wi-Fi, multiple USB ports, HDMI and DisplayPort (DP) outputs for flexible monitor connectivity. A complete prebuilt gaming computer, plug and play right out of the box.

Concatenate mixed-codec clips with the concat filter

For two clips that each contain one video and one audio stream, the following is a starting pattern. It decodes the inputs, concatenates the corresponding streams, then encodes an MP4 output using H.264 video and AAC audio:

ffmpeg -i clip-one.mp4 -i clip-two.mov 
  -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[v][a]" 
  -map "[v]" -map "[a]" 
  -c:v libx264 -crf 18 -preset medium -pix_fmt yuv420p 
  -c:a aac -b:a 192k -movflags +faststart output.mp4

The filter inputs are ordered video then audio for each clip. concat=n=2:v=1:a=1 tells FFmpeg to join two segments, each with one video and one audio stream. -map selects the resulting filtered streams for output. The video quality setting and preset here are example choices, not universal requirements; encoding choices trade file size, quality, and processing time.

Rank #4
Thermaltake LCGS View i570-170 Gaming Desktop (Intel Core™ i9-14900KF, ToughRam 32GB DDR5 6000MT/s RGB Memory, NVIDIA® GeForce RTX™ 5070, 1TB NVMe M.2, WiFi, Windows 11) V17B-B76B-570-LCS
  • Intel Core i9-14900KF CPU, B760 chipset motherboard, 32GB DDR5 6000MT/s RGB Memory, 1TB NVMe M.2, WiFi, Windows 11
  • NVIDIA GeForce RTX 5070, Display Port/HDMI
  • Closed Loop Liquid Cooling with 240mm Radiator
  • 2x USB 3.0, 1x Headphone, 1x Mic
  • PSU Power cover with Filtered Ventilated Vertical Side mount Radiator support

Normalize mismatched properties when needed

Different codecs are only one possible mismatch. If clips vary in resolution, aspect ratio, pixel format, sample rate, channel layout, or frame timing, add suitable filters before concatenation. Depending on the files, that may include scale, setsar, fps, or aresample. Choose values intentionally after inspecting the inputs; blindly forcing a frame rate or aspect ratio can change the result.

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

The example command is not guaranteed to work unchanged for user-provided files. A clip with multiple audio or video streams needs explicit stream selection, and a clip without audio needs a different graph. For complex inputs, adjust the filter graph to the streams you actually want in the final video.

Best Value
HP Workstation PC Desktop Computer | Editing and Design | NVIDIA Quadro K1200 4GB GPU | Intel Core i5 | 32GB DDR4 RAM, 1TB SSD + 4TB HDD | Wi-Fi 5G + Bluetooth | Windows 11 Pro (Renewed)
  • Content Creation Workstation PC: Powered by the Intel Hexa-Core i5 (8th Gen) processor with 32GB DDR4 RAM and NVIDIA's Quadro K1200 4GB Graphics Card, this Workstation PC Computer is built for creative environments
  • NVIDIA's Quadro K1200 4GB Graphics Card: Graphic support built to be an efficient workstation for creative applications like photo and video editing, 3D Design, AutoCAD, and much more
  • Software Compatibility: Workstation PC for use with independent software vendors (ISV) and certified for use with modeling, rendering, and engineering software from Adobe, AutoCAD, 3DS Max, and many more
  • Massive Storage Solutions: An ultra-fast 1TB Solid State Drive (SSD) setup as the primary boot device; Boot and load programs with little to no lag; An additional 4TB Hard Disk Drive (HDD) is installed for additional storage; Never run out of storage
  • Connectivity for Creative Projects: USB 3.0 (x5) | USB 2.0 (x4) | USB Type-C (x1) | DisplayPort (x2) | Serial Port (x1) | VGA Port (x1) | Audio Combo Jack (x1) | Audio In (x1) | Audio Out (x1) | RJ-45 Ethernet (x1) | Internal SATA (x3)
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Prepare the file for YouTube upload

YouTube’s recommended upload settings list MP4, H.264 video, progressive scan, and AAC-LC audio, among other audio options. YouTube recommends uploading at the same frame rate at which the material was recorded. Match the output to the source where practical rather than applying a frame-rate or aspect-ratio conversion without a reason. YouTube recommended upload encoding settings

For SDR uploads, YouTube’s published recommended video bitrates include 8 Mbps for 1080p at standard frame rate and 12 Mbps for 1080p at high frame rate. These are recommendations, not mandatory limits. The page also covers color-space and audio recommendations; check it for the current guidance and details relevant to your footage. Bitrate is not the same thing as a required FFmpeg setting: choose an encoding mode and output characteristics that suit the source and intended upload.

The sample command uses H.264 and AAC in an MP4 container, but its CRF-based video encoding does not target either bitrate figure directly. If you need a particular bitrate, set and verify your encoding parameters deliberately; do not describe the example command as producing a guaranteed bitrate.

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.

Troubleshoot common concat problems

  • The demuxer reports a codec or stream mismatch: The inputs are not suitable for packet-copy concatenation. Use the concat filter and encode, or first make the inputs consistent.
  • The output has jumps, gaps, or timestamp artifacts: Check whether input durations are accurate and inspect frame timing. The concat demuxer uses recorded durations to set subsequent timestamps; incorrect duration information can affect transitions.
  • The filter graph says a stream cannot be matched or selected: Confirm each input’s stream layout with ffprobe. The example requires both audio and video in every clip, in the selected stream positions.
  • Clips differ in size, shape, or audio format: Normalize the relevant video or audio properties with appropriate filters before joining. Pick target settings based on the source rather than assuming one filter value fits all inputs.
  • The YouTube upload is rejected or looks wrong: Check the output container, codecs, progressive scan, frame rate, color, and audio against YouTube’s current upload recommendations. Revisit any forced frame-rate or aspect-ratio conversion.

Or let it run in the cloud

If the finished video is for a continuous YouTube channel rather than a one-time upload, StreamNeo can keep uploaded videos looping from the cloud. Upload a recording or build a playlist, add your YouTube stream key, and go live. Your computer and home connection do not need to stay on. StreamNeo plays uploaded videos and streams to YouTube; it is not a camera-based live production tool.

  • One flat price per slot for any uploaded quality up to 4K 60fps, with no re-encoding or quality tiers.
  • Automatic recovery if YouTube drops the stream.
  • The first day is free with no card required; one free day per account.
  • Monthly: $9.99 per month.

See StreamNeo for service details, or start your free 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 Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
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.