hls-transcoder
Version:
A tool to easily convert videos into HLS format
35 lines (32 loc) • 697 B
text/typescript
export interface HLSTranscoderOptions {
allowUpscaling?: boolean
ffmpegPath?: string
ffprobePath?: string
renditions?: Array<RenditionOptions>
}
// Non-optional for _options property
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
}