@monolithia/media-converter-cli
v1.0.0
Published
CLI tool to convert MP4 files to MP3 — individually or in bulk
Maintainers
Readme
media-converter-cli
A fast, zero-config CLI tool to convert MP4 files to MP3 — individually or in bulk.
Bundles ffmpeg via ffmpeg-static, so no separate ffmpeg installation is needed.
Installation
npm install -g @monolithia/media-converter-cliUsage
Convert a single file
media-convert recording.mp4Convert a single file with options
media-convert recording.mp4 --output ./audio --bitrate 320kBulk convert all MP4s in a folder
media-convert --folder ./meetingsBulk convert with a custom output folder
media-convert --folder ./meetings --output ./audioRecursive bulk conversion (includes subfolders)
media-convert --folder ./meetings --recursiveOverwrite existing MP3 files
media-convert --folder ./meetings --overwriteOptions
| Option | Description | Default |
|-------------------------|------------------------------------------------------|----------|
| -f, --folder <path> | Folder containing MP4 files to convert in bulk | |
| -o, --output <dir> | Output directory for converted MP3 files | same as input |
| -b, --bitrate <rate> | Audio bitrate: 128k, 192k, 320k | 192k |
| -r, --recursive | Search for MP4 files recursively inside subfolders | false |
| --overwrite | Overwrite existing MP3 files instead of skipping | false |
| -V, --version | Output the version number | |
| -h, --help | Display help | |
Requirements
- Node.js >= 14.0.0
- No system ffmpeg required — bundled automatically
License
MIT
