6 ms·
Does it auto-play? Can it replace gif?
by ghjuuhhhy 6y ago
Does it auto-play? Can it replace gif?
- afavour 6y agoAny muted video can already auto play, irrespective of format.
- chrismorgan 6y agoThis is not true. Firefox readily supports blocking all video autoplay (Permissions → Autoplay has three choices: Allow Audio and Video; Block Audio; Block Audio and Video), which I gladly use. And I really wish animated images were treated the same, because it’s a bug that they’re not, but a well-entrenched one that’s nigh-impossible to fix.
- oehtXRwMkIs 6y agoIdk, as a user blocking all autoplay sounds great to me.
- chrismorgan 6y agoThatʾs what I said. I was correcting the parent comment that said that you couldnʾt block autoplay of muted videos. I block all video autoplay, and wish I could block animated image autoplay also.
- folmar 6y agoThis is the default, but some media sites have made autoplay videos _the_ next-gen whole page popups, so I gladly switched to block all. It also saves a lot of bandwidth.
- ehsankia 6y agoMaybe this is a stupid request, but I'd like <img> (or maybe the newer <picture> tag) to take a video but with autoplay=true, loop=true, muted=true and controls=false when given a video source
- gardaani 6y agoSafari already supports playing MP4 in <img> tags [1]. I think that's how "animated GIF" type of animations should be handled in the Web. It's silly that there are video formats with excellent compression but image formats want to reinvent it (such as animated PNG, animated WebP, animated AVIF...). It just adds extra complexity to image formats. [1] https://developer.apple.com/documentation/webkit/delivering_video_content_for_safari#3030249 https://developer.apple.com/documentation/webkit/delivering_...
- BlueTemplar 6y agoIt's the other way around for "animated AVIF". It's 2 generations better than H.264 used in MP4, and (basically) not patent-encumbered.
- ehsankia 6y agoAh, that seems exactly like I was asking for, unfortunately in the 3 years since Safari added it, I can't find much pick up on it. I found this on Chromium but with not much progress. It seems their code path doesn't quite let img decode a video, I assumed it would be as easy as creating a fake <video muted loop autoplay> but it's probably much more messy. https://bugs.chromium.org/p/chromium/issues/detail?id=791658 https://bugs.chromium.org/p/chromium/issues/detail?id=791658
- IshKebab 6y agoRight but you can't put videos in an img tag so they can't really replace GIFs. E.g. in GitHub issues you still are forced to use GIF.
- auscompgeek 6y agoGitHub issues let you attach videos since last month: https://github.blog/changelog/2020-12-16-video-upload-public-beta/ https://github.blog/changelog/2020-12-16-video-upload-public...
- IshKebab 6y agoOMG finally! I've been waiting for years.
- BlueTemplar 6y agoNor in documents : many PDF readers (including browsers ??) don't seem to be able to read MP4 in PDFs, EPUB doesn't support MP4, and MHTML has been discontinued for some weird reason (at least Libre Office displays MP4 in ODT just fine, but it has other issues). Maybe this is due to the patents in MP4 ? And GIF is supported but is just too big.
- franey 6y agoYou bet. I've played around with AVIFS and it can autoplay and loop. I made gif2avif.com for fun, but I can't promise that it will work well.