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 inputOptions?: string[]
16 videoFilters?: string[]
17 outputOptions?: string[]
22 export interface EncoderProfile <T> {
23 [ profile: string ]: T
28 export type AvailableEncoders = {
31 [ encoder: string ]: EncoderProfile<EncoderOptionsBuilder>
35 [ encoder: string ]: EncoderProfile<EncoderOptionsBuilder>