Use AV1 video format in Firefox and Chrome
The beta API now encodes two standard versions after an upload using H.264 and AV1 codecs.
Encoding the standard version now takes a bit longer than before. This can probably be tuned later on.
After encoding has finished, the AV1 format can be requested like the current request under /files
, but with an added query param format=av1
.
We now need to add logic to select the proper format. The compatibility situation is bad: https://caniuse.com/av1
I guess it makes sense just to whitelist the supported browsers that we also want to support (Firefox and Chrome, desktop and mobile) and their respective minimal versions. Incompatible browsers like Firefox on mobile and the rest always get H.264.
Edited by Koch, Anton