GithubHelp home page GithubHelp logo

joejoetv / music-library-conversion-script Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 52 KB

A Python Script that converts a music library consisting of FLAC and MP3 files to only MP3 Files and can also copy lyrics and scale down and convert embedded covers

License: GNU General Public License v3.0

Python 100.00%
mp3-files flac python-script python python3 music music-library conversion cover

music-library-conversion-script's Introduction

Music-Library-Conversion-Script

A Python Script that converts a music library consisting of FLAC and MP3 files to only MP3 Files. It can also copy LRC files and also convert and scale down embedded covers.

Features

  • Conversion of Music Library consisting of FLAC and MP3 files into a new one that only consists of MP3 files for portable use.
  • Can copy corresponding LRC-files
  • Can convert embedded covers to JPEG for smaller file sizes
  • Can scale down embedded covers for smaller file sizes while keeping aspect ratio
  • Generates extensive log by default
  • Colored terminal output on supported environments for better readablity

Planned Features

  • Multiple conversion/copy processes simultaineously
  • Automatic LRC-file grabbing

Requirements

  • Python 3
  • ffmpeg

Python Libraries

  • python_reszize_image
  • Pillow
  • colorama
  • blessings

Usage

  1. Clone the Repository by using the "Download ZIP" button ur using git: git clone https://github.com/JoeJoeTV/Music-Library-Conversion-Script.
  2. Change into the cloned directory: cd Music-Library-Conversion-Script
  3. Install the required python packages using pip: pip install -r requirements.txt or pip3 install -r requirements.txt
  4. Install ffmpeg: - On Linux you can install ffmpeg using your preferred package manager (see https://www.ffmpeg.org/download.html#build-linux) - On Windows, you can download builds from https://www.ffmpeg.org/download.html#build-windows - On Mac, you can download builds from https://www.ffmpeg.org/download.html#build-mac
  5. Execute the script using python 3: python3 convert-music-library.py ...
USAGE: convert-music-library.py <Source Directory> <Destination Directory> [OPTIONS]

Arguments:
   <Source Path>                       The path where the original audio files, which are to be converted, are stored
   <Destination Path>                  The path where the converted files should be stored

   -h          --help                  Displays this Help Message and exits
   -l          --copy-lyrics           Also copy matching Lyric-Files(LRC)
   -s <size>   --scale-cover=<size>    Scales the cover to fit in a box with with and height of <size>
   -c          --convert-cover         Converts the cover to the JPEG format
   -n          --no-log-file           Disables the normally generated LOG-file

Bugs and Contributions

If you find any bugs or issues with the script, please report them here on the "Issues" tab.

music-library-conversion-script's People

Contributors

joejoetv avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.