Re: normalize audio in mp4s
On Sat, Mar 07, 2020 at 03:05:27AM +0100, Emanuel Berg wrote:
> get-mp3-normalized () {
> local -a files
> files=($@)
>
> local dB=-10 # db/LUFS
>
> for f in $files; do
> ffmpeg-normalize -f -c:a libmp3lame -t $dB -ext mp3 $f
> done
get-mp3-normalized() {
local dB=-10 # db/LUFS
local f
for f; do
ffmpeg-normalize -f -c:a libmp3lame -t "$dB" -ext mp3 "$f"
done
}
There's no need to copy the positional parameters to an array, but
there *is* a need to quote correctly. Otherwise, all of the filenames
with spaces in them are going to fail.
Reply to: