4
3
After investigating to find a solution to the problem, I ended up empty-handed. I want a context menu option in Windows 10 so that whenever I right click on a mp3 file I have this option to trim silences from start and end of mp3 files. I don't want to remove silences from middle parts of audio files. Can anyone please provide me with the appropriate command line of FFmpeg to remove silences only from beginning and end of mp3 files?
This works amazingly, but could you explain the part of two codes + areverse? Is it basically scanning from the beginning of the audio, then reversing and scanning from the end? – CreativiTimothy – 2018-10-10T00:41:40.507
1Yes, because removing silence from end of audio is problematic in sense that you need to know where is end of audio before starting trimming silence. And silenceremove filter can not know end of audio before it actually reach it except if user was tasked to enter it somehow before filtering process. – Paul B. Mahol – 2018-10-10T10:58:44.443
what does durations setting do here? Could you give an example? – acman123 – 2018-10-10T13:28:12.830
If duration of non-silence part after silence is more or exact 1 second (durations are set usually in seconds) than it will not be trimmed. Silence is detected using threshold parameter among other options like peak detection and window size. This way you can trim short burst of noises too. I have WIP patch for this filter, adding support for keeping some silence before and after trimming so it is more natural for listening. – Paul B. Mahol – 2018-10-10T16:49:38.370
What is "WIP patch"? – acman123 – 2018-10-10T18:47:30.570
Work in progress code additions to silenceremove filter to extend its functionality. – Paul B. Mahol – 2018-10-11T07:12:03.793