Live data from Hacker News

Twitter's GIF hack

blog.embed.ly

31–40 of 160 posts

Re: Twitter's GIF hack

#31
post #17
post #10

This 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.

I suspect some implementation issues rather than a GFY attitude, it doesn't work on FF or Chrome on OSX 10.9. Safari works though.

I'm looking at it right now in Chrome on Mavericks. Are you sure you checked with the right browser?

Re: Twitter's GIF hack

#32
The saddest part is that you can't add a zip to that gif and use twitter as a sharing platform.

cat x.zip >> y.gif and upload would have been nice ;)

Re: Twitter's GIF hack

#34
post #26
post #22

Earlier quoted context omitted.

This is very far from bleeding-edge; we're talking technology between five and 10 years old. Set up gstreamer already; it's time to move past gifs.

WebM works fine on this machine. mp4 does not. This is why there was a bit of scuffle, as you may recall, about video formats on the web.

Are you saying that WebM, a file format introduced in 2010, is less bleeding-edge than H.264 MP4, a file format introduced in 2003? What definition of "bleeding-edge" are we using here?

Re: Twitter's GIF hack

#35

Unfortunately the MP4 looks worse than the GIF, due to chroma compression in the YUV 420 colorspace. While each pixels luminance value is kept, the color information for a 4-pixel square is stored as a single CrCb pair, which is really obvious when you look at how the orange hat has artifacts against the blue background. Increasing the bitrate won't solve this either, since it's a limitation of the colorspace.

It's actually 4:2:0

Re: Twitter's GIF hack

#36
post #3

So, what is an easy way to convert gifs to mp4? How did they do this. I run a small gif-sharing site and should probably do this.

I had a convoluted method using gifsicle to extract the frames and then encode as a stream of frames, but then sometime in the past year or so ffmpeg improved native gif support. This is what I use (the options are both for compatibility):

    ffmpeg -i foo.gif -pix_fmt yuv420p -vf crop=floor (in_w/2)*2:floor(in_h/2)*2 foo.mp4
Works for WebM just by changing the extension, too.

Re: Twitter's GIF hack

#37
post #25

Earlier quoted context omitted.

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."

Chrome on Mavericks is "broken?" How shall I upgrade this?

Chrome supports mp4 on Mavericks (as well as on older versions of OS X).

Re: Twitter's GIF hack

#39
post #35

Unfortunately the MP4 looks worse than the GIF, due to chroma compression in the YUV 420 colorspace. While each pixels luminance value is kept, the color information for a 4-pixel square is stored as a single CrCb pair, which is really obvious when you look at how the orange hat has artifacts against the blue background. Increasing the bitrate won't solve this either, since it's a limitation of the colorspace.

It's actually 4:2:0

Thanks, updated.

Re: Twitter's GIF hack

#40
post #10

This 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.

What percentage of Twitter's users do you think use Linux for browsing? Much less RHEL. Anyway, this is purely a front-end enhancement mostly for the benefit of mobile users. Also lol @ mp4 being "bleeding edge" tech. It certainly is not. Even in the Linux community.

Changing the fundamental format of the content is a 'front-end enhancement' now? If it's for mobile users, why not present it just to mobile users?

also lol @ your opinion about technology. even in the "linux community"

Post reply on HN