❓ What?

It turns out iOS Photos does not support H264 files and apparently, also SVG. For a list of supported formats for Photos, Apple says this:

Your photos and videos are stored in iCloud in their original format at full resolution. Formats include HEIF, JPEG, RAW, PNG, GIF, TIFF, HEVC and MP4, as well as special formats you capture with your iPhone or iPad, such as slo-mo, time-lapse, 4K videos and Live Photos. The photos and videos you capture with these devices are in HEIF and HEVC format.

https://support.apple.com/en-gb/108782

Some apps like Localsend have an option in Settings that goes like, “Save Media to Gallery,” which, for convenience reasons, tries to save media to the Photos app where most people are likely to look. However, this does mean that you can’t easily drop your remuxes or whatever media you have on-hand to your iphone and expect the transfer to succeed. Worse, the error surprises you only at the end of the file transfer.

🎤 How?

The simplest option is to, of course, disable options like “Save Media to Gallery” which would then save that file into the Files app, which would play the media in a supported app. Everything works well then. But what if you want the media in Photos? The only answer is that you cannot do that. You need to convert the file into a supported format to do that. I read it as Photos being solely meant for personal media and videos, but this is not entirely in-line with iOS apps because Instagram, for example, can only access Photos to look for media. What if I want to upload some H264 encoded media? I cannot, and that kinda sucks on a premium phone. Hey, but I can always share from Files, right? Nope.

So what are my options if I want to upload unsupported media from Files to apps like Instagram?

  1. Use another device.
  2. Convert file (lossy) into a supported format such as H265 or Reexport it from your video editor if it’s content.

What are my options to share unsupported media to an iOS device?

  1. Airdrop if you have another Apple device. It will save supported media to Photos and unsupported media to Files automatically!
  2. Localsend (with Save Media to Gallery turned off) - https://localsend.org
  3. Snapdrop - https://snapdrop.net

Okay but do you know that you can drag and drop things from Files to Photos? Yup, but it does not make unsupported file types magically work.

If you have other leads, please let me know.

👓 References

https://github.com/localsend/localsend

https://support.apple.com/en-gb/108782

https://old.reddit.com/r/premiere/comments/1bwkvvg/exporting_h264_video_and_saving_to_iphone/