---
title: ZEC Adding HLS Streams
slug: zixi-broadcaster-v19-new-ui/zec-adding-hls-streams
createdAt: 2024-12-26T19:07:46.031Z
---

This screen enables ZEC to receive an HLS stream. The HLS stream is not protected by the Zixi protocol. There are two options for pulling the stream:

- **Single source (adaptive bitrate)** - the stream can be an adaptive bitrate stream. In this case, ZEC will pull the main playlist to adapt between bitrates according to network conditions.
- **Multiple sources** - it is possible to pull multiple input streams with static individual bitrates. In this case, ZEC will automatically create a separate input for each bitrate.

## To Add an HLS Stream:

:::::WorkflowBlock
:::WorkflowBlockItem
In the ZEC Navigation menu, click **Inputs**.
:::

:::WorkflowBlockItem
Click **Create**.

The **Select Input Type** page is displayed.
:::

:::WorkflowBlockItem
Select **HLS**.

The **Create HLS Input** window is displayed.

::Image[]{src="https://api.archbee.com/api/optimize/mzxtTQEvCNIdUNgF2kuwJ/RAwIf-gNnyFZDozjdhUhK-20260618-070158.png" size="80" width="1432" height="2228" position="center" alt="New HLS Input" darkWidth="1432" darkHeight="2228" showCaption="false"}
:::

::::WorkflowBlockItem
In the **Input Parameters&#x20;**&#x73;ection, in the **Input ID&#x20;**&#x66;ield, enter the unique Stream I.D. for the ZEC.

:::hint{type="info"}
Note this must be identical (case sensitive) to the stream name configured in Broadcaster.
:::
::::

:::WorkflowBlockItem
Select the **Enable Logging** checkbox if you would like to generate event logs for this input.
:::

