Q2.How to stream HLS format using encoding mode - NDI Encoding/Decoding Series - kiloview

Q2.How to stream HLS format using encoding mode

12/30/2025 / 1141

Problem Background

Using HLS streaming in encoding mode, it is not possible to successfully stream to YouTube using the HTTP URL and Key provided by YouTube.

Common Troubleshooting Approaches

  1. There is a slight difference between using HLS protocol and RTMP protocol to stream to YouTube. When using HLS protocol, it is necessary to add "stream.m3u8" at the end of the streaming address URL. This is because the HLS protocol is a container format based on HTTP live streaming, which requires generating an M3U8 playlist file to describe the composition of the video stream. The purpose of adding=stream.m3u8 is to inform the YouTube server that this is an HLS format video stream that requires parsing the M3U8 playlist file to obtain video shards. Only in this way can YouTube correctly receive and process the HLS video streams pushed over.
  2. For example:

The URL generated by YouTube is:
https://a.upload.youtube.com/http_upload_hls?cid=urh1 -d8av-ut4x-e4hw-e2h6©=0&file=

Among them, urh1-d8av-ut4x-e4hw-e2h6 is the StreamKey, which is automatically included when generating the URL and does not need to be manually filled in.

So the streaming address filled in on HLS should be:

https://a.upload.youtube.com/http_upload_hls?cid=urh1 -d8av-ut4x-e4hw-e2h6©=0&file=s

tream.m3u8
image.png