From 34bea0190e050754e826fdca848ccfcdd7907e77 Mon Sep 17 00:00:00 2001 From: apeman Date: Sat, 6 Jul 2024 00:37:08 +0200 Subject: [PATCH] Add noautorotate to all HW recorders --- server/src/utils/media.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/utils/media.ts b/server/src/utils/media.ts index 74502f3d5c..fe6df909be 100644 --- a/server/src/utils/media.ts +++ b/server/src/utils/media.ts @@ -732,7 +732,7 @@ export class QsvHwDecodeConfig extends QsvSwDecodeConfig { throw new Error('No QSV device found'); } - const options = ['-hwaccel qsv', '-hwaccel_output_format qsv', '-async_depth 4', ...this.getInputThreadOptions()]; + const options = ['-hwaccel qsv', '-hwaccel_output_format qsv', '-async_depth 4', '-noautorotate', ...this.getInputThreadOptions()]; const hwDevice = this.getPreferredHardwareDevice(); if (hwDevice) { options.push(`-qsv_device ${hwDevice}`); @@ -910,7 +910,7 @@ export class RkmppHwDecodeConfig extends RkmppSwDecodeConfig { throw new Error('No RKMPP device found'); } - return ['-hwaccel rkmpp', '-hwaccel_output_format drm_prime', '-afbc rga']; + return ['-hwaccel rkmpp', '-hwaccel_output_format drm_prime', '-afbc rga', '-noautorotate']; } getFilterOptions(videoStream: VideoStreamInfo) {