Merge Audio Files with the ffmpeg concat Filter
Combine multiple MP3/M4A/WAV parts into one track — v=0:a=1 means audio only, single output.
01Command
$ ffmpeg -i part1.mp3 -i part2.mp3 -filter_complex "concat=v=0:a=1" merged.mp302What it does
The concat filter's v=0:a=1 setting tells ffmpeg to expect no video streams and produce exactly one audio output, stitching the inputs back to back. Add more -i inputs and raise the n= segment count (e.g. concat=n=3:v=0:a=1) to merge three or more files. For dozens of same-codec MP3s, the concat demuxer with a playlist file is faster since it avoids re-encoding.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- FFmpeg Filters Documentation (concat filter)Evidence: Concat filter section shows the syntax concat=v=0:a=1 for joining audio-only inputs into one output stream.
- FFmpeg Formats Documentation (concat demuxer)Evidence: Documents the concat demuxer as an alternative way to concatenate media files listed in a script.
Last verified: 2026-09-19 · Category: Media
06Related solutions
Turn any PNG into JPEG, BMP into PNG, and more using .NET's built-in imaging library — scriptable, batchable, zero third-party tools.
A script-driven screenshot: grab the entire virtual desktop (all monitors) and write it to a timestamped PNG — useful for monitoring, unattended tasks, and scheduled captures.