fix software tone-mapping not being applied
This commit is contained in:
@@ -476,7 +476,7 @@ export class NVENCConfig extends BaseHWConfig {
|
|||||||
getFilterOptions(videoStream: VideoStreamInfo) {
|
getFilterOptions(videoStream: VideoStreamInfo) {
|
||||||
const options = [];
|
const options = [];
|
||||||
if (!this.config.accelDecode) {
|
if (!this.config.accelDecode) {
|
||||||
options.push('format=nv12', 'hwupload_cuda');
|
options.push(...this.getToneMapping(videoStream), 'format=nv12', 'hwupload_cuda');
|
||||||
if (this.shouldScale(videoStream)) {
|
if (this.shouldScale(videoStream)) {
|
||||||
options.push(`scale_cuda=${this.getScaling(videoStream)}`);
|
options.push(`scale_cuda=${this.getScaling(videoStream)}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user