@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
35 lines • 1.23 kB
TypeScript
export declare const VIDEO_EXTENSIONS: string[];
/**
* Check if a file is a supported video file based on extension only
* Only accepts formats that are explicitly supported by the metadata extractor
*/
export declare const isVideoFile: (file: File) => boolean;
/**
* Recursively scan a directory entry and extract all video files
*/
export declare const scanDirectory: (entry: FileSystemDirectoryEntry) => Promise<File[]>;
/**
* Get File object from FileSystemFileEntry
*/
export declare const getFileFromEntry: (entry: FileSystemFileEntry) => Promise<File>;
/**
* Process dropped items (files and directories)
*/
export declare const processDroppedItems: (items: DataTransferItemList) => Promise<File[]>;
/**
* Process selected files from input element
*/
export declare const processSelectedFiles: (fileList: FileList) => File[];
/**
* Format file size for display
*/
export declare const formatFileSize: (bytes: number) => string;
/**
* Extract directory path from file for grouping
*/
export declare const getDirectoryPath: (file: File) => string;
/**
* Group files by directory
*/
export declare const groupFilesByDirectory: (files: File[]) => Map<string, File[]>;
//# sourceMappingURL=fileUtils.d.ts.map