vvo / gifify

😻 Convert any video file to an optimized animated GIF.
ISC License
6.18k stars 313 forks source link

Unable to use end time (--to) #73

Open dhruvkjaura opened 7 years ago

dhruvkjaura commented 7 years ago

I've tried across different source videos and different configurations, the gif does start from the defined start time, however, doesn't end based on the "to" value passed. The final gif goes all the way till the end of the video which is the default setting.

vvo commented 7 years ago

If I remember well, I think --to means "duration" when used with --from. Can you try that? Then it would be a readme update or fix.

oeon commented 7 years ago

I was getting blurry/fuzzy output (perhaps separate issue) when I tried to convert my entire .mov selection to .gif, so I tried breaking it up.

gifify -o cleanup-formula0.gif --to 00:00:21 cleanup-cmd.mov --resize 950:-1 --speed 2 worked

gifify -o cleanup-formula1.gif --from 00:00:23 --to 00:00:38 cleanup-cmd.mov --resize 950:-1 --speed 2 worked

gifify -o cleanup-formula2.gif --from 00:00:40 --to 00:00:52 cleanup-cmd.mov --resize 950:-1 --speed 2 went to the end of the video.

gifify -o cleanup-formula2a.gif --from 00:00:40 --to 00:00:12 cleanup-cmd.mov --resize 950:-1 --speed 2 cropped selection as intended. So thank you for mentioning the "duration" detail...that seemed to help in my situation.

polyrhythmatic commented 7 years ago

I'm having an issue with --from and --to as well. Seems to ignore --from completely.

I have tried the following with no success with any.

gifify scorpion_mouse.mp4 --from: "00:00:40" --to "00:00:05" --fps 29.97 --compression 20 -o scorpion_mouse.gif
gifify scorpion_mouse.mp4 --from: "00:00:30" --to "00:00:05" --compression 20 -o scorpion_mouse.gif
gifify scorpion_mouse.mp4 --from: 00:00:30 --to 00:00:45 --compression 60 -o scorpion_mouse.gif

No matter what I try, --from does not set the start point.