google / gif-for-cli

https://opensource.googleblog.com/2018/06/tenor-gif-for-cli.html
Apache License 2.0
2.93k stars 161 forks source link

Subgif feature #9

Closed taylorKonigsmark closed 6 years ago

taylorKonigsmark commented 6 years ago

Could we get a feature to make a sub gif out of a main one?

Something like: gif-for-cli --start-time 3s --end-time 5s

The above command would make a 2 second gif out of the original

alashow commented 6 years ago

Isn't this out of scope of this project? I think it's only a "gif to animated ASCII art converter" and not some gif manipulation tool.

But ffmpeg can do what you want:

ffmpeg -i input.gif -ss 00:00:03 -t 2s -async 1 output.gif

(-ss is for the start time, -t is for the duration after -ss)

SeanHayes commented 6 years ago

Thanks for the suggestion, but I think this would be out of scope.