UNPKG

yuv-rx

Version:

Reading videos as Rx Observables of decoded frames

18 lines (17 loc) 548 B
import { YuvFrame } from './frame'; import { Observable } from 'rxjs'; import { FfmpegLogHandler } from './log-handler'; export type YuvWriterOptions = { ffmpeg?: string; ffmpegLogHandler?: FfmpegLogHandler; }; export type Y4MOutputOptions = { timescale?: number; frameDuration?: number; overwrite?: boolean; }; export declare class YuvWriter { private readonly options; constructor(options?: YuvWriterOptions); write(frames: Observable<YuvFrame>, outputFile: string, options?: Y4MOutputOptions): Promise<number>; }