Reputation: 41
I would like to cut the silent parts (where my prof writes on the blackboard but does not talk) off from my lecture notes. I tried ffmpeg -i input.mp3 -af silenceremove=1:0:-50dB output.mp3
from this post, but it only deletes silence from the beginning of my file.
Can I delete the silence everywhere with one command? I only want the speech without all the writing on the blackboard. Thank you!
Upvotes: 2
Views: 3483
Reputation: 955
Is the threshold -50dB low enough? Also I guess "silenceremove=1" means remove only one period. Examples with more parameters use -1 to indicate an unlimited amount of periods:
http://underpop.online.fr/f/ffmpeg/help/silenceremove.htm.gz Or: https://ffmpeg.org/ffmpeg-filters.html#toc-silenceremove
Trim all silence encountered from beginning to end where there is more than 1 second of silence in audio:
silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-90dB
(90 dB maybe is too low, depends on the noise level)
Upvotes: 9