Created
March 7, 2022 19:06
-
-
Save himattm/fc03d3bef73ec7fcd8ce0f968720c6cb to your computer and use it in GitHub Desktop.
Uses ffmpeg to convert mp4 to mp3 and also truncate silences
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in *.mp4 | |
do | |
#ffmpeg -i "$i" "${i%mp4}mp3" # Convert mp4 to mp3 | |
ffmpeg -i "$i" -af silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-55dB "removed_silence_${i%mp4}mp3" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment