---
title: ZEC Adaptive Groups Templates
slug: zixi-broadcaster-v19-new-ui/zec-adaptive-groups-templates
createdAt: 2024-12-26T19:55:08.140Z
---

Instead of defining adaptive groups in advance and then relating specific input streams to these groups, you can define templates with rules for automatic grouping of streams in adaptive groups. Every time a new input stream, which matches the conditions of the template, is added, it will be automatically added to the adaptive group that was defined in the template. Specific streams are identified by naming patterns and added to the group by setting static naming patterns and bitrates or dynamic patters.

## To create a new adaptive group template:

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

:::WorkflowBlockItem
Click the **Templates** button.

The **Adaptive Group Templates** page is displayed:

::Image[]{src="https://api.archbee.com/api/optimize/mzxtTQEvCNIdUNgF2kuwJ/KMJOOF46QSmL-czAyXMMN_adaptive-create-template.png" size="80" width="918" height="240" position="flex-start" darkWidth="918" darkHeight="240" showCaption="false"}
:::

:::WorkflowBlockItem
Click the **Create Template** button.

The **Create Adaptive Group Template** page is displayed:

::Image[]{src="https://api.archbee.com/api/optimize/mzxtTQEvCNIdUNgF2kuwJ/ZfhyKTOzb-qLXWJdezJ26_adaptive-create-template-form.png" size="80" width="814" height="1116" position="flex-start" darkWidth="814" darkHeight="1116" showCaption="false"}
:::

:::WorkflowBlockItem
In the **Template&#x20;**&#x73;ection, in the **Input ID Pattern** field, enter a pattern for the Stream ID of the input stream that will be automatically added to newly created adaptive group. This pattern will be used to identify the input stream and can include variables that are marked with the "$" sign followed by a number (e.g. $1, $2, etc.) and/or with an asterisk "\*" wildcard. The patterns should also include a part of the string that requires an exact match. For example, the pattern "$1\_stream\_$2kbps" will match an input stream "talk\_show\_stream\_600kbps". String parts that were matched again $X variables, can be reused in other settings, however, string parts that were matched against an asterisk wildcard cannot be reused in other settings.
:::

:::WorkflowBlockItem
In the **Adaptive Group Name** field, enter a string that will be used as the name of the adaptive group. You can use the $X variables that were used in the Input ID Pattern field above. For example, based on the above example, if you write "$1\_group", the group name will be "talk\_show\_group".
:::

:::WorkflowBlockItem
Under **Group Properties**, select the checkboxes of the protocols with which these streams will be transmitted (HLS, CMAF (DASH + fMP4), HLS over multicast).
:::

:::WorkflowBlockItem
If you want to record an HLS stream select the **Record** checkbox.
:::

:::WorkflowBlockItem
In the **Keep recorded files for \[minutes]** field specify the maximum time (in minutes) to record. Default: the time defined in the global settings, specified in the **Settings > Live Protocols** screen in the **HLS DVR Maximum Recording Duration** field.
:::

:::WorkflowBlockItem
In the **File name template** field, 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 Keep recorded files for minutes parameter (see above). After this duration, a new file will be generated.

The file name pattern can include any string and up to three variables listed below. Only the %T=HH.MM.SS Timestamp 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:

- %G = Group Name – optional
- %N = Sequence Number – optional
- %T=HH.MM.SS Timestamp - mandatory
:::

::::WorkflowBlockItem
Under **Streams**, select the method in which the streams in the adaptive group will be created:

- **Static Set**: if the input streams do not have the bitrate value in their ID names, you can manually define the ID and the bitrate for each stream that will be included in the group. You can define streams that are not currently connected, but will be connected at a later stage.

:::Paragraph{indent="1"}
**To add a Static Set:**
:::

:::Paragraph{listStyleType="disc" indent="2"}
Click the **+ Add Stream** button
:::

:::Paragraph{listStyleType="disc" indent="2"}
In the **Steam pattern&#x20;**&#x66;ield, enter a pattern for the stream ID (you can use the variables used in the Input ID Pattern field and add additional variables as needed). This pattern will be used to identify the stream and add it to the group (e.g. "comedy\_HD").
:::

:::Paragraph{listStyleType="disc" indent="2"}
In th&#x65;**&#x20;Bitrate \[Kbps]&#x20;**&#x66;ield, enter the Bitrate value of the stream.
:::

:::Paragraph{listStyleType="disc" indent="2"}
Click the **+** button for as many streams as you want to include in the group and repeat the steps above for every stream that is added to the group.
:::

- **Dynamic Acquisition**: this method will automatically add input streams that match the defined **Input ID Patter**n and give them a bitrate value based on the **Bitrate pattern**. This option is based on the assumption that the bitrate value is part of the input stream's ID. Based on the example above, by entering the value "$2" in the **Bitrate pattern** field, the system will automatically add the incoming "talk\_show\_stream\_600kbps" stream, while giving it a 600 Kbps Bitrate setting (according to the definition in the **Input ID Pattern** field, the $2 was assigned a value of 600kps). If another stream that matches the input ID patters comes in (e.g. talk\_show\_stream\_700kbps") with a different bitrate, for example, 700kbps, this stream will be also added to the same adaptive groups, however the bitrate setting will be 700 kbps.

:::Paragraph{indent="1"}
**To add a Dynamic Acquisition bitrate pattern:**
:::

:::Paragraph{listStyleType="disc" indent="2"}
In th&#x65;**&#x20;Bitrate Pattern&#x20;**&#x66;ield add the pattern as described above.
:::
::::

:::WorkflowBlockItem
Click **Save**.

The new template is added to the **Adaptive Templates&#x20;**&#x6C;ist.
:::
:::::

