Skip to main content

Automatic song processing tool

Project description

Trimmer

Songs downloader & normalizer for automatic MP3 processing, which:

  1. Downloads mp3 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 ID3v2 tags (thanks to eyed3)
  5. Creates mp3 file named: Artist - Title.mp3

Usage

Downloading MP3 from YouTube URL

Create trimmed, normalized, tagged mp3:

trimmer url https://www.youtube.com/watch?v=dQw4w9WgXcQ

Editing MP3

Trim down manually (e.g. long applause at the end of song)

trimmer mp3 "Rick Astley - Never Gonna Give You Up.mp3" --trim-end 30

Help

trimmer --help

Installation

pip3 install trimmer

Requirements:

  • Python 3.6 (or newer) with pip

Upgrading

pip3 install --upgrade trimmer

Install locally in develop mode

./setup_venv.sh
. venv/bin/activate
python setup.py develop

TODO

  • full readme/docs, sublog screen
  • extracting artist - title from youtube-dl title
  • idempotent trimming (not trimming fade-outs again)
  • fix sublog real traceback for wrapped exception

Project details


Download files

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

Source Distribution

trimmer-0.1.2.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

trimmer-0.1.2-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page