From bc1357815663895435f97738936f5856bae89151 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 13 Jan 2025 12:36:13 +0800 Subject: [PATCH] Linux-Ffmpeg7.0 --- entity/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity/ffmpeg.py b/entity/ffmpeg.py index ef9e19e..1079991 100644 --- a/entity/ffmpeg.py +++ b/entity/ffmpeg.py @@ -148,7 +148,7 @@ class FfmpegTask(object): input_index = input_args.count("-i") input_args.append("-i") input_args.append(overlay) - filter_args.append(f"{video_output_str}[{input_index}:v]scale=rw:rh[v]") + filter_args.append(f"{video_output_str}[{input_index}:v]scale2ref=mw:mh[v]") filter_args.append(f"[v][{input_index}:v]overlay=1:eof_action=endall[v]") video_output_str = "[v]" for subtitle in self.subtitles: