https://github.com/simison/mp3ify
Convert directory of audio files to mp3 format.
https://github.com/simison/mp3ify
Last synced: about 1 year ago
JSON representation
Convert directory of audio files to mp3 format.
- Host: GitHub
- URL: https://github.com/simison/mp3ify
- Owner: simison
- Created: 2017-10-18T06:59:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-18T07:05:43.000Z (over 8 years ago)
- Last Synced: 2025-04-11T00:58:14.694Z (about 1 year ago)
- Language: JavaScript
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mp3ify
Transcode audio files to mp3 format. Simple as that. Works with a single file or a directory.
## Prerequisites
You must have
ffmpeg
installed on your machine.
### Mac OS X
Brew is the simplest way to install ffmpeg
```shell
brew install ffmpeg
```
### Windows/Ubuntu
See the guide
here
## Installation
```shell
npm install -g mp3ify
```
## Usage
```shell
mp3ify --
```
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 `.mp3` appended.
#### options
* `--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:
```shell
mp3ify ~/wav-files --bitrate 320
```
That will convert any file that is detected to have a mime type of `audio/*`.
## Build
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:
```shell
npm test
npm run build
```
## Contributing
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.