@viguza/homebridge-ezviz
Version:
A short description about what your plugin does.
18 lines (17 loc) • 1.03 kB
TypeScript
import { Logging, StreamRequestCallback } from 'homebridge';
import { StreamingDelegate } from './streaming-delegate.js';
import { Readable, Writable } from 'stream';
export declare function doesFfmpegSupportCodec(codec: string, ffmpegPath: string): Promise<boolean>;
export declare function getCodecsOutput(ffmpegPath: string): Promise<string>;
export declare function getDefaultEncoder(ffmpegPath: string): Promise<string>;
export declare function isFfmpegInstalled(ffmpegPath: string): Promise<boolean>;
export declare function getSnapshot(url: string, customFfmpeg?: string): Promise<Buffer>;
export declare class FfmpegProcess {
private ff;
private killTimeout?;
private startTimeout?;
constructor(title: string, command: Array<string>, log: Logging, callback: StreamRequestCallback | undefined, delegate: StreamingDelegate, sessionId: string, ffmpegDebugOutput: boolean, customFfmpeg?: string);
stop(): void;
getStdin(): Writable | null | undefined;
getStdout(): Readable | null | undefined;
}