T211745 proposes automatic convertion of HEVC-baed HEIF/HEIC images to a free format (jpg/webp/avif/etc) with retention of the original files so they can be in the future referenced and made available for download. Similar proposals have been made before I believe for H.264 and HEVC .mp4 videos, based on peoples' past workflows with video2commons.
If we accept such files and "silently convert" them to a transformed format that, while lossy, maintains similar compression quality and the video format capabilities, it might resolve some of our difficulties with bringing that tool in-house.
Recommend a spike test working out what it would take to add a transform stage to the API uploadstash pipeline (and thus support in UploadWizard etc) where we could publish the original file into a holding area for such files, and direct the front-end to our replacement .avif or .webm file.
Encoding speed may be a factor for video, but for now we just need to work out the workflow in the MediaWiki internals.
Assigning to myself as my pet project: if result looks workable I'll push for more work time on it.