The below command well works for trimming the output audio

ffmpeg -i input.mp3 -af silenceremove=1:0:-50dB output.mp3

However, I am concating several mp3 files,

ffmpeg -i 1.mp3 -i 2.mp3 -i 3.mp3 -filter_complex 'concat=n=3:v=0:a=1' out.mp3

and I need to trim the input audio before concat.

Is it possible to trim input audio before concating in ffmpeg?

1 Answer 1

ffmpeg \
    -i 1.mp3 \
    -i 2.mp3 \
    -i 3.mp3 \
    -filter_complex '[1]silenceremove=1:0:-50dB[a1];\
                     [a1][0][a2][0][a3]concat=n=5:v=0:a=1' out.mp3

Source: How to trim input audio in FFMPEG?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .