How to Convert Mono to Stereo Using FFmpeg
Converting a mono microphone recording into a stereo track with identical left and right channels is a common task in audio post-production. This guide explains how to use FFmpeg, a powerful command-line tool, to duplicate a single mono channel into a dual-mono stereo track quickly and efficiently without losing audio quality.
The Simple Method: Channel Count Option
The easiest way to convert a mono file to stereo is by using the
-ac (audio channels) option. When FFmpeg detects a mono
input and you specify two output channels, it automatically duplicates
the mono channel to both the left and right speakers.
Run the following command in your terminal:
ffmpeg -i input.mp3 -ac 2 output.mp3How it works:
-i input.mp3: Specifies your input mono audio file.-ac 2: Forces the output file to have 2 channels (stereo). FFmpeg automatically copies the single input channel to both output channels.output.mp3: The resulting stereo audio file.
The Precise Method: Using the Audio Filter
If you want absolute control over how the channels are mapped, or if
your source file has multiple channels and you specifically want to
isolate the first channel and clone it to both sides, use the
pan audio filter (-af).
Run this command:
ffmpeg -i input.wav -af "pan=stereo|c0=c0|c1=c0" output.wavHow it works:
-af "pan=stereo|c0=c0|c1=c0": This applies the panning filter to output a stereo file.c0=c0maps the first input channel (mono) to the left output channel (c0).c1=c0maps the same first input channel (mono) to the right output channel (c1).
Both methods will result in a stereo file where the left and right channels are perfectly identical, ensuring your mono microphone audio plays equally out of both speakers.