From d312878796473c551c3d7a8fede7543c6ee9018f Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Fri, 22 Apr 2022 09:45:38 +0800 Subject: [PATCH] debug --- workflow/video.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/workflow/video.py b/workflow/video.py index 02ca718..bd02f58 100644 --- a/workflow/video.py +++ b/workflow/video.py @@ -17,6 +17,7 @@ def get_video_real_duration(filename): def encode_video_with_subtitles(orig_filename: str, subtitles: list[str], new_filename: str): if FFMPEG_USE_GPU: if FFMPEG_USE_INTEL_GPU: + print("[+]Use Intel VAAPI Acceleration") encode_process = subprocess.Popen([ FFMPEG_EXEC, "-hide_banner", "-progress", "-", "-v", "0", "-y", "-hwaccel", "vaapi", "-i", orig_filename, "-vf", @@ -29,6 +30,7 @@ def encode_video_with_subtitles(orig_filename: str, subtitles: list[str], new_fi new_filename ], stdout=subprocess.PIPE) else: + print("[+]Use Nvidia NvEnc Acceleration") encode_process = subprocess.Popen([ FFMPEG_EXEC, "-hide_banner", "-progress", "-", "-v", "0", "-y", "-hwaccel", "cuvid", "-i", orig_filename, "-vf", @@ -41,6 +43,7 @@ def encode_video_with_subtitles(orig_filename: str, subtitles: list[str], new_fi new_filename ], stdout=subprocess.PIPE) else: + print("[+]Use CPU Encode") encode_process = subprocess.Popen([ FFMPEG_EXEC, "-hide_banner", "-progress", "-", "-v", "0", "-y", "-i", orig_filename, "-vf",