From 29c7319c8a42d5c4831d08a80f4d111d3a72f52c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 30 May 2023 09:35:21 +0200 Subject: Fix transcoding error When transcoding.always_transcode_original_resolution is false --- .../transcoding/shared/job-builders/transcoding-job-queue-builder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/transcoding/shared') diff --git a/server/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts b/server/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts index fa2ac70bf..4f802e2a6 100644 --- a/server/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts +++ b/server/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts @@ -18,7 +18,7 @@ import { } from '@shared/models' import { getTranscodingJobPriority } from '../../transcoding-priority' import { canDoQuickTranscode } from '../../transcoding-quick-transcode' -import { computeResolutionsToTranscode } from '../../transcoding-resolutions' +import { buildOriginalFileResolution, computeResolutionsToTranscode } from '../../transcoding-resolutions' import { AbstractJobBuilder } from './abstract-job-builder' export class TranscodingJobQueueBuilder extends AbstractJobBuilder { @@ -55,7 +55,7 @@ export class TranscodingJobQueueBuilder extends AbstractJobBuilder { const maxResolution = await isAudioFile(videoFilePath, probe) ? DEFAULT_AUDIO_RESOLUTION - : resolution + : buildOriginalFileResolution(resolution) if (CONFIG.TRANSCODING.HLS.ENABLED === true) { nextTranscodingSequentialJobPayloads.push([ -- cgit v1.2.3