Transcode audio files to mp3 format. Simple as that. Works with a single file or a directory.
You must have ffmpeg installed on your machine.
Brew is the simplest way to install ffmpeg
brew install ffmpeg
See the guide here
npm install -g mp3ify
mp3ify <file | directory> --<options>
You may pass either a file or directory to the program.
Conversion will be attempted on any files detected with an
audio/* mime type.
Files will be saved in the calling
directory and will have the same name as the original file with
--bitrate- the bitrate of the generated mp3 file in kb/s. default: 320
--quiet- suppress console output during encoding, exit with code 0 even if there is an exception. default: false
For example, say there is a directory named
wav-files on your home path full of .wavs that you need to convert to mp3:
mp3ify ~/wav-files --bitrate 320
That will convert any file that is detected to have a mime type of
The code is written in ES6 and compiled down to ES5 using webpack. To compile all project files into
bin/index.js, run the following:
npm test npm run build
I will gladly accept contributions to this project. Fork the repo and issue a pull request if you'd like to see new features or fix bugs.