Live data from Hacker News

Making GIFs From Video Files With Python

zulko.github.io

1–10 of 44 posts

Re: Making GIFs From Video Files With Python

#4
Please use silent HTML5 videos instead of animated GIFs wherever possible. They are much more bandwidth- and CPU-efficient. This site allows you to automatically upload/convert animated GIFs into that format: http://gfycat.com/

The links allow you to see the animated GIFs as well, if viewer's device doesn't support HTML5.

Re: Making GIFs From Video Files With Python

#5

Please use silent HTML5 videos instead of animated GIFs wherever possible. They are much more bandwidth- and CPU-efficient. This site allows you to automatically upload/convert animated GIFs into that format: http://gfycat.com/ The links allow you to see the animated GIFs as well, if viewer's device doesn't support HTML5.

There's a drawback. Can we save these? Can we link directly to them?

Re: Making GIFs From Video Files With Python

#7
post #5

Please use silent HTML5 videos instead of animated GIFs wherever possible. They are much more bandwidth- and CPU-efficient. This site allows you to automatically upload/convert animated GIFs into that format: http://gfycat.com/ The links allow you to see the animated GIFs as well, if viewer's device doesn't support HTML5.

There's a drawback. Can we save these? Can we link directly to them?

Yes, if you right click (at least in Firefox) there is an option to download the WebM file. And you can get a direct link, although that doesn't really make sense, since if you're sending it to somebody, they probably want the option of watching the WebM version or the GIF version.

Re: Making GIFs From Video Files With Python

#9

Please use silent HTML5 videos instead of animated GIFs wherever possible. They are much more bandwidth- and CPU-efficient. This site allows you to automatically upload/convert animated GIFs into that format: http://gfycat.com/ The links allow you to see the animated GIFs as well, if viewer's device doesn't support HTML5.

The same scripts will output videos for HTML5 if you replace the `to_gif` method by `to_videofile`:

    clip.to_videofile('animation.mp4')
    clip.to_videofile('animation.webm', codec='libvpx')
    clip.to_videofile('animation.ogv',codec='libtheora')
Post reply on HN