The main format behind it is WebM and mp4 as fallback. Imgur for example has their own little gifv thingy, that in reality is just a muted video, which auto-plays and loops. Here’s an SO thread if you want to dig more into it. If I understand right, for instance, Linux distributions do not support mp4 out the box, because of the fees. What that means is: although you can freely upload mp4 videos to internet without worrying about royalties, but the companies implementing mp4 to their products need to pay a royalty fee. But, it’s not open source nor royalty free. Unsurprisingly mp4 is the most supported one. Here’s the video formats commonly in use in the web and the browser support: Video format browser support If we’d like to use a video instead of a gifs, the video replacement should more-or-less fill this criteria. "Old tech" does not necessarily equal bad, we still use hammers for example. ![]() Videos can act like gifs and have a much effective compression algorithm, videos also don’t need to be fully loaded to start the playback. But gifs were never meant to handle anything else than simple graphics. Gif is an extremely inefficient way to pack video, where as the static gif image is pretty good format for showing graphical shapes with few colors. The technology behind animated gifs is old and clunky, a remnant of the 90s clipart and guestbooks internet. Technologically speaking gifs are in the same club with Macintosh II, Windows 1, and floppy disc. Graphics Interchange Format, invented in the late 80s, still persisting in our daily lives. Offer an integration piece with imgur that uses imgur to do this … any gif larger than X gets sent to imgur for recompression.I originally wrote this post in 2015, but I’ve now (2020) rewritten it. Get ffmpeg into our base image and do the webm and mp4 conversion for all animated gifs, don’t worry about the flash fallback. If people hotlink anything larger than say 10mb force a “click” to actually download the image and hide it behind a preview I see a few actionable things we can do here: It’s really just a video element with a bunch of fallbacks. Gifv technique championed by imgur is good It does not sound like a good default for Discourse: maybe it is possible to create it as a plugin?Ĭhrome does a terrible job with huge gif files, they can choke the web browser and cause all sorts of nasties not to mention mobile paying a hefty price on traffic and blowing data plans. Such native functionality requires ffmpeg as a dependency and comes with additional security risks. webm versions (we could add another setting: convert only. We would have an additional setting replace. webm it would be just an extension to already existing download remote images to local feature. ![]() We can replicate functionality with ffmpeg alone (see 4chan’s guide to converting GIF to WebM). I don’t think they (gfycat) do anything magical beside handling hight traffic quite well. webm into posts via background job would be of course more elegant. gif with video in post (see section “How can I embed these or link to them?”)Ĭustom plugin which bakes. It downloads&converts remote image (if not already present) and returns JSON with video details. ![]() Lets say JS iterates over posts and if it finds. Quick hack would be to just use API.Īssuming one does not mirror remote images, I think it is achievable even with pure Javascript which you can add via /admin/customize/css_html. Some communities would benefit from such functionality.Įspecially ones with download remote images to local setting enabled, but faster page loads alone is a good reason to think about it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |