[FFmpeg-user] Mozaic: Choose audio source

Gyan gyandoshi at gmail.com
Tue Jun 13 18:10:55 EEST 2017

On Tue, Jun 13, 2017 at 8:29 PM, Grégory S <texel3d at gmail.com> wrote:

> Now i want to be able to select from which video source the sound will be
> exported.
> If the duration of the sound is shorter than the duration of the mozaic (if
> it do not comes from the longest video), i want to have silence until the
> end of the video.

Add    -map    to select the audio e.g.    -map 1:a    to select the audio
from the 2nd input.

Add   -af apad    to extend the selected audio with silence indefinitely.

Add    -shortest    to stop muxing when the video stream ends.

More information about the ffmpeg-user mailing list