:::WorkflowBlockItem
Specify the **HLS Settings** (see [HLS Settings Table](https://docs.zixi.com/zixi-broadcaster-v19-new-ui/zec-adding-hls-streams#hls-settings-table) below).
:::

:::WorkflowBlockItem
Specify the **Additional Settings** (see [Additional Settings](https://docs.zixi.com/zixi-broadcaster-v19-new-ui/zec-adding-hls-streams#additional-settings) below).
:::

::::WorkflowBlockItem
Click **Save**.

The “Input added” message appears at the top of the screen. The HLS stream from Broadcaster is added to the ZEC and now appears in the list of streams available in the ZEC inputs UI.

:::hint{type="info"}
If the "multiple sources" option was selected, ZEC will automatically create a separate input for each bitrate.&#x20;
:::
::::
:::::

### HLS Settings Table

| **Parameter**                          | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Master Playlist URL**                | Specify the URL of the HLS stream's master playlist. (e.g., http\://localhost:7777/playlist.m3u8)                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **Download Type**                      | Specify whether the variants will be pulled from a **single source** (adaptive bitrate) or **multiple sources** (pull all bitrates).                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Buffering Time (ms)**                | Specify a buffer time for timing packets according to the stream's clock. This is useful when there are bursts in the rate at which the stream arrives. This feature creates a queue in the buffer, allowing smoother entry into the ZEC. The Buffer Time parameter defines the size of the buffer in Milliseconds. A larger buffer enables smoother entry; however, it may increase the latency. Default: 6000 ms                                                                                                                                           |
| **Start from last segment**            | Select this checkbox to begin downloading from the last segment in the playlist. By selecting this mode, you may lose the previous data in the playlist (i.e., the chunks before the last chunk will not be downloaded), but you will enjoy lower latency.                                                                                                                                                                                                                                                                                                   |
| **Zixi Broadcaster**                   | Select this checkbox if you are pulling the HLS from a Zixi Broadcaster. This will add a parameter in the request to pull the stream so that the origin Zixi Broadcaster can identify the puller and show a single output in the outputs table. If you don't select this option, the origin Zixi Broadcaster will display a different output for each downloaded segment.                                                                                                                                                                                    |
| **Use HTTP parameters for substreams** | If your Master URL has HTTP parameters (e.g., [http://server.com/main.m3u8?user=someuser\&password=somepass\&etc=](http://server.com/main.m3u8?user=someuser\&password=somepass\&etc=)...), the parameters will be propagated as subplaylists and chunks. For example, the master playlist will have a subplaylist: sub\_playlist1.m3u8. In this case, the request for this playlist will be: [http://server.com/sub\_playlist1.m3u8?user=someuser\&password=somepass\&etc=](http://server.com/sub_playlist1.m3u8?user=someuser\&password=somepass\&etc=)... |

## Additional Settings

HLS streams are commonly messy (containing inconsistent timestamps, for example), and if you will be using SCTE-35 to set markers for pre-rolls or ad placements, we recommend the following settings:

- **Remove old SCTE35&#x20;**- "identical" streams might have inconsistent or conflicting SCTE35 messages
- **Inject SCTE35 one segment in advance** - to accommodate various SCTE pre-roll/timing variances
- **SCTE PID** - specify a specific PID or set to **AUTO**
- **SCTE35 MPU&#x20;**-MPU is a specific UPID type that packages multiple identifiers or program labels into a single unit, so downstream systems can associate a cue with several related programs or assets. The value is a 4-letter ASCII string, such as ADFR or NFLX, dependent on the format the downstream receiver will be getting.

::Image[]{src="https://api.archbee.com/api/optimize/mzxtTQEvCNIdUNgF2kuwJ/xi7YEmYDOgWDtz04eGkeR_hls-input-additional-settings-1.png" size="80" width="807" height="2604" position="center" darkWidth="807" darkHeight="2604" showCaption="false"}

### Additional Settings Table

| **Parameter**                            | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Additional Input Settings**            |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Max Outputs                              | Specify the maximum number of concurrent output connections allowed for this stream. You can enter a value manually or use the Up/Down arrows that appear when hovering over the field. Default: Unlimited.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Latency offset (ms)                      | Specify the additional buffering time in milliseconds. Increasing this value can improve stream stability in unstable network conditions, but will increase end-to-end delay. Default: 0 ms                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Inject Metadata                          | Selecting this checkbox allows Zixi to create a PID that carries information about what hops a feed has travelled through on the way to its destination, including things like CC errors and IAT at each hop. The information is useful for debugging issues with streams.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Stats History                            | Select this checkbox to record stream statistics.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Analyze                                  | Select this checkbox if you would like to enable stream analysis for the input.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| SCTE-3&#x35;**&#x20;Injection Settings** |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Inject SCTE-35 on CUE marks              | Select this checkbox to inject SCTE markers into the adaptive stream manifest. SCTE-35 markers found in the source input will be used to segment the stream, and the #EXT-X-CUE-IN/#EXT-X-CUE-OUT tags will be added to the manifest.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Inject SCTE-35 one segment in advance    | Select this checkbox to accommodate various SCTE pre-rolls/timing variances. This allows the SCTE Marker to be injected in the prior segment.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Remove old SCTE-35                       | Select this checkbox to remove any existing SCTE-35 messages from the input, so that they don't get passed to the output.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Support EXT-X-DATERANGE                  | EXT-X-DATERANGE is a way of providing timed metadata in an HLS manifest. It is used to define date range metadata in a media playlist. A possible use case is defining timed metadata for interstitial regions, such as advertisements, but it can be used to define any timed metadata needed by your stream. Select this checkbox to enable this feature                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| SCTE-35 PID                              | Enter a PID number for SCTE-35 injection. You can enter a value manually or use the Up/Down arrows that appear when clicking the field. (or leave as **Auto** to match existing SCTE-35 PID)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| SCTE-35 MPU                              | Enter the Managed Private UPID (Segmentation UPID) name. Allows the declaration of MPU for SCTE-35 metadata. MPU is a specific UPID type that packages multiple identifiers or program labels into a single unit, so downstream systems can associate CUEs in the HLS stream with several related programs or assets. The value is a 4-letter ASCII string, such as ADFR or NFLX, dependent on the format the downstream receiver will be getting.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Remux to MPEG-TS**                     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Remux HLS to MPEG-TS                     | Selecting this checkbox tells the ZEC not to take the segments as-is and concatenate them, but to demultiplex the original transport stream, build frames out of them (video/audio), then multiplex them as a new transport stream. This is useful if the original transport stream inside the HLS can't be used. For example, if it has a discontinuity in every segment, or if the stream is VBR and needs to be delivered as CBR.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Target Bitrate (kbps)                    | Specify the CBR bitrate to target for the padded stream (Pad) or a re-multiplexed stream (remultiplex).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Max PCR Interval (ms)                    | Select the frequency at which the Program Clock Reference is inserted into the output's Transport Stream. Default: ATSC (100 ms)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Maximal DTS-PCR delta (ms)               | Refers to the maximum allowable difference between the Decoding Time Stamp (DTS) and the Program Clock Reference (PCR) in an MPEG-2 Transport Stream (TS). This delta is crucial for maintaining synchronization between the encoder and decoder, ensuring smooth playback without buffering issues or timing errors. Default: 1500 ms                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **Encryption**                           | Encrypt the Input stream as it enters ZEC. The stream encryption prevents any further processing, such as analysis, transcoding, etc.<br />The encryption works in the following way:<br />- **If the stream has been encrypted at the source** - The stream will remain encrypted regardless of the output type. ZEC can only encrypt the stream after it has been decrypted.<br />- **If the stream is being encrypted by the ZEC** - it will be encrypted only if the output is a Zixi Pull or Zixi Push output. All other outputs will send out an unencrypted stream.<br />For more information, see [ZEC Encrypting an Input Stream](https://docs.zixi.com/zixi-broadcaster-v19-new-ui/zec-encrypting-an-input-stream).                                                                                                                                                                                              |
| Encryption Type                          | Select the type of Encryption:<br />- **None** (default) - no encryption<br />- **AES-128** - 32 hex characters (16 bytes) key<br />- **AES-192 -&#x20;**&#x34;8 hex characters (24 bytes) key<br />- **AES-256 -&#x20;**&#x36;4 hex characters (32 bytes) key                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Encryption Key                           | Enter your own Encryption Key or click **Generate Key** to generate a random Encryption Key. The exact key should be used to decrypt the stream on the other end.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| SCTE-3&#x35;**&#x20;Injection**          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Support SCTE-35 injection                | Select this checkbox if you would like the stream to support SCTE-35 insertion.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Remove old SCTE-35 packets               | If SCTE-35 injection is supported, select this checkbox to clear out existing packets.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| SCTE-35 PID                              | Enter a PID number for SCTE-35 injection. You can enter a value manually or use the Up/Down arrows that appear when clicking the field. (or leave as **Auto** to match existing SCTE-35 PID)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Timeout for CBR \[90Khz]                 | Designate an appropriate **timeout interval** when searching for a NULL packet to replace with the SCTE-35 packet to maintain PCR accuracy in CBR streams. You can enter a value manually or use the Up/Down arrows that appear when hovering over the field. If no NULL Packet is detected by the time the timeout is reached, the SCTE-35 will be inserted anyway, breaking PCR Accuracy momentarily. (if stream is VBR, set this to 0). The value is in cycle ticks, so 90,000 = 1000 ms, 180,000 = 2000 ms, etc.                                                                                                                                                                                                                                                                                                                                                                                                       |
| **Recording**                            |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Destination Type                         | Select the radio button for the desired storage type and then fill in the relevant parameters.<br />- **Record to disk –&#x20;**&#x74;he recording is saved on the local disk. It is possible to record to an external destination by replacing the default storage location with a symbolic link. To learn more, see the [ZEC Using an External Storage](https://docs.zixi.com/zixi-broadcaster-v19-new-ui/zec-using-an-external-storage) section.<br />- **Record to S3** – the file is saved to your AWS S3 Bucket. The mechanism uses AWS multipart upload. Amazon advises defining a lifetime rule for objects in the destination bucket.                                                                                                                                                                                                                                                                             |
| ***Record to Disk Parameters***          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| File Name Template                       | Specify the file name pattern that Zixi will use to generate when saving the recorded content. A separate file will be generated for each recording up to the time specified in the Max recorded file duration parameter (see above). After this duration, a new file will be generated.<br />The file name pattern can include any string and up to five variables listed below. Only the %T=HH.MM.SS creation time is mandatory. You can change the order of these variables and add text as long as you maintain the legitimate structure of the file in Linux and Windows:<br />- %S=stream id - optional.<br />- %Y=year - optional<br />- %M=month - optional<br />- %D=day - optional<br />- %T=HH.MM.SS creation time - mandatory<br />- %U=YYYYmmddTHHMMSSZ UTC timestamp<br />For example, the following pattern %Y\_recording%T.ts will generate the following file name 2017\_recording15:32:35.ts.            |
| Max recorded file duration (HH\:MM)      | Specify the maximum time allotted for recording a video stream. Default: 2 hours                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Keep recorded files for (HH\:MM)         | Specify the maximum time for storing the recording. Default: 0 hours                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Custom Path                              | Optionally specify a storage location for the recorded files that is relative to the root folder. This location bypasses the location specified as the root folder in the **Settings >** **HTTPS Administration&#x20;**&#x73;creen.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ***Record to S3 Parameters***            |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| File Name Template                       | Specify the file name pattern that Zixi will use to generate when saving the recorded content. A separate file will be generated for each recording up to the time specified in the Max recorded file duration parameter (see above). After this duration, a new file will be generated.<br />The file name pattern can include any string and up to five variables listed below. Only the %T=HH.MM.SS creation time is mandatory. You can change the order of these variables and add text as long as you maintain the legitimate structure of the file in Linux and Windows:<br />- %S=stream id - optional.<br />- %Y=year - optional<br />- %M=month - optional<br />- %D=day - optional<br />- %T=HH.MM.SS creation time - mandatory<br />- %U=YYYYmmddTHHMMSSZ UTC timestamp - optional<br />For example, the following pattern %Y\_recording%T.ts will generate the following file name 2017\_recording15:32:35.ts. |
| Max recorded file duration \[hours]      | Specify the maximum time allotted for recording a video stream. Default: 2 hours                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| URL                                      | Specify the URL of the S3 bucket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Ignore TLS certificate errors            | TLS certificate for S3 bucket might be detected as faulty if bucket name contains dot\[s]. When this option is selected, Zixi Broadcaster will ignore the TLS certificate errors and transmit the stream to its destination.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Access Key                               | The access key that is used for accessing the S3 bucket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Secret Key                               | The secret key that is used for accessing the S3 bucket.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Billing Code**                         | Billing codes are used to identify and differentiate traffic on a ZEC for billing purposes. When a billing code is added to a Source or Target, Zixi can track the traffic on that ZEC input or output separately from other inputs and outputs on the same ZEC. Billing codes are created by Zixi personnel on the Zixi Customer Portal for a particular organization.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Billing Code                             | Enter the billing code that corresponds to this stream. The relevant billing can be obtained from the organization that received the billing code from Zixi.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Billing Password                         | Enter the password that corresponds to this billing code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Billing Tag                              | Enter an optional tag to help identify, filter, or group the traffic associated with this billing code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Validate                                 | Click to validate the Billing information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

