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
Admit one · Blog

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

A playlist sets clip order, not codec compatibility. Use FFmpeg’s concat filter to join different codecs, then check the output against YouTube’s upload recommendations.
Opened Runtime5 min Written byDocumentaryTube Team
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 clips use different codecs, use FFmpeg’s concat filter to decode, join, and re-encode them. The concat demuxer with -c copy is for compatible streams that already match.

Choose the right FFmpeg concat method

Method Re-encodes? When to use it Key limitation
Concat demuxer with -c copy No Inputs have the same streams and compatible codecs, time bases, and parameters; you want to avoid re-encoding. It cannot convert codecs or reconcile incompatible streams.
Concat filter Yes, when paired with encoders Inputs have different codecs or need normalization before joining. Segments still need compatible properties for concatenation; mismatches may require filters or a more tailored graph.

FFmpeg’s FAQ says of the concat filter: “This operation is recommended if you need to re-encode.” FFmpeg FAQ: concat

Inspect the clips before joining

Check each file’s streams and properties before choosing filters. ffprobe can show the codecs, dimensions, frame rates, pixel formats, audio sample rates, channel layouts, and stream presence. Differences beyond codec—such as resolution, frame timing, or audio layout—may also need attention.

ffprobe -hide_banner clip-one.mp4
ffprobe -hide_banner clip-two.mov

The examples below assume FFmpeg is installed and available as ffmpeg and ffprobe in your terminal. They are starting points: verify stream indexes and properties against your own files.

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

Create a playlist for compatible files

For the concat demuxer, create a plain-text file such as inputs.txt. Put one file entry on each line, in the desired playback order. Relative paths are easiest when the playlist and media files are in the same directory.

file 'clip-one.mp4'
file 'clip-two.mov'
file 'clip-three.mkv'

If all inputs have compatible streams, join them without re-encoding:

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)
ffmpeg -f concat -safe 0 -i inputs.txt -c copy joined.mp4

-safe 0 permits paths that the demuxer would otherwise reject as unsafe. Use it only with a playlist you trust. The demuxer requires the files to have the same streams, including codecs and time bases. It uses each file’s recorded duration to adjust timestamps for the next one; inaccurate durations can lead to artifacts. FFmpeg concat demuxer documentation · FFmpeg stream-copy documentation

Join different codecs with the concat filter

When clips use different codecs, use the concat filter and encode the joined result. This basic example assumes each input has exactly one video stream and one audio stream:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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.
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
  • -i supplies each input file.
  • The filter graph feeds each clip’s video and audio streams to concat in order. n=2 means two segments; v=1:a=1 requests one video and one audio output.
  • -map selects the filtered outputs. libx264 and aac encode video and audio for the MP4 output.
  • -crf 18 and -preset medium are example x264 quality and speed choices, not universal requirements. Re-encoding creates a new generation of compressed media.
  • -pix_fmt yuv420p selects a widely supported pixel format; confirm that it suits your sources and needs.

This command is illustrative, not a tested recipe for arbitrary files. The concat filter expects corresponding segments to be suitable for concatenation. If dimensions differ, for example, you may need to scale clips consistently and set sample aspect ratio with setsar. Differences in frame timing, pixel format, audio sample rate, or channel layout may call for filters such as fps or aresample, or other deliberate normalization. Choose target values based on the source material and desired output rather than applying filters blindly. FFmpeg’s command-line documentation describes stream selection and encoding options: stream selection · advanced options

If a clip has no audio

The example graph references an audio stream from every input. If one clip lacks audio, those stream references will fail. Build a graph that supplies silent audio for that segment, or concatenate video and audio separately; the exact graph depends on which inputs contain audio and on the desired output layout.

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

Prepare the output for YouTube

YouTube’s recommended upload settings list MP4, H.264 video, progressive scan, and AAC-LC among its recommendations. YouTube also recommends uploading at the same frame rate as the recording. Check the current guidance and match the output to your sources instead of forcing a frame rate or aspect ratio without a reason. YouTube recommended upload encoding settings

For SDR video, YouTube’s published recommendations include 8 Mbps for 1080p at a standard frame rate and 12 Mbps for 1080p at a high frame rate. These are recommended bitrates, not mandatory minimums. The settings page also covers color space and audio recommendations; consult it for your target resolution and content.

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

Troubleshoot common concat problems

  • “Unsafe file name” or a path is rejected: use simple relative paths in the playlist, or add -safe 0 for a playlist you trust. Avoid using that option with untrusted manifest contents.
  • Stream-copy fails or the join has glitches: confirm that inputs have matching streams, codecs, time bases, and compatible parameters. If codecs differ, switch to the concat filter and re-encode. Incorrect recorded durations can also disrupt timestamps between demuxer-concatenated files.
  • Filter graph reports a missing stream: check the stream indexes with ffprobe. The example requires one video and one audio stream in every input; adapt the graph when a stream is absent.
  • Filter graph rejects segments or the output looks wrong: compare dimensions, pixel formats, frame timing, sample rates, and channel layouts. Normalize only the properties that differ and re-check the result.
  • The YouTube upload is rejected or plays unexpectedly: inspect the exported container, codecs, scan type, frame rate, and audio against YouTube’s current recommended settings. A recommendation is not a guarantee that every file will suit every upload.

Check rights and channel suitability

Encoding and joining files does not grant permission to upload them. Before publishing, make sure you have the necessary rights to the footage, music, and other included material, and review YouTube’s copyright and channel monetization policies. A technically valid upload is not necessarily eligible for monetization; reused material can raise separate policy concerns.

For a channel that uses uploaded recordings as a continuous YouTube stream rather than a one-time joined upload, StreamNeo keeps uploaded videos looping from the cloud. It is for YouTube, not camera-based live video.

Or let it run in the cloud

For a 24/7 YouTube stream made from uploaded videos, StreamNeo’s three steps are: upload a recording or build a playlist, add your YouTube stream key once, and go live. Your computer and home connection do not have to stay on. Each slot streams uploads as made, up to 4K 60fps, at one flat price per slot; there are no quality tiers or re-encoding. If YouTube drops the stream, StreamNeo automatically recovers. The first day is free with no card. Monthly billing is $9.99 per month. Start the free first day with StreamNeo.

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.

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

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

  1. Addicted to Pleasure: TobaccoAdmit one · DrugsAddicted to Pleasure: TobaccoOpened05 OCT 2026Runtime2 min
  2. The psychology of digital marketingAdmit one · TechnologyThe psychology of digital marketingOpened05 OCT 2026Runtime4 min
  3. Mathilde’s Misses: 18 months with Miss HomelessAdmit one · SocialMathilde's Misses: 18 months with Miss HomelessOpened05 OCT 2026Runtime2 min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair 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.