UNPKG

@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

15 lines 762 B
import { VideoMetadata, ProgressState, ErrorState } from '../types/index.js'; export declare const useVideoMetadata: () => { metadata: VideoMetadata | null; progress: ProgressState; error: ErrorState; handleFileSelect: (file: File) => Promise<void>; hideError: () => void; hideProgress: () => void; showProgress: (text: string, progressPercent?: number) => void; isLoaded: boolean; extractSubtitle: (file: File, streamIndex: number, language?: string, codecName?: string, isForced?: boolean) => Promise<void>; extractStream: (file: File, streamIndex: number, streamType: string, codecName?: string) => Promise<void>; extractAllSubtitles: (file: File) => Promise<void>; }; //# sourceMappingURL=useVideoMetadata.d.ts.map