Skip to content

Instantly share code, notes, and snippets.

@evadecker
Created November 23, 2018 21:11
Show Gist options
  • Save evadecker/1af19845d957e594b73b30cc9a01c401 to your computer and use it in GitHub Desktop.
Save evadecker/1af19845d957e594b73b30cc9a01c401 to your computer and use it in GitHub Desktop.
Lower bitrate of an mp3 file
# Command to lower the bitrate of an mp3 using FFMPEG
# Options:
# Low: 96k
# Medium (Radio quality): 128k
# Medium-High (CD quality): 192k
# High: 320k
# "Converting an MP3 to a higher bit rate does not add any more
# audio information to the file, so the sound quality does not
# increase. Converting an MP3 to a lower bit rate reduces its
# file size, but may also introduce audio artifacts, as the
# encoder is compressing an already compressed file."
# —https://itstillworks.com/12582454/what-is-a-normal-mp3-bit-rate
ffmpeg -i input.mp3 -codec:a libmp3lame -b:a 128k output.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment