Coder Social home page Coder Social logo

flac2mp3's Introduction

flac2mp3

Python-based CLI audio format converter specifically designed for FLAC to MP3 conversions.

Install Package

pip install flac2mp3-cli

Description

This program is a multi-threaded FLAC to MP3 converter. It can convert a single FLAC file, or it can convert multiple FLAC files in a directory. Non-FLAC files in the directory are copied without conversion. The metadata of the original FLAC files is maintained in the converted MP3 files.

Usage

To run the program, use the following command:

flac2mp3 <input_path> [<thread_count>] [<output_path>]

Where:

  • <input_path> is the path to the FLAC file or directory of FLAC files to convert.
  • <thread_count> (optional) is the number of threads to use for conversion. If not provided, the program will use a default value.
  • <output_path> (optional) is the path to the directory where the converted MP3 files (and copied non-FLAC files) should be saved. If not provided, the program will save the files in a default directory.

Converting a Single File

To convert a single FLAC file, provide the path to the file as the <input_path>:

flac2mp3 /path/to/your/file.flac

Converting a Directory

To convert all FLAC files in a directory, provide the path to the directory as the <input_path>:

flac2mp3 /path/to/your/directory

All FLAC files in the directory (and its subdirectories) will be converted to MP3.

Dependencies

This program uses the following Python packages:

  • alive_progress for progress bars
  • concurrent.futures for multi-threading
  • os and shutil for file and directory operations
  • sys and time for system operations

Build Yourself

If you want to build this project yourself, follow these steps:

  1. Clone the repository

    Clone the repository to your local machine:

    git clone https://github.com/yourusername/flac-to-mp3-converter.git
  2. Install the project

    Navigate into the project directory and install the project along with its dependencies:

    cd flac-to-mp3-converter
    pip install

License

This program is released under the MIT License. See the LICENSE file for more details.

About

This project was born out of a personal need. I needed a tool that could convert my extensive library of FLAC files to MP3 format all at once. This would allow me to enjoy my music collection on devices that don't support FLAC.

This is one of my first projects and I'm still learning, so feel free to correct me or suggest improvements, raise issues or contribute to the project!

flac2mp3's People

Contributors

rimaout 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.