It is recursive as well, which makes it great for doing entire music collections or files in many subfolders. This script calculates the difference between the current db level and -12db, then applies a gain adjustment to put the gain at exactly -12db, which is what I've found works the best for me. Normalize-ogg -mp3 -bitrate "$3" -g "$gain_difference""db" -v "$line" Gain_difference=$(echo "$orig_gain"-12 | bc)Įcho "Gain Difference will be: $gain_difference""db" I've modified the script to use normalize-mp3 here so you can use it if you want: #!/bin/bashįind "$1" -iname "*.""$2" > $HOME/file_listĬat $HOME/file_list | while read line do Normalized file: 16._This_Protector.mp3: Audio file with ID3 version 2.3.0, contains: MPEG ADTS, layer III, v1, 192 kbps, 44.1 kHz, JntStereo Original file: 16._This_Protector.mp3: Audio file with ID3 version 2.3.0, contains: It fills in any missing codec data as well. Just create a file (name it whatever you want, I called mine db_adjust_mp3), chmod +x, and stick it in your ~/bin folder. It works for mp3, flac, and ogg input files, possibly others but definitely not wav. You can view it here: Normalize-audio can't find mp3 decoderīasically my solution was the script in post #8. I was looking for exactly the same thing (only for ogg files) and started a thread at Crunchbang Forum. Referenceįor the sake of it, I'll throw my 2 cents in. Since only calculate/change replaygain value, is also faster: With an average PC (Intel i7-6500U, 8GB RAM) the rate was ~20 files/minute.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |