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