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
15 outputOptions: string[]
20 export interface EncoderProfile <T> {
21 [ profile: string ]: T
26 export type AvailableEncoders = {
29 [ encoder: string ]: EncoderProfile<EncoderOptionsBuilder>
33 [ encoder: string ]: EncoderProfile<EncoderOptionsBuilder>