Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duration and End Time options don't accept hours or minutes #3

Open
xrigau opened this issue Oct 4, 2017 · 0 comments
Open

Duration and End Time options don't accept hours or minutes #3

xrigau opened this issue Oct 4, 2017 · 0 comments

Comments

@xrigau
Copy link

xrigau commented Oct 4, 2017

So running giffify.py -h returns:

optional arguments:
  # [...]
  -s START_TIME, --start-time START_TIME
                        Start timestamp, as [-][HH:]MM:SS[.m...] or
                        [-]S+[.m...]
  -e END_TIME, --end-time END_TIME
                        End timestamp, as [-][HH:]MM:SS[.m...] or
                        [-]S+[.m...]. Overridden by -d
  -d DURATION, --duration DURATION
                        Duration, as [-][HH:]MM:SS[.m...] or [-]S+[.m...].
                        Overrides -e

but if you actually try to use any of these options with a time that contains HH:MM or MM an error gets thrown:

~/Desktop  $ giffify.py -s 00:10 test.gif -o out.gif
usage: giffify.py [-h] [-o OUTFILE] [-dw DESIRED_WIDTH] [-dh DESIRED_HEIGHT]
                  [-fps FPS] [-s START_TIME] [-e END_TIME] [-d DURATION]
                  video
giffify.py: error: argument -s/--start-time: invalid int value: '00:10'

This happens both if you use HH:MM:SS and MM:SS and happens for start time, end time and duration.

It works fine if you pass just the seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant