Supercronching videos for embedding in websites with ffmpeg
Supercronching videos for embedding in websites with ffmpeg
@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.
@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.
@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