feat(server): qsv hardware decoding and tone-mapping (#9689)

* qsv hw decoding and tone-mapping

* fix vaapi

* add tests

* formatting

* handle device name without path
This commit is contained in:
Mert
2024-05-22 23:58:29 -04:00
committed by GitHub
parent 13cbdf6851
commit a5e8b451b2
3 changed files with 132 additions and 8 deletions

View File

@@ -38,7 +38,8 @@ import {
HEVCConfig,
NvencHwDecodeConfig,
NvencSwDecodeConfig,
QSVConfig,
QsvHwDecodeConfig,
QsvSwDecodeConfig,
RkmppHwDecodeConfig,
RkmppSwDecodeConfig,
ThumbnailConfig,
@@ -499,7 +500,9 @@ export class MediaService {
break;
}
case TranscodeHWAccel.QSV: {
handler = new QSVConfig(config, await this.getDevices());
handler = config.accelDecode
? new QsvHwDecodeConfig(config, await this.getDevices())
: new QsvSwDecodeConfig(config, await this.getDevices());
break;
}
case TranscodeHWAccel.VAAPI: {