HLS
An input type that allows Smelter to consume HLS playlists.
Usage
To use HLS Input you must register it first. You can do it by sending a request like this:
Example request
POST: /api/input/:input_id/registerContent-Type: application/json
{ "type": "hls", "url": "https://example.com/playlist.m3u8"}See HTTP Routes documentation to learn more about managing inputs.
Reference
Type definition
type HlsInput = { type: "hls"; url: string; required?: bool; offset_ms?: f64; decoder_map?: DecoderMap;}Parameters for registering an HLS input.
Properties
url
URL of the HLS playlist.
- Type:
string
required
Determines if the input stream is essential for output frame production. If set to true and the stream is delayed, Smelter will postpone output frames until the stream is received.
- Type:
bool - Default value:
false
offset_ms
Offset in milliseconds relative to the pipeline start (start request). If unspecified, the stream synchronizes based on the delivery time of the initial frames.
- Type:
f64
decoder_map
Assigns which decoder should be used for media encoded with a specific codec.
- Type:
DecoderMap
DecoderMap
Maps codecs to the provided decoders.
Type definitions
type DecoderMap = { h264?: 'ffmpeg_h264' | 'vulkan_h264';};Properties
h264
H264 decoder configuration.
- Type:
'ffmpeg_h264' | 'vulkan_h264' - Default value: If available
vulkan_h264will be used, otherwiseffmpeg_h264 - Supported values:
"ffmpeg_h264"- Software H264 decoder based on FFmpeg."vulkan_h264"(Required feature: vk-video ) - Hardware decoder. Requires GPU that supports Vulkan Video decoding.