diff --git a/workflow/video.py b/workflow/video.py index 87c2fa1..35a778c 100644 --- a/workflow/video.py +++ b/workflow/video.py @@ -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)