in scripts/generate_video_filmstrip_standalone.py [0:0]
def video_duration(ivideo):
dur=0;
if os.path.exists(ivideo):
result = subprocess.run(['ffprobe', '-v', 'error', '-show_entries', 'format=duration', '-of', 'default=noprint_wrappers=1:nokey=1', ivideo], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
dur = float(result.stdout)
else:
dur = float(0)
return dur * 1000;