Supercronching videos for embedding in websites with ffmpeg

https://xeiaso.net/notes/2024/cronchgif/

Supercronching videos for embedding in websites with ffmpeg

TL;DR: I convert it from video to gif to video

@cadey I like this kind of hack, but why not straight to webm? I tested with a screen recording 21MB in size, 2160x1350, and then ran it through:

ffmpeg -i <input> -vf "scale=800:600" -r 30 -c:v libvpx -b:v 1M -c:a libvorbis <output> and got a 1.9MB file out. With your method, I got a 1.6MB file out of noticeably worse visual quality.

@mble iPhones can't read webm

@cadey I remember that being true in the past - I thought modern iOS versions supported native webm playback?

Tested https://www.webmfiles.org/demo-files/ HTML embed on my iPhone 12 Pro and didn't seem to have issues.

Demo Files – WebM Files

@mble @cadey It’s fairly recent. Quick search shows that full support was added just in March.

https://developer.apple.com/documentation/safari-release-notes/safari-17_4-release-notes

Safari 17.4 Release Notes | Apple Developer Documentation

Released March 5, 2024 β€” 17.4 (19618.1.15)

Apple Developer Documentation