Normalize .ogg audio files with the command line [duplicate]
I'm trying to normalize (and or compress) around 100 .ogg files which have audio level really too low.
I know that by hand I can use Audacity ... but that will be too much clicks! Instead I was looking for a tool which can be used in a small script (or with --recursive).
Just tried to look in man oggenc
, man ffmpeg
, with no success yet...
Thanks!
Solution 1:
Finally, I've found the package normalize-audio
which provides the tool normalize-ogg
.
So I just had to run :
for audio_file in *.ogg; do
normalize-ogg $audio_file;
done
Solution 2:
Vorbisgain will do the trick, the pendent of mp3gain
vorbisgain *.ogg