I am trying to convert h264
video to an hls stream which uses h265
codec. As this bitmovin article suggests, we need to use fragmented mp4
for the hls/h265
stream to work on safari.
I am able to convert
h264
toh265
properly using this commandffmpeg -i input.mp4 -c:v libx265 -tag:v hvc1 out.mp4
I am able to convert an input video (
h264
) to hls (fragmented mp4
) using this commandffmpeg -y -i input.mp4 \ -c copy -hls_segment_type fmp4 -hls_time 6 -hls_list_size 10 \ -hls_flags delete_segments+append_list+split_by_time \ -hls_playlist_type vod manifest.m3u8
Now when I use the above command by specifying h265
, the output hls stream does not work in Safari. It throws this error
Plugin Handled Load
Command
ffmpeg -y -i input.mp4 \
-vf scale=640:360 -c:v libx265 -tag:v hvc1 -c:a copy \
-hls_segment_type fmp4 -hls_time 6 -hls_list_size 10 \
-hls_flags delete_segments+append_list+split_by_time \
-hls_playlist_type vod manifest.m3u8
What might be the issue here?