Twitter's GIF hack
11–20 of 160 posts
Re: Twitter's GIF hack
#12"A GIF is literally a sequence of independent images squeezed into the same file. An mp4 video can take advantage of all kinds of fancy compression techniques like keyframes and forward-predictive frames."
That's not why the mp4 is smaller. A GIF is not [just] independent images, you can have each frame reuse pixels from previous frames.
The mp4 is smaller because lossy jpeg compression is used on each frame, while the gif stores each frames losslessly.
This has implications from the predictive frames as well - the jpeg is lossy, so two almost similar parts of the images can be considered "the same", while the gif is not, so they must be identical in order to compress that way, and the realities of video noise makes that unlikely.
Re: Twitter's GIF hack
#13This is on a fully-patched RHEL6 workstation: http://i.imgur.com/NleqJTD.png Another example of "use bleeding-edge tech or go fuck yourself" from the modern web.
At this point, desktop configurations that can't play mp4s are at risk of being considered "broken."
Re: Twitter's GIF hack
#14I had noticed that. Because of flashblock. Yeah, a 20+ years file format doesn't do compression between frames, who would have thought...
As I wrote in a different comment the actual reason is lossy jpeg compression, not intra frame compression.
Re: Twitter's GIF hack
#15This is on a fully-patched RHEL6 workstation: http://i.imgur.com/NleqJTD.png Another example of "use bleeding-edge tech or go fuck yourself" from the modern web.
Re: Twitter's GIF hack
#16Re: Twitter's GIF hack
#17This is on a fully-patched RHEL6 workstation: http://i.imgur.com/NleqJTD.png Another example of "use bleeding-edge tech or go fuck yourself" from the modern web.
Re: Twitter's GIF hack
#18This is on a fully-patched RHEL6 workstation: http://i.imgur.com/NleqJTD.png Another example of "use bleeding-edge tech or go fuck yourself" from the modern web.
Support for mp4 isn't bleeding-edge tech on other operating systems / distributions, unfortunately. It's a couple of years old in terms of being supported by Chrome; it's supported in Firefox as of last August. At this point, desktop configurations that can't play mp4s are at risk of being considered "broken."
Re: Twitter's GIF hack
#19This is on a fully-patched RHEL6 workstation: http://i.imgur.com/NleqJTD.png Another example of "use bleeding-edge tech or go fuck yourself" from the modern web.
Just upgrade.
Re: Twitter's GIF hack
#20Gifs have built in slow motion, it's called waiting for the 10mb file to download frame by frame upon initial play-through.