audio conversion script
Convert your audio files to different formats
Learn how to use a bash script to convert your audio files to the perfect versions of FLAC and both widely accepted MP3 formats
This project was created to convert 24bit FLAC files to 16bit FLAC, MP3 320, and MP3 V0 files. If you only have 16bit FLAC files, it'll skip the first step and convert them into MP3 320 and MP3 V0 instead.
Unsure how to check the quality of your audio files? Review them with spek!
Dependencies
This project was made with Linux in mind, but macOS users may have success. While SoX and spsox are Linux exclusive, versions are available on Homebrew.
- ffmpeg - Installed on most Linux distributions.
- LAME - Installed on most Linux distributions.
- FLAC - Installed on most Linux distributions.
- SoX - Installed on most Linux distributions.
- Perl - Installed on most Linux distributions.
- torf-cli - Follow the pipx installation instructions on GitHub.
Installation
If you'd like to preview the script before downloading the zip file, you can do so here.
- Download the zip file and extract it.
- In the
convert_musicdirectory, run the below command to make the required files executable.
$ chmod +x FLAC2MP3/flac2mp3.pl && chmod +x spsox/spsox && chmod +x work.sh
This script uses to convert the audio files, which comes packaged in the zip file.
Usage
- Move your .flac files and cover image into the
convert_musicdirectory. - Open terminal in the
convert_musicdirectory and runwork.sh. - Fill out the details as asked by the prompts.
- Wait for the script to finish.
Video Installation Guide
Coming soon!
Credits
Outside the dependencies, this project also uses spsox to generate the spectrals, and FLAC2MP3 to convert the FLAC files to MP3. Please check out their projects and show them some love.