yuv-rx
Version:
Reading videos as Rx Observables of decoded frames
17 lines (16 loc) • 563 B
TypeScript
import { Y4MStreamOptions } from './reader';
import { Observable } from 'rxjs';
import { YuvFrame } from './frame';
export type YuvParserOptions = Y4MStreamOptions & {
ffmpeg?: string;
};
export declare class YuvParser {
private readonly options;
constructor(options?: YuvParserOptions);
private parseHeader;
private nextChunk;
private nextState;
readCustom(ffmpegArgs: string[], options?: Y4MStreamOptions): Observable<YuvFrame>;
read(path: string, options?: Y4MStreamOptions): Observable<YuvFrame>;
private readFromStream;
}