diff options
Diffstat (limited to 'server/lib/transcoding/shared/job-builders')
-rw-r--r-- | server/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
18 | } from '@shared/models' | 18 | } from '@shared/models' |
19 | import { getTranscodingJobPriority } from '../../transcoding-priority' | 19 | import { getTranscodingJobPriority } from '../../transcoding-priority' |
20 | import { canDoQuickTranscode } from '../../transcoding-quick-transcode' | 20 | import { canDoQuickTranscode } from '../../transcoding-quick-transcode' |
21 | import { computeResolutionsToTranscode } from '../../transcoding-resolutions' | 21 | import { buildOriginalFileResolution, computeResolutionsToTranscode } from '../../transcoding-resolutions' |
22 | import { AbstractJobBuilder } from './abstract-job-builder' | 22 | import { AbstractJobBuilder } from './abstract-job-builder' |
23 | 23 | ||
24 | export class TranscodingJobQueueBuilder extends AbstractJobBuilder { | 24 | export class TranscodingJobQueueBuilder extends AbstractJobBuilder { |
@@ -55,7 +55,7 @@ export class TranscodingJobQueueBuilder extends AbstractJobBuilder { | |||
55 | 55 | ||
56 | const maxResolution = await isAudioFile(videoFilePath, probe) | 56 | const maxResolution = await isAudioFile(videoFilePath, probe) |
57 | ? DEFAULT_AUDIO_RESOLUTION | 57 | ? DEFAULT_AUDIO_RESOLUTION |
58 | : resolution | 58 | : buildOriginalFileResolution(resolution) |
59 | 59 | ||
60 | if (CONFIG.TRANSCODING.HLS.ENABLED === true) { | 60 | if (CONFIG.TRANSCODING.HLS.ENABLED === true) { |
61 | nextTranscodingSequentialJobPayloads.push([ | 61 | nextTranscodingSequentialJobPayloads.push([ |