A simple Python script to recursively convert FLAC files to MP3 format while preserving the original folder structure.
- Recursively searches for FLAC files in the specified source directory.
- Converts FLAC files to MP3 using
ffmpeg
with high-quality settings. - Preserves the original directory structure in the target directory.
- Skips files that have already been converted to avoid duplication.
- Uses the user's home directory dynamically for compatibility across different systems.
- Python 3.10 or later
ffmpeg
installed on your system
-
Clone the repository:
git clone https://github.com/zkm/flac2mp3.git cd flac2mp3
-
Ensure
ffmpeg
is installed. You can install it on Arch Linux with:sudo pacman -S ffmpeg
- Edit the script if needed to customize the source and target directories.
- Run the script:
python flac2mp3.py
Feel free to open issues or submit pull requests to improve the script.
This project is licensed under the MIT LICENSE.