@dropb/ffmpeg-progress
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

ffmpeg-progress

npm CI

Extract progress status from FFmpeg

Install

npm install  @dropb/ffmpeg-progress

Usage

see examples

API

interface FfmpegProgressEvent {
  frame: number;
  fps: number;
  size: number;
  time: string;
  bitrate: number;
  speed: number;
  /**
   * Time (milliseconds)
   */
  time_ms: number;
  /**
   * ETA (milliseconds)
   */
  remaining?: number;
  /**
   * Progress percentage
   */
  percentage?: number;
}

FfmpegProgress Pipe

new FfmpegProgress(duration?: number)

Creates an instance of FfmpegProgress Pipe. (optional) duration - override video duration (milliseconds). Default - auto detect.

public properties:

  • exitMessage - error message
  • duration

parseProgress

parseProgress(data: string, duration?: number): FfmpegProgressEvent

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @dropb/ffmpeg-progress

Weekly Downloads

30

Version

2.0.0

License

MIT

Unpacked Size

9.21 kB

Total Files

7

Last publish

Collaborators

  • q_h