From 1952c18e308978bd9bd443ccbd78d5100749b29e Mon Sep 17 00:00:00 2001 From: tacheometry <39647014+tacheometry@users.noreply.github.com> Date: Tue, 26 Mar 2024 03:59:58 +0200 Subject: [PATCH] Try some cuda stuff --- .../FileConverter/ConversionJobs/ConversionJob_FFMPEG.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/FileConverter/ConversionJobs/ConversionJob_FFMPEG.cs b/Application/FileConverter/ConversionJobs/ConversionJob_FFMPEG.cs index cb9f3b3..64d8bec 100644 --- a/Application/FileConverter/ConversionJobs/ConversionJob_FFMPEG.cs +++ b/Application/FileConverter/ConversionJobs/ConversionJob_FFMPEG.cs @@ -265,13 +265,13 @@ namespace FileConverter.ConversionJobs } string encoderArgs = string.Format( - "-c:v libx264 -preset {0} -crf {1} {2} {3}", + "-c:v h264_nvenc -preset {0} -crf {1} {2} {3}", this.H264EncodingSpeedToPreset(videoEncodingSpeed), this.H264QualityToCRF(videoEncodingQuality), audioArgs, videoFilteringArgs); - string arguments = string.Format("-n -stats -i \"{0}\" {2} \"{1}\"", this.InputFilePath, this.OutputFilePath, encoderArgs); + string arguments = string.Format("-n -stats -hwaccel cuda -i \"{0}\" {2} \"{1}\"", this.InputFilePath, this.OutputFilePath, encoderArgs); this.ffmpegArgumentStringByPass.Add(new FFMpegPass(arguments)); }