News for hackers. Stuff that matters.
Re:High quality GIF with FFmpeg by imaginenore on Monday March 16, 2015 @02:25PM (#9213262)
And to complete the circle, run the gif through Gfycat and check out the mindblowing bandwidth savings:

http://gfycat.com/IllustriousHairyGermanpinscher

GIF: 1 MB

Video: 73k

Re:High quality GIF with FFmpeg by drzaiusapelord on Monday March 16, 2015 @04:36PM (#9214213)
I wish I had NSA-level overview of the internets to see how much bandwidth is wasted on poorly compressed file formats and protocols. Its weird we're talking about gif in the age of h.264 and png. So much for the "burn your gifs" patent protest from a few years ago.

Seems to me, social media sites like Facebook and Reddit have revitalized the gif for cheesy animations and memes. Its only fairly recently that hosts like imgur are converting them down to h.264 or webm for massive bandwidth savings.

We have an older guy here at work who thinks the alternative to flash is just hosting 20mb to 50mb gifs on our websites. I think people like this are still fairly common because they don't understand how terrible gifs are. Its funny the ways the web doesn't move forward sometimes.

Re:High quality GIF with FFmpeg by imaginenore on Monday March 16, 2015 @05:12PM (#9214423)
Imgur, popular on Reddit, actually recognized the problem and invented GIFV (which is HTML-wrapped mp4/webm)

http://imgur.com/blog/2014/10/09/introducing-gifv/

Unfortunately Facebook doesn't allow easy video embeds.

Re:High quality GIF with FFmpeg by le_lenny_face on Monday March 16, 2015 @05:32PM (#9214542)
I hate the "invention" of Gifv with every ounce of my soul. If it's a Webm or a MP4 file then say so. There are HTML5 tags for them and their looping. The least the Internet needs is a redundant file extension for what has been done by Gfycat and 4chan/8chan for years now.
Re:High quality GIF with FFmpeg by jamiesonbecker on Monday March 16, 2015 @05:51PM (#9214669)
Unfortunately a VERY large chunk of the web still can't see webm. http://caniuse.com/#feat=webm
Re:High quality GIF with FFmpeg by the8472 on Monday March 16, 2015 @05:54PM (#9214686)
Doesn't IE use directshow filters for playback? As long as anything like ffdshow or lavfilters is installed it could just use those.

Afaik firefox uses system-provided h.264 decoders to support that since they don't want to ship one with firefox.

Re:High quality GIF with FFmpeg by kuschku on Monday March 16, 2015 @08:51PM (#9215598)
Firefox ships their own decoder now, Cisco donated a license of the MPEG patents to Mozilla.
Re:High quality GIF with FFmpeg by the8472 on Monday March 16, 2015 @09:03PM (#9215638)
I have been told that's only used for webrtc. playing <video> tags uses ffmpeg on linux or media foundation on windows.
Re:High quality GIF with FFmpeg by le_lenny_face on Tuesday March 17, 2015 @10:29AM (#9218140)
>playing <video> tags uses ffmpeg on linux

If only. It uses that broken pile of abstraction called GStreamer.

Re:High quality GIF with FFmpeg by the8472 on Monday March 16, 2015 @05:50PM (#9214656)
> invented

I think 4chan introduced silent, looping, control-less webms for the same purpose (gif replacements) before imgur.

Re:High quality GIF with FFmpeg by dublinben on Monday March 16, 2015 @02:49PM (#9213438)
Yes please. Let's leave GIF in the 20th Century, where it belongs.
Re:High quality GIF with FFmpeg by IgorPartola on Monday March 16, 2015 @03:34PM (#9213776)
If only iOS (and Android?) allowed you to play inline videos the way you can on the desktop, and the way they play animated GIF's inline. Besides allowing us to adopt video throughout and save on bandwidth and have better video quality, this will be a huge productivity boost to developers: we can finally stop having the GIF vis JIF pronunciation debate.
Re:High quality GIF with FFmpeg by dublinben on Monday March 16, 2015 @04:17PM (#9214082)
Firefox on Android plays inline videos just fine. Sites like GFYcat work as expected, and loop appropriately.
Re:High quality GIF with FFmpeg by 1ris on Monday March 16, 2015 @04:41PM (#9214250)
"Works" with the android stock browser, however there the controls stay in the way. Same for Chrome. Does not work with opera mobile.
Re:High quality GIF with FFmpeg by barrkel on Monday March 16, 2015 @10:10PM (#9215867)
Much to my annoyance. I desire to disable all autoplay of all inline videos across all browsers on my phone. Quite difficult to achieve.
Re:High quality GIF with FFmpeg by IgorPartola on Tuesday March 17, 2015 @01:11PM (#9219455)
I think this should definitely be an option. This is a really personal preference and there is no reason you should suffer through autoplay videos if you don't want to.

I would want it on, at least for some sites, like Gyfcat and Imgur because otherwise my phone slows down to a crawl, trying to load and render a GIF.

Re:High quality GIF with FFmpeg by acqq on Monday March 16, 2015 @05:26PM (#9214506)
Unless somebody's producing ads, why would he insist on having the video "inline like on the desktop" on the small screen of the mobile phone?
Re:High quality GIF with FFmpeg by IgorPartola on Monday March 16, 2015 @06:03PM (#9214749)
To replace GIFs. I don't have a problem with users being able to opt out, etc. But GIF's are still useful, yet a huge drain on resources. If for nothing, I want my cat videos still available inline without having to click them.
Re:High quality GIF with FFmpeg by cardiffspaceman on Saturday March 21, 2015 @11:29PM (#9245446)
Hardware video decoders mostly only handle one video at a time and if you could multiplex the one decoder the chip has, to keep up with multiple videos playing at once it just might take a milliwatt or two.
Re:High quality GIF with FFmpeg by derf_ on Monday March 16, 2015 @07:09PM (#9215127)
Yes, what kind of crazy designer would do that: https://news.ycombinator.com/item?id=4531088
Re:High quality GIF with FFmpeg by profmonocle on Monday March 16, 2015 @05:50PM (#9214662)
Because gifs already work that way on phones, and that's how users want it.
Re:High quality GIF with FFmpeg by acqq on Monday March 16, 2015 @07:15PM (#9215158)
I never wanted any movable ads while trying to read something on the phone. Even less the movable the cat gifs. If something is not worth the click, it's certainly not worth to be inline in the text.
Re:High quality GIF with FFmpeg by jamiesonbecker on Monday March 16, 2015 @05:48PM (#9214646)
live screenshot demos?
Re:High quality GIF with FFmpeg by AlwaysBCoding on Monday March 16, 2015 @10:43PM (#9215972)
AFAIK the Apple Watch doesn't support video of any sort, so if you want to get moving pictures on your watch the gif is the only way. Gif is about to make a comeback if anything.
Re:High quality GIF with FFmpeg by leeoniya on Monday March 16, 2015 @03:38PM (#9213813)
is it possible to have pixel-perfect animations (avoid compression artifacts completely) while using h.264 or VP8 and still get good filesize?

also, what about alpha transparency? video formats do not have this. GIF is shitty for video clips, but it's not without uses. it just needs to be replaced by APNG [1].

[1] http://en.wikipedia.org/wiki/APNG

Re:High quality GIF with FFmpeg by sb057 on Monday March 16, 2015 @04:32PM (#9214190)
VP9 has lossless encoding support.

http://base-n.de/webm/VP9lossless.html

Re:High quality GIF with FFmpeg by leeoniya on Monday March 16, 2015 @04:38PM (#9214226)
apparently there's also hints of alpha channel, but basically no support for it outside of chrome's experimental flags:

http://updates.html5rocks.com/2013/07/Alpha-transparency-in-...

Re:High quality GIF with FFmpeg by bithush on Monday March 16, 2015 @02:57PM (#9213492)
Indeed. While this is a nice hack, GIF really needs to just die now.
Re:High quality GIF with FFmpeg by acheron on Monday March 16, 2015 @03:21PM (#9213679)
I like to imagine going back in time to 2005-06 and telling myself "You know what's going to come back in a big way? Animated GIFs!"

I wouldn't believe myself whatsoever.

Re:High quality GIF with FFmpeg by arthurfm on Monday March 16, 2015 @03:49PM (#9213895)
I would like to go back in time to 1993 and make Tim Berners-Lee add video support to the <img> element so that we could do things like this today:

  <img src="video.mp4" width="800" height="450" volume="0" autoplay loop>
If this had happened no one would need to use GIFs. :(
Re:High quality GIF with FFmpeg by robin_reala on Monday March 16, 2015 @04:52PM (#9214303)
Marc Adreessen came up with <img>[1], not TimBL.

[1] http://1997.webhistory.org/www.lists/www-talk.1993q1/0182.ht...

Re:High quality GIF with FFmpeg by espadrine on Monday March 16, 2015 @05:33PM (#9214546)
Besides, it's easy today to frown upon the choices made at a time where common image formats included XBM, a plain text subset of C!

One day, people will be sad that we didn't anticipate 3d models in <img>. It makes no sense to add support with the current state of technology.

Re:High quality GIF with FFmpeg by bnegreve on Monday March 16, 2015 @03:37PM (#9213797)
> GIF: 1 MB

> Video: 73k

Yes, but with some loss of quality http://imgur.com/1qkJYEA

(not as much as I thought, though)

Re:High quality GIF with FFmpeg by drzaiusapelord on Monday March 16, 2015 @04:39PM (#9214237)
You can, say, nearly double the quality, get a 100kb file or so, and have it be much sharper. The settings he's using are fairly compressed. Generally, you should be able to go down to 1/10th the file size without too much of a quality drop.
Re:High quality GIF with FFmpeg by joosters on Monday March 16, 2015 @09:09PM (#9215662)
It is technically possible to do both directions of the GIF<->video conversion on-the-fly at all points of the network. Web servers could deliver/generate video files for clients that request GIFs, transparent proxies and caches could grab the video files and translate back to GIFs for dumb clients, and browser plugins could seamlessly replace GIFs on a page with the video files.

In fact, behind the scenes this might be happening now - technically your ISP could be doing this and the 1MB GIF you download has been reconverted from a video file back into a GIF at your local proxy cache!