From 66cf37873f8cb60ce8f255442c18330430c83538 Mon Sep 17 00:00:00 2001 From: "shuohigh@gmail.com" Date: Tue, 17 Jun 2025 11:25:15 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E6=AD=A3slice=5Fmedia=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E7=9A=84m3u8=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BowongModalFunctions/utils/VideoUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BowongModalFunctions/utils/VideoUtils.py b/src/BowongModalFunctions/utils/VideoUtils.py index c0bf527..035d1ec 100644 --- a/src/BowongModalFunctions/utils/VideoUtils.py +++ b/src/BowongModalFunctions/utils/VideoUtils.py @@ -461,7 +461,7 @@ class VideoUtils: segment.start = segment.start - timedelta(seconds=seek_head) segment.end = segment.end - timedelta(seconds=seek_head) logger.info(f"Only using {seek_head}s --> {seek_tail}s = {duration}s") - ffmpeg_cmd.input(media_path, + ffmpeg_cmd.input(local_m3u8_path, ss=seek_head, t=duration, protocol_whitelist="file,http,https,tcp,tls",