rename extract timestamp script

This commit is contained in:
2025-09-09 21:00:53 +02:00
parent 9c7aa82f42
commit f9a43a6460

View File

@@ -81,10 +81,10 @@ def extract_timestamps(video_path):
while True: while True:
pivot = get_pivot(start, end) pivot = get_pivot(start, end)
count = extract_count_at_frame(cap, pivot) count = extract_count_at_frame(cap, pivot)
if count < c_start or count > c_end: if count < 100 or count < c_start or count > c_end:
logging.warning( logging.warning(
f"faulty value found count={count} c_start={c_start} c_end={c_end} frame={pivot}") f"faulty value found count={count} c_start={c_start} c_end={c_end} frame={pivot}")
start += 1 start += fps
continue continue
logging.info(f"s={start} e={end} p={pivot} c={count}") logging.info(f"s={start} e={end} p={pivot} c={count}")
if end - start < fps: if end - start < fps: