A Python CLI tool to convert FLAC to MP3
Project description
flac2mp3
Python-based CLI audio format converter specifically designed for FLAC to MP3 conversions.
Install Package
pip install flac2mp3-cli
FLAC to MP3 Converter
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:
python main.py <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>
:
python main.py python main.py /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>
:
python main.py /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 barsconcurrent.futures
for multi-threadingos
andshutil
for file and directory operationssys
andtime
for system operations
License
This program is released under the MIT License. See the LICENSE
file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for flac2mp3_cli-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ae79f1990a5e28adb04e31586d1c6cf07fae76565d9e10da9bb17f79bc46a4a |
|
MD5 | 9267f8ea843f2ba59d219b7bfd2548d4 |
|
BLAKE2b-256 | 6cdc6f166275f72820e91fe95acfc6d8816fb0fabe2be91af52ef069163904f1 |