From ad5db1044c8599eaaaa2a578b350777ae996b068 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 18 Nov 2021 14:35:08 +0100 Subject: Add ability to run transcoding jobs --- shared/models/videos/video-transcoding.model.ts | 64 ------------------------- 1 file changed, 64 deletions(-) delete mode 100644 shared/models/videos/video-transcoding.model.ts (limited to 'shared/models/videos/video-transcoding.model.ts') diff --git a/shared/models/videos/video-transcoding.model.ts b/shared/models/videos/video-transcoding.model.ts deleted file mode 100644 index 83b8e98a0..000000000 --- a/shared/models/videos/video-transcoding.model.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { VideoResolution } from './video-resolution.enum' - -// Types used by plugins and ffmpeg-utils - -export type EncoderOptionsBuilderParams = { - input: string - - resolution: VideoResolution - - // Could be null for "merge audio" transcoding - fps?: number - - // Could be undefined if we could not get input bitrate (some RTMP streams for example) - inputBitrate: number - inputRatio: number - - // For lives - streamNum?: number -} - -export type EncoderOptionsBuilder = (params: EncoderOptionsBuilderParams) => Promise | EncoderOptions - -export interface EncoderOptions { - copy?: boolean // Copy stream? Default to false - - scaleFilter?: { - name: string - } - - inputOptions?: string[] - outputOptions?: string[] -} - -// All our encoders - -export interface EncoderProfile { - [ profile: string ]: T - - default: T -} - -export type AvailableEncoders = { - available: { - live: { - [ encoder: string ]: EncoderProfile - } - - vod: { - [ encoder: string ]: EncoderProfile - } - } - - encodersToTry: { - vod: { - video: string[] - audio: string[] - } - - live: { - video: string[] - audio: string[] - } - } -} -- cgit v1.2.3