Open DravitLochan opened 3 years ago
mp4hls
muxes the content into ts container while for HEVC Apple requires fragmented mp4 container (look for 1.5. The container format for HEVC video MUST be fMP4
at https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_for_apple_devices ).
This can be achieved by using mp4dash
with parameter hls
.
There are/were other obstacles in using HEVC with Safari, one of them is preference of hvc1
tag as opossed to hev1
, that part you satisfy according to your ffmpeg log output. The second was that even with proper HEVC codec strings in m3u8 the playback did not start, while Safari was happy to play the stream if omitted. Not sure if it is still a problem in recent versions of Safari.
I am trying to generate and play a HLS stream in HEVC codec using bento4's
mp4hls
command. The issue is that when I upload the stream on S3, it is not playing on Safari (Note: stream is not working/playing from local as well).Since HEVC has added benefits, I prefer keeping the codec to h265 only.
Another point to note here is that I manually converted the
mp4
file fromh264
toh265
. If there's a way to achieve the above config without generating an intermediate h265 mp4, I'll be happy to use that as well.Command used:
ffprobe of the file is
EDIT: Question raised on SuperUser while I was trying
ffmpeg
for the same task: https://superuser.com/questions/1661921/generate-hls-with-h265-codec