fix 修正slice_media输入的m3u8值

This commit is contained in:
shuohigh@gmail.com 2025-06-17 11:25:15 +08:00
parent 0d6cae03a4
commit 66cf37873f
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ class VideoUtils:
segment.start = segment.start - timedelta(seconds=seek_head) segment.start = segment.start - timedelta(seconds=seek_head)
segment.end = segment.end - 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") 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, ss=seek_head,
t=duration, t=duration,
protocol_whitelist="file,http,https,tcp,tls", protocol_whitelist="file,http,https,tcp,tls",