get-tracks-data
Version:
Get video / audio / subtitles tracks from MKV and MP4 files.
20 lines (17 loc) • 405 B
TypeScript
declare enum TrackType {
Video = "video",
Audio = "audio",
Text = "text"
}
type Track = {
id: number | null;
type: TrackType | null;
lang: string | null;
label: string | null;
codec: string | null;
};
type Options = {
maxBytesLimit?: number;
};
declare const getTracksData: (input: string, options?: Options) => Promise<Track[]>;
export { getTracksData as default };