no video no cuts
This commit is contained in:
parent
c242818138
commit
a0b3693a2f
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ def _get_distance(data0, data1):
|
||||||
def detect_cuts(path, seconds=True):
|
def detect_cuts(path, seconds=True):
|
||||||
depth = 3
|
depth = 3
|
||||||
info = ox.avinfo(path)
|
info = ox.avinfo(path)
|
||||||
|
if not info.get('video'):
|
||||||
|
return []
|
||||||
dar = AspectRatio(info['video'][0]['display_aspect_ratio'])
|
dar = AspectRatio(info['video'][0]['display_aspect_ratio'])
|
||||||
fps = AspectRatio(info['video'][0]['framerate'])
|
fps = AspectRatio(info['video'][0]['framerate'])
|
||||||
height = 96
|
height = 96
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue