ffmpeg-batch-converter
v0.1.0
Published
Node.js script for batch video conversions with ffmpeg
Downloads
3
Readme
node-ffmpeg-batch-converter
Node.js script for batch video conversions with ffmpeg.
Installation
Install
ffmpeg
first:Ubuntu
$ sudo apt install ffmpeg
Install this package globally:
$ npm install -g ffmpeg-batch-converter
Convert video files:
$ ffmpeg-batch-converter --input /path/to/input/directory --input-extension avi --output-extension mkv
Examples
Convert
avi
files tomkv
:$ ffmpeg-batch-converter --input /path/to/input/directory --input-extension avi --output-extension mkv
Convert files recursively:
$ ffmpeg-batch-converter --input /path/to/input/directory --input-extension avi --output-extension mkv --recursive
Convert files to another output directory:
$ ffmpeg-batch-converter --input /path/to/input/directory --input-extension avi --output-extension mkv --output /path/to/output/directory
Convert files naming output files by their modification date:
$ ffmpeg-batch-converter --input /path/to/input/directory --input-extension avi --output-extension mkv --output-naming date
Convert few input directories at once:
$ ffmpeg-batch-converter --input /path/to/input/directory1 /path/to/input/directory2 --input-extension avi --output-extension mkv
Provide additional ffmpeg options.
$ ffmpeg-batch-converter --input /path/to/input/directory --input-extension avi --output-extension mkv --ffmpeg-args="-r 25 -b:v 6000k -b:a 192k"
Display conversions without actually doing them:
$ ffmpeg-batch-converter --input /path/to/input/directory --input-extension avi --output-extension mkv --dry
License
MIT