UNPKG

rife-fps

Version:

Video framerate interlopation with rife

40 lines (39 loc) 1.94 kB
export interface RifeOptions { multiplier?: number; ffmpegPath?: string; sdColorSpace?: boolean; framerate?: number; quality?: number; rename?: string; rifePath?: string; threads?: number; speed?: number; reverse?: boolean; pitch?: boolean; noResume?: boolean; pngFrames?: boolean; transparentColor?: string; parallelFrames?: number; rifeModel?: string; } export default class Rife { static chmod777: (rifePath?: string) => void; private static parseFilename; static parseFramerate: (file: string, ffmpegPath?: string) => Promise<number>; static parseDuration: (file: string, ffmpegPath?: string) => Promise<any>; static parseResolution: (file: string, ffmpegPath?: string) => Promise<{ width: number; height: number; }>; private static splitArray; static interpolateFrame: (input1: string, input2: string, outputPath: string, options?: RifeOptions) => Promise<string>; static interpolateDirectorySingle: (inputDir: string, outputDir: string, options?: RifeOptions, progress?: (percent: number) => void | boolean) => Promise<boolean>; static interpolateBucket: (originalDir: string, inputDir: string, outputDir: string, options?: RifeOptions, progress?: (percent: number) => void | boolean) => Promise<boolean>; static interpolateDirectory: (inputDir: string, outputDir: string, options?: RifeOptions, progress?: (percent: number) => void | boolean) => Promise<boolean>; private static parseTransparentColor; private static encodeGIF; static interpolateGIF: (input: string, output?: string, options?: RifeOptions, progress?: (percent: number) => void | boolean) => Promise<string>; static interpolateVideo: (input: string, output?: string, options?: RifeOptions, progress?: (percent: number) => void | boolean) => Promise<string>; private static awaitStream; private static removeDirectory; }