view scripts/info-video.py @ 1173:c1766bb5076c

udpated the iframework metadata to allow adding it to an existing database, and creating only a subset of tables for group/person attributes
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 18 Oct 2021 11:42:53 -0400
parents cc5cb04b04b0
children
line wrap: on
line source

#! /usr/bin/env python3

import sys, argparse

from trafficintelligence import cvutils

parser = argparse.ArgumentParser(description='The program displays the video.')
parser.add_argument('-i', dest = 'videoFilename', help = 'name of the video file', required = True)

args = parser.parse_args()

videoProperties = cvutils.infoVideo(args.videoFilename)
for k,v in videoProperties.items():
    print('Video {}: {}'.format(k, v))