move usage to top

This commit is contained in:
j 2016-02-18 20:01:50 +05:30
parent dd0e0dbab7
commit b3deeb1c19
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,8 @@ import oxtimelines
# fixme: -w option should be 'keyframeswide' mode
if __name__ == '__main__':
usage = '''
usage = '''%prog [options] video1 [video2]
%prog takes one or more video files as input and outputs timeline images.
If a cuts path is given, it also outputs a json file containing cuts. If in and
out points are given, only that part of the video(s) will be rendered.
@ -31,8 +32,7 @@ widths will be 1 px per frame for the first one, and 1 px per second for the
second (smaller) one. If the wide option is set, large 'keyframeswide' tiles
will be rendered. They can be used at a later point to render small 'keyframes'
tiles without having to decode the video again.
usage: %prog [options] video1 [video2]'''
'''
parser = OptionParser(usage=usage)
parser.add_option('-o', '--output', dest='tiles', help='path for combined timeline tiles')