1 import { VideoResolution } from './video-resolution.enum'
3 // Types used by plugins and ffmpeg-utils
5 export type EncoderOptionsBuilder = (params: {
7 resolution: VideoResolution
10 }) => Promise<EncoderOptions> | EncoderOptions
12 export interface EncoderOptions {
13 copy?: boolean // Copy stream? Default to false
19 inputOptions?: string[]
20 outputOptions?: string[]
25 export interface EncoderProfile <T> {
26 [ profile: string ]: T
31 export type AvailableEncoders = {
34 [ encoder: string ]: EncoderProfile<EncoderOptionsBuilder>
38 [ encoder: string ]: EncoderProfile<EncoderOptionsBuilder>