Live data from Hacker News

Serve Videos Instead of GIFs

dannyguo.com

21–30 of 242 posts

Re: Serve Videos Instead of GIFs

#21
post #10

Serve videos as videos. Photo data compresses better with Jpeg. But gifs are still a better option for animated illustrated graphics.

Why is JPEG the de facto lossy compression format for photos? It always bugs me that video formats get something new every 5 or so years yet photos are in JPEGs for decades.

Because by and large it’s good enough outside of special cases.

Video formats get something new pretty much by necessity as resolution and quality increases mean older formats strain links.

Serving a 100k heif instead of a 500k jpeg is not going to materially change much.

Re: Serve Videos Instead of GIFs

#24
post #14

I can't right click / long tap and copy and paste a video into another app

That’s really an application issue, but god damn is it an annoying one.

Gifs (and videos that people call gifs) wouldn’t be what they are today if it weren’t for their ease of copying/saving and pasting/uploading to somewhere else, which you could similarly call an application feature. So this application issue with video (as implemented in this article) is almost certainly what will stop gifs from being replaced.

Re: Serve Videos Instead of GIFs

#25
post #14

I can't right click / long tap and copy and paste a video into another app

That’s really an application issue, but god damn is it an annoying one.

No, its a os one.

windows, and most other os's, allow copy and pasting images as image data in the clipboard, but can only handle video links, there is no way to natively copy and paste the video contents.

Re: Serve Videos Instead of GIFs

#26

Serving videos instead of GIFs is easy to do now with the HTML video element, which is supported almost universally I respectfully disagree. Loading videos instead of GIFs is easy to do now. Serving videos is a nightmarish mess of trying to match divergent, incompatible, sometimes patent-encumbered "standards" against an ever-changing range of browser support taking into account the hardware capabilities of a vast ra…

VP8 in a WebM container is pretty much the lowest bar for most browser support, and comes with no licensing requirements. I'm not disagreeing with the comment about "nightmarish mess". It indeed is one, specially when it comes user-uploaded content.

Re: Serve Videos Instead of GIFs

#28
I'm still very much in the camp that moving pictures are distinct from video, and am eagerly waiting for a good replacement animated picture format before I move my website over to it.

apng could have been nice, but never took off.

Re: Serve Videos Instead of GIFs

#29
post #26

Serving videos instead of GIFs is easy to do now with the HTML video element, which is supported almost universally I respectfully disagree. Loading videos instead of GIFs is easy to do now. Serving videos is a nightmarish mess of trying to match divergent, incompatible, sometimes patent-encumbered "standards" against an ever-changing range of browser support taking into account the hardware capabilities of a vast ra…

VP8 in a WebM container is pretty much the lowest bar for most browser support, and comes with no licensing requirements. I'm not disagreeing with the comment about "nightmarish mess". It indeed is one, specially when it comes user-uploaded content.

I think they are talking about the webserver side requirements for streaming video so the browser will play it.

Re: Serve Videos Instead of GIFs

#30
post #23
post #17

Earlier quoted context omitted.

You might as well use APNG then, which is more widely supported too.

I believe webp images are generally smaller in size.

webp comes in lossy and lossless flavor. unless you want to degrade the gifs you would have to pick lossless and in that case it's not a clear win over apng even if we ignore the compatibility question.
Post reply on HN