From a7a583c81a4f73b7107971c8e142908bf5a73589 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 9 Feb 2023 01:38:32 +0800 Subject: [PATCH] fix nvenc hevc --- workflow/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/video.py b/workflow/video.py index cbb88f1..4aea26e 100644 --- a/workflow/video.py +++ b/workflow/video.py @@ -112,7 +112,7 @@ def get_encode_hevc_process_use_nvenc(orig_filename: str, subtitles: list[str], encode_process = subprocess.Popen([ FFMPEG_EXEC, *_common_ffmpeg_setting(), "-i", orig_filename, "-vf", - "".join("subtitles=%s," % i for i in subtitles) + ",hwupload_cuda", + "".join("subtitles=%s," % i for i in subtitles) + "hwupload_cuda", "-c:v", "hevc_nvenc", *_common_ffmpeg_params(), # "-t", "10",