ffmpeg-bar
v1.1.2
Published
PROGRESS BAR CLI FOR FFMPEG NODEJS
Downloads
9
Readme
PROGRESS BAR CLI FOR FFMPEG NODEJS
Installation
$ npm i ffmpeg-bar
Usage
import { FfmpegProgressBar } from 'ffmpeg-bar';
const bar = new FfmpegProgressBar(yourInputFilePath)
await bar.exec(command);
//command: your args ffmpeg command
//ex: ffmpeg -i input.mp4 -vf scale=200:300 output.mp4 -> ['-i', 'input.mp4', '-vf', 'scale=200:300', 'output.mp4']
import { FfmpegProgressBar } from 'ffmpeg-bar';
const bar = new FfmpegProgressBar('input.mp4')
const command = [
'-i',
'input.mp4',
'-vf',
`scale=200:300`,
'output.mp4',
];
await bar.exec(command);
Configuration
Comming soon