From 84cae54e7a2595bea0c3ea106a4d111fd11a4ec6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Aug 2022 10:36:19 +0200 Subject: Add option to not transcode original resolution --- shared/models/server/custom-config.model.ts | 3 +++ shared/models/server/job.model.ts | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'shared/models/server') diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index ab83ed497..bb9c7cef1 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts @@ -117,6 +117,8 @@ export interface CustomConfig { resolutions: ConfigResolutions & { '0p': boolean } + alwaysTranscodeOriginalResolution: boolean + webtorrent: { enabled: boolean } @@ -144,6 +146,7 @@ export interface CustomConfig { threads: number profile: string resolutions: ConfigResolutions + alwaysTranscodeOriginalResolution: boolean } } diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index 4633ab769..ac10ea964 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts @@ -1,7 +1,7 @@ import { ContextType } from '../activitypub/context' import { VideoState } from '../videos' -import { VideoStudioTaskCut } from '../videos/studio' import { VideoResolution } from '../videos/file/video-resolution.enum' +import { VideoStudioTaskCut } from '../videos/studio' import { SendEmailOptions } from './emailer.model' export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed' | 'paused' @@ -126,7 +126,6 @@ export interface HLSTranscodingPayload extends BaseTranscodingPayload { copyCodecs: boolean hasAudio: boolean - isPortraitMode?: boolean autoDeleteWebTorrentIfNeeded: boolean isMaxQuality: boolean @@ -138,8 +137,6 @@ export interface NewWebTorrentResolutionTranscodingPayload extends BaseTranscodi hasAudio: boolean createHLSIfNeeded: boolean - - isPortraitMode?: boolean } export interface MergeAudioTranscodingPayload extends BaseTranscodingPayload { -- cgit v1.2.3