toggle for hardware decoding, software / hardware decoding for nvenc and rkmpp

This commit is contained in:
mertalev
2024-05-13 19:42:45 -04:00
parent 48a71ac4d9
commit 1556d978ed
6 changed files with 148 additions and 26 deletions
+2
View File
@@ -97,6 +97,7 @@ export interface SystemConfig {
preferredHwDevice: string;
transcode: TranscodePolicy;
accel: TranscodeHWAccel;
accelDecode: false;
tonemap: ToneMapping;
};
job: Record<ConcurrentQueueName, { concurrency: number }>;
@@ -224,6 +225,7 @@ export const defaults = Object.freeze<SystemConfig>({
transcode: TranscodePolicy.REQUIRED,
tonemap: ToneMapping.HABLE,
accel: TranscodeHWAccel.DISABLED,
accelDecode: false,
},
job: {
[QueueName.BACKGROUND_TASK]: { concurrency: 5 },