using FFMPEG with silencedetect to remove audio silence

后端 未结 3 1139
[愿得一人]
[愿得一人] 2020-12-02 13:50

I am trying to use the following command with the latest ffmpeg build to remove silence from my .mp3 files:

ffmpeg -i SILENCE.mp3 -af silencedetect=n=-50dB:d         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-02 14:18

    I read the FFmpeg silenceremove documentation and this is how you would remove silence at the beginning and end of an audio file (keeps silence in the middle).

    ffmpeg -i "INPUT.mp3" -af silenceremove=start_periods=1:stop_periods=1:detection=peak "OUTPUT.mp3"
    

提交回复
热议问题