Socket
Book a DemoInstallSign in
Socket

@dropb/ffmpeg-progress

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dropb/ffmpeg-progress

Extract progress status from FFmpeg

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 22 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts