Live data from Hacker News

Making GIFs From Video Files With Python

zulko.github.io

11–20 of 44 posts

Re: Making GIFs From Video Files With Python

#11

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 problem, for me, is that HTML5 video is a technical solution with no social advantage. There are so many places on the web where images are allowed that videos will never be allowed -- for good reason. Forums, comment threads, etc.

What we need is an image container format that allows for a silent (and only silent) video stream to be embedded. A better GIF. Something that site maintainers would feel entirely comfortable in allowing.

Re: Making GIFs From Video Files With Python

#14
post #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')

Can I make video/gif from multiple photos?

Re: Making GIFs From Video Files With Python

#15

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 problem, for me, is that HTML5 video is a technical solution with no social advantage. There are so many places on the web where images are allowed that videos will never be allowed -- for good reason. Forums, comment threads, etc. What we need is an image container format that allows for a silent (and only silent) video stream to be embedded. A better GIF. Something that site maintainers would feel entirely comf…

A new format would be overkill. Websites can just set the "muted" attribute on video elements. If you also set "loop" & "autoplay" and hide the controls, you've got a video that acts just like a GIF.

Re: Making GIFs From Video Files With Python

#16
post #14
post #9

Earlier quoted context omitted.

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')

Can I make video/gif from multiple photos?

You can do that with ffmpeg or ImageMagick. Something like

    ffmpeg -i *.png output.gif
You have options like delay, loop, etc.

Re: Making GIFs From Video Files With Python

#19

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.

Nope nope nope. A gif is a single file and pretty much works everywhere.

If you have the time to do it yeah maybe. But for animated cat pictures with titles... http://blog.zencoder.com/2013/09/13/what-formats-do-i-need-f...

One of the big failures of HTML5 videos is the missing viral aspect. I can see a funny gif, then save it and then email it on to whoever and they can watch it.

Hopefully all of this will play out and it will be easier, now it is not.

Re: Making GIFs From Video Files With Python

#20

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.

Try https://mediacru.sh instead of gfycat. It has a lot more features, and it's open source [1]. It's been around the HN block a few times [2][3].

Disclaimer: I made it with a friend and I'm baised.

[1] https://github.com/MediaCrush/MediaCrush

[2] https://news.ycombinator.com/item?id=6773039

[3] https://news.ycombinator.com/item?id=6189397

Post reply on HN