Giter VIP home page Giter VIP logo

Comments (3)

slhck avatar slhck commented on July 17, 2024

Use:

ffmpeg-normalize original.mp3 -f -c:a libmp3lame -b:a 320k -nt peak -t -1 --output normalized.mp3

Note that when performing this kind of modification, the audio stream has to be re-encoded. In the above case, it will be re-encoded to MP3 using the libmp3lamer encoder at 320 kBit/s. The bitrate is chosen in order to preserve the quality of the content as much as possible, because re-encoding causes generation loss.

I don't know your exact use case, but you may want to look at MP3Gain. It does not re-encode the files and instead targets a particular volume using metadata only.

from ffmpeg-normalize.

iamdannywyatt avatar iamdannywyatt commented on July 17, 2024

Use:

ffmpeg-normalize original.mp3 -f -c:a libmp3lame -b:a 320k -nt peak -t -1 --output normalized.mp3

Note that when performing this kind of modification, the audio stream has to be re-encoded. In the above case, it will be re-encoded to MP3 using the libmp3lamer encoder at 320 kBit/s. The bitrate is chosen in order to preserve the quality of the content as much as possible, because re-encoding causes generation loss.

I don't know your exact use case, but you may want to look at MP3Gain. It does not re-encode the files and instead targets a particular volume using metadata only.

Thank you so much for the script! I checked the normalized version and whatever quality was lost, it's not noticeable at all. This is also more for personal use and I have all the WAV versions anyway if I need to have the full quality audio.

I looked at MP3Gain, but it seems to be Windows only and I have a Mac.

I saw that there's some app version (http://projects.sappharad.com/mp3gain/), but 1) it doesn't have the peak normalize feature. It seems to be just an app to add or remove gain. And 2) I need something that works inside Keyboard Maestro, because I will be creating macros and I'm using its Shell Script actions.

Again, I appreciate your time and help! :)

from ffmpeg-normalize.

slhck avatar slhck commented on July 17, 2024

Understood, in that case the above command is probably all you need! Glad to have been able to help.

from ffmpeg-normalize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.