时间过短,不继续剪切
This commit is contained in:
parent
4df2cf5def
commit
05f421767a
@ -210,6 +210,9 @@ def quick_split_video(file):
|
||||
duration = duration_str_to_float(_duration_str)
|
||||
current_sec = 0
|
||||
while current_sec < duration:
|
||||
if (current_sec + VIDEO_CLIP_OVERFLOW_SEC * 2) > duration:
|
||||
print("[-]Less than 2 overflow sec, skip")
|
||||
break
|
||||
current_dt = (create_dt + timedelta(seconds=current_sec)).strftime("%Y%m%d_%H%M_")
|
||||
print("CUR_DT", current_dt)
|
||||
print("BIAS_T", current_sec)
|
||||
|
Loading…
x
Reference in New Issue
Block a user