Fixed lossless h265 not working

This commit is contained in:
N00MKRAD
2021-05-13 12:29:20 +02:00
parent be0a4077a5
commit 4b12437feb

View File

@@ -65,7 +65,7 @@ namespace Flowframes.Media
{
string preset = Config.Get("ffEncPreset").ToLower().Remove(" ");
int crf = Config.GetInt("h265Crf");
args += $"-crf {(crf > 0 ? crf.ToString() : "-x265-params lossless=1")} -preset {preset} -pix_fmt yuv420p";
args += $"{(crf > 0 ? $"-crf {crf}" : "-x265-params lossless=1")} -preset {preset} -pix_fmt yuv420p";
}
if (codec == Codec.H264NVENC)