hls-transcoder
Version:
A tool to easily convert videos into HLS format
32 lines (31 loc) • 726 B
TypeScript
export interface HLSTranscoderOptions {
allowUpscaling?: boolean;
ffmpegPath?: string;
ffprobePath?: string;
renditions?: Array<RenditionOptions>;
}
export interface _HLSTranscoderOptions {
allowUpscaling: boolean;
ffmpegPath: string;
ffprobePath: string;
renditions: Array<RenditionOptions>;
}
export interface RenditionOptions {
width: number;
height: number;
profile: string;
hlsTime: number;
bv: string;
maxrate: string;
bufsize: string;
ba: string;
ts_title: string;
master_title: string;
}
export interface VideoMetadata {
codec_name?: string;
duration?: number;
height?: number;
width?: number;
sample_aspect_ratio?: string;
}