When using the feature/h265
branch of SRS server, the segment files of HLS is always mpegts, whatever publishing by RTMP or SRT.
It works for VLC, but fail for Apple Safari, because Safari requires fMP4 segment file of HLS. But Safari is the premier usage for hevc in H5.
Does SRS supports HLS with fMP4?
SRS doesn't support fMP4 with H.265 for HLS, and there is no plan right now, at 2021.12.
There is a workaround, use FFmpeg to covert RTMP to HLS with H.265, please read here.