Live data from Hacker News

WebM support on 4chan

blog.4chan.org

51–60 of 104 posts

Re: WebM support on 4chan

#51
post #46
post #14

Has anyone had experience optimizing for webm? I really want to support this codec, but it's insanely slow in my experience. I'm finding that it's generally around 4x slower than mp4, but I've also had cases where it's taken up to a minute to encode a file where h264 take under 10 seconds. My use case is to have the best performance/quality ratio for a 30 second video under 3mb. These are my ffmpeg flags: h264: "-vco…

I was under the impression that one is hardware accelerated while the other is not?

While some systems do have H.264 encoders, bstar77 is using x264 which runs only on the CPU and produces much higher quality output than any hardware encoder[1].

1 - http://www.compression.ru/video/codec_comparison/h264_2012/#...

Re: WebM support on 4chan

#53
post #13

Earlier quoted context omitted.

Nice to see this rolled out. In the notes it's mentioned that you won't offer a fallback. Was this a bandwidth consideration or that you decided simply not to try and support the remaining 14%? Or that you didn't want to maintain the infrastructure for transcoding the fallback file. In my experience at work I've found that whilst webm is generally smaller the difference is minute especially when you are dealing with…

We don't have the resources to support transcoding, and since so much of our userbase is on browsers that support it I don't think we would regardless.

Not sure how you're going to solve the WebM hosting issues, but I would be really curious to see a list of issues large sites like 4chan have. I think me and other people would surely like to solve such «sysadmin/developer puzzles» for fun.

WebP is larger than APNG [1] and is supported more widely according to the following table [2]. There is a way to add compatibility to older browser too [3]. Other than that, there are also Opera [4] and Chrome [5] extensions for APNG.

Update: Found a successful APNG kickstarter campaign, which lists some interesting APNG tools and libraries. [6]

Also just tested myself how the filesize compares for different file formats able to host animated content for this source image [7].

     gif    – 679,6 Kb
     apng   – 547,1 Kb
     mp4    – 273,8 Kb
     webp   – 618,9 Kb
(sorry, have no webm converter here)

---

[1] http://littlesvr.ca/apng/gif_apng_webp.html

[2] http://caniuse.com/apng

[3] http://davidmz.github.io/apng-canvas/

[4] https://addons.opera.com/de/extensions/details/apng/?display...

[5] https://chrome.google.com/webstore/detail/apng/ehkepjiconegk...

[6] https://www.kickstarter.com/projects/374397522/apngasm-foss-...

[7] http://37.media.tumblr.com/70a88618cc58ac5ad670ab175f8a1419/...

Re: WebM support on 4chan

#54
post #14

Has anyone had experience optimizing for webm? I really want to support this codec, but it's insanely slow in my experience. I'm finding that it's generally around 4x slower than mp4, but I've also had cases where it's taken up to a minute to encode a file where h264 take under 10 seconds. My use case is to have the best performance/quality ratio for a 30 second video under 3mb. These are my ffmpeg flags: h264: "-vco…

WebM FAQ

Encoding WebM videos seems really slow. What are you doing about that?

Today, encoding VP8 in “best quality” mode is the slowest configuration. Using “good quality” mode with the speed parameter set between 0 and 5 will provide a range of speeds.

Re: WebM support on 4chan

#57

Why not use a tag with the 'loop' attribute to better simulate animated GIFs?

It does use it. You need inline expansion or image hover enabled in settings though - 4chan has traditionally had minimal or no Javascript and this is an artifact of it.

It didn't when I wrote that comment. It works much better now.

Re: WebM support on 4chan

#59

Why not use a tag with the 'loop' attribute to better simulate animated GIFs?

and then, instead of using a browser, use a platform specific app. Persist user agent data so you can remove the captcha, and it will be just like the original 4chan.

I think Apple refuses to approve any 4chan apps for iOS.

Re: WebM support on 4chan

#60

Earlier quoted context omitted.

I'd say Google has its own share of responsibility for the lack of adoption of APNGs. Chromium doesn't support them out of the box.

You really shouldn't blame google, but blame KHTML (who's code base was forked to develop Webkit, and then Blink). KHTML didn't move to support apng until 2010-2011 which was a few years after the webkit fork.

So to get this straight, we should blame the KHTML devs for adding a feature after Google forked it's code? While not blaming Google for never adding the feature?
Post reply on HN