fix 修正slice_media输入的m3u8值
This commit is contained in:
parent
0d6cae03a4
commit
66cf37873f
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue