@opensubtitles/video-metadata-extractor
Version:
A comprehensive NPM package for video metadata extraction and subtitle processing using FFmpeg WASM. Supports metadata extraction, individual subtitle extraction, batch subtitle extraction with ZIP downloads, and memory-safe processing of files of any siz
22 lines • 737 B
TypeScript
/**
* FFmpeg WASM Cache Utility
* Caches FFmpeg core files in IndexedDB to avoid re-downloading on page reload
*/
declare class FFmpegCache {
private db;
init(): Promise<void>;
get(url: string): Promise<ArrayBuffer | null>;
set(url: string, data: ArrayBuffer): Promise<void>;
remove(url: string): Promise<void>;
clear(): Promise<void>;
getCacheSize(): Promise<number>;
}
export declare function cachedToBlobURL(url: string, mimeType: string): Promise<string>;
export declare function getCacheInfo(): Promise<{
size: number;
sizeFormatted: string;
files: number;
}>;
export declare function clearFFmpegCache(): Promise<void>;
export default FFmpegCache;
//# sourceMappingURL=ffmpegCache.d.ts.map