mirror of https://github.com/chriskiehl/Gooey.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
983 B
25 lines
983 B
import sys, argparse
|
|
|
|
from gooey import Gooey
|
|
|
|
@Gooey
|
|
def main():
|
|
parser = argparse.ArgumentParser(description='The program displays the video.')
|
|
parser.add_argument('-i', dest = 'videoFilename', help = 'name of the video file', required = True)
|
|
parser.add_argument('-f', dest = 'firstFrameNum', help = 'number of first frame number to display', default = 0, type = int)
|
|
parser.add_argument('--fps', dest = 'frameRate', help = 'approximate frame rate to replay', type = float)
|
|
parser.add_argument('-r', dest = 'rescale', help = 'rescaling factor for the displayed image', default = 1., type = float)
|
|
|
|
args = parser.parse_args()
|
|
|
|
firstFrameNum = 0
|
|
if args.firstFrameNum is not None:
|
|
firstFrameNum = args.firstFrameNum
|
|
|
|
frameRate = -1
|
|
if args.frameRate is not None:
|
|
frameRate = args.frameRate
|
|
|
|
print('{} {} {} {}'.format(args.videoFilename, firstFrameNum, frameRate, rescale = args.rescale))
|
|
|
|
main()
|