no video no cuts

This commit is contained in:
j 2026-01-15 15:09:47 +00:00
commit a0b3693a2f

View file

@ -18,6 +18,8 @@ def _get_distance(data0, data1):
def detect_cuts(path, seconds=True):
depth = 3
info = ox.avinfo(path)
if not info.get('video'):
return []
dar = AspectRatio(info['video'][0]['display_aspect_ratio'])
fps = AspectRatio(info['video'][0]['framerate'])
height = 96