Extract progress status from FFmpeg
npm install @dropb/ffmpeg-progress
see examples
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;
}
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(data: string, duration?: number): FfmpegProgressEvent