top | item 8058683

AnimGIFs need a better codec

77 points| robin_reala | 11 years ago |pornel.net | reply

39 comments

order
[+] TheZenPsycho|11 years ago|reply
as I've commented before, SVG fits pretty much all those criteria:

- works inside an <img> tag

- works in background: url()

- supports both smil animation and css animation

- supported back to IE10 (with css animations)

- plays automatically in a loop with no play controls

- can embed jpegs, pngs, videos as videostrips or diff images

- can apply alpha transparency via a mask operation

- flexible enough to apply a wide variety of compression techniques including multiple update regions (where gif only supports one rect per frame)

- Controllable via javascript (as long as you trade off putting it in an img tag and use an object tag instead)

previous comments here: https://news.ycombinator.com/item?id=8038838

all that's missing is widely available software to author SVG animations.

[+] pornel|11 years ago|reply
A major use-case is to efficiently play a clip from a video camera, so purely vector animation or a sequence of frames from still images isn't good enough.

I've tested an SVG with an <svg:video> element (http://www.w3.org/TR/SVGTiny12/multimedia.html#restrictedVid...), but unfortunately it doesn't seem to be supported anywhere.

I've also tested an SVG playing video via HTML in a <foreignObject>. In Firefox it does play when the SVG is opened as a standalone file, but not when embedded in <img src>. So close :(

[+] TylerE|11 years ago|reply
This, imo, represents a fundamental misunderstanding of the typical use case.

If posting the image on a typical forum requires more than some sort of [img]http://foohost.com/23452t23t.baz[/img] it's a non-starter.

[+] NVI|11 years ago|reply
https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_...

There isn’t a single video format that is supported by all major browsers.

[+] simoncion|11 years ago|reply
Moot decided on webm for 4chan's anigif replacement. If more websites do the same, MSFT and Apple will have their decision made for them.

We need to stop caring about the opinions of companies who aren't interested in helping The Web.

[+] germanforblack|11 years ago|reply
You could also use <video src="/path/to/vid.mp4" muted loop autoplay>
[+] ZeroGravitas|11 years ago|reply
This is one side if it, 4chan's webm is another, various 3rd party hosts, shims and polyfills are in between.

I'd like to see Mozilla and Google capitalize on this to help spread royalty free codecs

How does webm decoded in JavaScript compare with a gif for video? Is there a subset (beyond removing all audio) that could speed thinks up?

[+] derf_|11 years ago|reply
> How does webm decoded in JavaScript compare with a gif for video? Is there a subset (beyond removing all audio) that could speed thinks up?

https://wiki.xiph.org/Ogv.js

[+] est|11 years ago|reply
What's real need to be fixed is how to provide an easy copy-pastable way of viral spreading like GIF.

GIF is popular simply because people can copy it around by 2 clicks. Copying video files is PITA because bullshits like region restrictions, CDN providers, dynamic URLs, etc.

[+] scott_karana|11 years ago|reply
That just the thing, though; video file formats do not intrinsically have any of those limitations, which is exactly why he wrote this article: it's a false dichotomy.

Files are just files, and video ones are typically smaller.

Imagine, if you will, a GouTube where animated GIFs were rigorously checked against existing copyrighted material, removed by DMCA requests, hosted around the world. How would it be mechanically different than Youtube, except for changes surrounding the Flash player?

Thusly, imagine Tumblr hosting WebM/H264 files instead of (or in addition to) GIFs. Mechanically identical.

[+] TD-Linux|11 years ago|reply
You can right click any html5 video and choose Save video as...
[+] Titanbase|11 years ago|reply
I don't have a problem with AnimGIFs. They work fine for their intended purpose.

Interesting side note: I worked at Jasc Software 20 years ago in technical support, helping people with Paint Shop Pro 7 and Animation Shop.

Animation Shop still works great for creating AnimGIFs and PSP7 still works great for a complete 'vector+bitmap' graphics app. It's impressive that some software is so resilient.

[+] pornel|11 years ago|reply
If by intended purpose you mean animations like smileys, then yeah, it's OK.

But if you look at imgur.com or Tumblr you'll find GIF is used mostly for video clips and this results in multi-megabyte files with dreadful quality, e.g. http://ministryofgifs.org/

gfycat typically reports 15:1 compression improvement when converting to WebM.

[+] ajanuary|11 years ago|reply
The amount of RAM that's required to browse tumblr because of the gifs is slightly insane.
[+] jccalhoun|11 years ago|reply
"AnimGIFs?" Is this a term people really use?
[+] SimeVidas|11 years ago|reply
I was confused about that term for a few moments. We should have a standard shorthand for animated GIF. How about aGIF or AGIF?
[+] SquareWheel|11 years ago|reply
I would be perfectly okay with browsers dropping support for the animated gif. We've had better options for years.