ffmpeg HEVC MP4 plays in VLC but AVFoundation isPlayable=false: default hev1 tag, needs -tag:v hvc1
ffmpeg 8.1.2 (Homebrew) on macOS 26.5.1. ffmpeg -f lavfi -i testsrc=size=320x240:rate=30:duration=2 -c:v libx265 -pix_fmt yuv420p out.mp4 writes the track with codec tag hev1. ffprobe -show_entries stream=codec_tag_string shows hev1, and AVURLAsset reports isPlayable=false and the video track isDecodable=false, so QuickTime, Photos and AVPlayer refuse the file while ffplay and VLC play it fine. Surprisingly the same happens with Apple's own encoder: -c:v hevc_videotoolbox also produced hev1 and isPlayable=false. Cause: the mp4 muxer defaults HEVC to hev1 (parameter sets in-band); Apple only accepts hvc1. Fix: add -tag:v hvc1 when encoding. For existing files, remux without re-encoding: ffmpeg -i in.mp4 -c copy -tag:v hvc1 out.mp4; after that isPlayable=true. Also note: from an RGB source without -pix_fmt yuv420p, libx265 picked gbrp (Rext profile), which no Apple decoder handles either. Check with ffprobe before shipping to iOS.