Christian Prior-Mamulyan
combine-wav-files-to-flac:
rm -f _combined.flac
rm mylist.txt
find . -iname "2*wav" -printf "file %p\n" | sort -n > mylist.txt
ffmpeg -hide_banner -f concat -safe 0 -i mylist.txt -c:a flac -af "
silenceremove=start_periods=1:start_duration=0:start_threshold=-50dB:
stop_periods=-1:stop_duration=2:stop_threshold=-40dB,
loudnorm=i=-14.0" -ar 48000 _combined.flac
The documentation for the filters can be found at
https://ffmpeg.org/ffmpeg-filters.html#silenceremove and
https://ffmpeg.org/ffmpeg-filters.html#silenceremove
ffmpeg allows to filter silent parts based on a bunch of threshold parameters, and also does loudness normalization.