Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this be used to RMS normalize across multiple files? #43

Closed
markreg opened this issue Nov 23, 2017 · 10 comments
Closed

Can this be used to RMS normalize across multiple files? #43

markreg opened this issue Nov 23, 2017 · 10 comments

Comments

@markreg
Copy link

markreg commented Nov 23, 2017

I have a folder of music from different albums all at varying volumes. Is it possible to use ffmpeg-normalize to analyze the RMS volume in all files and increase/alter the volume accordingly?

Thanks!

@slhck
Copy link
Owner

slhck commented Nov 23, 2017

Yes, that is basically default behavior:

ffmpeg-normalize --verbose --dir --level -23 --acodec aac --extra-options "-b:a 192k" *.m4a

This will write AAC-encoded files to a folder called normalized. You may want to adjust the level depending on your preferences.

If you have music as MP3s, you may want to use MP3Gain instead. It does not re-encode the files and instead sets the normalization factor in the files' metadata.

@markreg markreg closed this as completed Nov 23, 2017
@markreg markreg reopened this Nov 23, 2017
@markreg
Copy link
Author

markreg commented Nov 23, 2017

Ok, I'll try that and report back.

Since I'm outputting the music from a raspberry pi over HDMI to a home theater a/v receiver (which I presume has some kind of amplifier) what is the appropriate volume to normalize the files to relative to the volume of the receiver?

For example, if -45dB on my receiver is approximately the volume at which I can reasonably hear the non-normalized music collection, what level would work best with ffmpeg-normalize? Thanks.

@michaelcrossland
Copy link

michaelcrossland commented Nov 23, 2017 via email

@markreg
Copy link
Author

markreg commented Nov 24, 2017

I'm having trouble with an error:

�[1;31mERROR�[1;0m: file *.mp3 does not exist, will skip

But it works when specifying one file after another on the same command.

@michaelcrossland
Copy link

michaelcrossland commented Nov 25, 2017 via email

@slhck
Copy link
Owner

slhck commented Nov 25, 2017

Something like:

for %%A IN (*.mp3) DO ffmpeg-normalize … "%%A"

@michaelcrossland
Copy link

michaelcrossland commented Nov 25, 2017 via email

@markreg
Copy link
Author

markreg commented Dec 11, 2017

Ok, the for loop worked well.

One last question, is there a way for ffmpeg-normalize to simply copy the file if no normalization needs to occur (rather than skipping the file)? Otherwise I need to copy the files which were not normalized from the original directory which may be forgotten. Thanks.

@michaelcrossland
Copy link

michaelcrossland commented Dec 11, 2017 via email

@slhck
Copy link
Owner

slhck commented Dec 11, 2017

is there a way for ffmpeg-normalize to simply copy the file if no normalization needs to occur

No, but this would be a nice feature addition. I'll put it on the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants