From 3e2c3d47be4755837488a43eecd32016261e89a0 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 19 May 2022 05:21:22 +0800 Subject: [PATCH] =?UTF-8?q?ss=E5=8F=82=E6=95=B0=E5=86=99=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workflow/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/video.py b/workflow/video.py index 4b528c5..6ab8bca 100644 --- a/workflow/video.py +++ b/workflow/video.py @@ -58,7 +58,7 @@ def multi_gpu_encode_video_with_subtitles(orig_filename: str, subtitles: list[st "-t", str((_slices - 1) * VIDEO_CLIP_EACH_SEC + (VIDEO_CLIP_OVERFLOW_SEC * 0.8)), "-i", orig_filename, "-vf", ",".join("subtitles=%s" % i for i in subtitles), - "-c:a", "copy", "-c:v", "h264_nvenc", "-ss", str(VIDEO_CLIP_EACH_SEC * 2), + "-c:a", "copy", "-c:v", "h264_nvenc", "-f", "mp4", "-b:v", VIDEO_BITRATE, "-rc:v", "vbr", "-tune:v", "hq", *_common_ffmpeg_params(), # "-t", "10", @@ -93,7 +93,7 @@ def multi_gpu_encode_video_with_subtitles(orig_filename: str, subtitles: list[st "-t", str(_slices * VIDEO_CLIP_EACH_SEC + (VIDEO_CLIP_OVERFLOW_SEC * 0.8)), "-i", orig_filename, "-vf", ",".join("subtitles=%s" % i for i in subtitles), - "-c:a", "copy", "-c:v", "h264_nvenc", "-ss", str(VIDEO_CLIP_EACH_SEC), + "-c:a", "copy", "-c:v", "h264_nvenc", "-f", "mp4", "-b:v", VIDEO_BITRATE, "-rc:v", "vbr", "-tune:v", "hq", *_common_ffmpeg_params(), # "-t", "10",