Skip to content

chabuuuu/ffmpeg-progress-bar

Repository files navigation

PROGRESS BAR CLI FOR FFMPEG NODEJS

A progress bar cli for ffmpeg

## Contents
  1. Installation
  2. Usage
  3. Configuration
  4. Requirements
  5. Author

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

Requirements

Author

chabuuuu Npm package

About

A progress bar for FFMPEG Progress in NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published