Skip to main content

MP3 song normalizer

Project description


MP3 song normalizer

GitHub version PyPI version Documentation Status Build Status codecov Coverage Status

Are you tired of quiet songs on Youtube with long silence before or after song?

Trimmer does the following things:

  1. Downloads songs from given Youtube URL (thanks to youtube-dl)
  2. Trims down silence at the beginning & at the end of song (thanks to pydub)
  3. Normalizes volume level, applies fade-in & fade-out (thanks to pydub)
  4. Adds MP3 ID3 tags - both ID3v1 & ID3v2 (thanks to eyed3)
  5. Creates mp3 file named: Artist - Title.mp3


Downloading MP3

Create trimmed, normalized & tagged mp3 from Youtube URL:


Usage example

Editing MP3

trimmer "unknown001.mp3"

From this:
Usage example
trimmer does that:
Mike Oldfield - Tubular Bells Part I.mp3
Usage example

You can also trim song manually using --trim-start and --trim-end (e.g. for cutting long applause at the end of song).


$ trimmer --help
trimmer v0.1.5 (nuclear v1.0.10) - MP3 song normalizer


   SOURCE - song source (youtube URL or MP3 file)

  --version                   - Print version information and exit
  -h, --help [SUBCOMMANDS...] - Display this help and exit
  --artist ARTIST             - song artist
  --title TITLE               - song title
  --trim-start TRIM_START     - trim given seconds at the beginning
  --trim-end TRIM_END         - trim given seconds at the end
  --no-normalize              - skip normalizing volume level
  --no-trim                   - skip trimming silence at the edges of song
  --no-fade                   - skip applying fade-in & fade-out


pip3 install trimmer


  • Python 3.6 (or newer) with pip

For Linux make sure that required libs are installed: apt install ffmpeg libavcodec-extra

For Windows you might need to put ffmpeg binaries to PATH.


Keep up-to-date frequently changing dependencies (due to Youtube API changes):

pip3 install --upgrade --upgrade-strategy eager trimmer

Install locally in develop mode

. venv/bin/activate
python develop

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for trimmer, version 0.1.11
Filename, size File type Python version Upload date Hashes
Filename, size trimmer-0.1.11-py3-none-any.whl (13.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size trimmer-0.1.11.tar.gz (9.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page