From 55483878b32346f118c34805b23ec2aabc1cb84d Mon Sep 17 00:00:00 2001 From: ByteDream Date: Thu, 23 Mar 2023 13:53:37 +0100 Subject: [PATCH] Re-add hwaccel cuda --- crunchy-cli-core/src/utils/ffmpeg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crunchy-cli-core/src/utils/ffmpeg.rs b/crunchy-cli-core/src/utils/ffmpeg.rs index 5f8b821..54ededd 100644 --- a/crunchy-cli-core/src/utils/ffmpeg.rs +++ b/crunchy-cli-core/src/utils/ffmpeg.rs @@ -285,7 +285,7 @@ impl FFmpegPreset { if let Some(hwaccel) = hwaccel_opt { match hwaccel { FFmpegHwAccel::Nvidia => { - input.extend(["-hwaccel", "cuvid", "-c:v", "h264_cuvid"]); + input.extend(["-hwaccel", "cuda", "-hwaccel_output_format", "cuda", "-c:v", "h264_cuvid"]); output.extend(["-c:v", "h264_nvenc", "-c:a", "copy"]) } } @@ -303,7 +303,7 @@ impl FFmpegPreset { if let Some(hwaccel) = hwaccel_opt { match hwaccel { FFmpegHwAccel::Nvidia => { - input.extend(["-hwaccel", "cuvid", "-c:v", "h264_cuvid"]); + input.extend(["-hwaccel", "cuda", "-hwaccel_output_format", "cuda", "-c:v", "h264_cuvid"]); output.extend(["-c:v", "hevc_nvenc", "-c:a", "copy"]) } }