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.

Installation

If you'd like to preview the script before downloading the zip file, you can do so here.

  1. Download the zip file and extract it.
  2. In the convert_music directory, 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

  1. Move your .flac files and cover image into the convert_music directory.
  2. Open terminal in the convert_music directory and run work.sh.
  3. Fill out the details as asked by the prompts.
  4. 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.