Skip to main content

Hls

NameTypeDescription
locationobjectThis will override any location defined within the parent of this manifest.
file_patternstring
This describes the target file name. Placeholders such as {source_basename} for source file name are supported.
default: {source_basename}
versionenum                          
3
4
5
6
7
8
9
10
11
12
The HLS version for packaging. default?.
ietf_draft_versionintegerAttributes and tags newer than the version listed here may be omitted.
primary_layer_uidstring
If one of the included targets has a matching UID, it will be listed as the first layer in the hls.
include_iframe_manifestsbooleanIf the individual layers have i-frame/trick play manifests, include these in the master manifest. This requires HLS version 4 or greater.
master_manifest_iframe_references_locationenum                          
before_media
after_media
Position i-frame/trick play manifest references befopre or after the media manifest references in the master manifest.
media_playlist_locationobjectThe location of media playlist m3u8's.
media_playlist_url_prefixstringThe URL prefix to be added to media playlist locations.
media_playlist_file_patternstring
The file pattern of the media playlist m3u8's.
default: {source_basename}
manifest_locationobjectThe location of the master m3u8's.
manifest_file_patternstring
The file pattern of the master m3u8's. Example: {source_basename}_master_manifest.m3u8
default: {source_basename}
align_to_av_mediabooleanFor subtitles only, align duration and segmenting to A/V media time.

Example hls

{
"uid": "package_hls",
"kind": "package",
"payload": {
"kind": "hls",
"location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_output_folder/hls_manifests",
"attributes": [
{
"name": "ContentType",
"value": "application/x-mpegURL"
}
]
},
"file_pattern": "master_manifest.m3u8",
"segmentation_mode": "segmented_ts",
"segment_duration_sec": "6",
"force_original_media": false,
"media_location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_output_folder/hls_media",
"attributes": [
{
"name": "ContentType",
"value": "video/MP2T"
}
]
},
"media_file_pattern": "{source_basename}.ts",
"hls": {
"media_playlist_location": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_output_folder/hls_manifests"
},
"include_iframe_manifests": true,
"primary_layer_uid": "Layer4"
}
}
}