From a2b7403978a7bc2f710aa0865ffbdebcbae19129 Mon Sep 17 00:00:00 2001 From: mertalev <101130780+mertalev@users.noreply.github.com> Date: Mon, 13 May 2024 19:59:24 -0400 Subject: [PATCH] fix software tone-mapping not being applied --- server/src/utils/media.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/utils/media.ts b/server/src/utils/media.ts index 7a7c7464e7..be95dba6f2 100644 --- a/server/src/utils/media.ts +++ b/server/src/utils/media.ts @@ -476,7 +476,7 @@ export class NVENCConfig extends BaseHWConfig { getFilterOptions(videoStream: VideoStreamInfo) { const options = []; if (!this.config.accelDecode) { - options.push('format=nv12', 'hwupload_cuda'); + options.push(...this.getToneMapping(videoStream), 'format=nv12', 'hwupload_cuda'); if (this.shouldScale(videoStream)) { options.push(`scale_cuda=${this.getScaling(videoStream)}`); }