[FFmpeg-user] merge two mono audio streams to stereo without losing end of longer input

Paul B Mahol onemda at gmail.com
Fri Dec 22 21:17:57 EET 2017

On 12/22/17, Dave Horton <daveh at beachdognet.com> wrote:
> I'm merging two input audio streams using `-strict 2 -filter_complex
> [0a][1:a]amerge" in order to produce a stereo recording, and I've noted that
> per the documentation the output stream has the length of the shorter of the
> two inputs.  Is there a a way to accomplish the opposite -- ie have the
> output have the length of the longer of the two inputs, with the shorter
> channel either padded with silence or, I guess, just being shorter?

Add apad filter to shorter stream.

More information about the ffmpeg-user mailing list