---
title: Adding PID Mapping Profiles
slug: zen-master/adding-pid-mapping-profiles
docTags: 
createdAt: 2024-12-27T19:32:53.539Z
---

**To add a PID Mapping profile:&#x20;**

:::::WorkflowBlock
:::WorkflowBlockItem
In the main navigation, click **Transformations > PID Mapping Profiles.**
:::

:::WorkflowBlockItem
Click **+ Add**.
The **Create New PID Mapping Profile screen** is displayed.

::Image[]{src="https://api.archbee.com/api/optimize/mzxtTQEvCNIdUNgF2kuwJ/MCykM9w-xpPlxM7T0QT2w_image.png" size="80" width="850" height="998" position="center" alt="Create New PID Mapping Profile screen" showCaption="false"}
:::

:::WorkflowBlockItem
In the **Name** field, enter a name for the PID Mapping profile.
:::

:::WorkflowBlockItem
In the **Tags** field, select one or more of the predefined Tags from the drop-down list.
Tags are used for access control. By selecting a Tag, you are relating this PID Mapping profile to that Tag. Tags are associated with certain roles (through the Users & Roles screen), and roles, in turn, are associated with users and user groups. If you would like to create a new Tag, see [Creating a Tag](docId\:YpM9tw81ap6nq8sTKv4Rd) .
:::

:::WorkflowBlockItem
Under **Default Action**, select the default action that you would like to apply to all PIDs for which a specific Rule **does not** apply. Select one of the following actions:

- **Pass** – passes the PIDs through unchanged, with the existing PID numbers.
- **Set Null** – sets the PID value as null. This is useful for maintaining the integrity of CBR streams.
- **Remove** – removes the PIDs from the st
:::

::::WorkflowBlockItem
Under **SPTS/MPTS**, select the type of stream to which the profile will be applied. Options are: SPTS (default) or MPTS.

:::hint{type="warning"}
If you apply an SPTS profile to an MPTS stream, it will fail.
:::
::::

::::WorkflowBlockItem
Under **Mapping Mode**, select the type of rules that you would like to apply (i.e. the way the PIDs will be selected for processing). Select one of the following types:

- **Elementary PID#** - the number of the incoming PID
- **PID Category** – the general category of the PID (e.g. audio, video, SCTE-35 etc.)

:::hint{type="info"}
If the stream has multiple PIDs of the specified category, then the rule is applied to the first PID and all others are treated with the default process.
:::

- **PID Type** – the specific type of codec (e.g. MPEG1 Video, AVCH/.264, HEVC etc.)\*&#x20;
::::

::::WorkflowBlockItem
In the **PMT Rules** section, you can specify rules for mapping PMTs (optional). If you would like to map the PMts, use the following procedure, for each rule that you would like to create:

1. Click on the **+&#x20;**&#x62;utton.&#x20;
2. Under **Action**, select from the drop-down list the action you would like to apply for this rule. Options are: *Pass, Set Null, Remove,* *Map&#x20;*&#x6F;&#x72;*&#x20;Map Range*.

:::hint{type="info"}
- *Set Null&#x20;*&#x61;nd *Remove&#x20;*&#x61;re only relevant for MPTS
- *Map Range&#x20;*&#x69;s only available if the **Mapping Mode** is **PID Category** or **PID Type**
:::



1. For **MPTS** profiles, in the **Program Number&#x20;**&#x66;ield, enter the program number for which the rule applies.
2. In the **New PID** field, for rules with the Map action selected, enter the new PID that will be applied.
3. In the **New Program Number&#x20;**&#x66;ield, you can enter a new Program Number that you would like to assign to this PMT (optional). If this field is left empty, the original Program Number is retained.
::::

:::WorkflowBlockItem
In the **Elementary Stream Rules** section, for each rule fill in the following details:

1. Under **Action**, select from the drop-down list the action you would like to apply for this rule. Options are: *Pass*, *Set Null*, *Remove* or *Map*.
2. For **MPTS** profiles, in the **Program Number&#x20;**&#x66;ield, enter the program number for which the rule applies.
3. In the PID selection section, specify which PID/s the rule applies to, as follows (depending on the selected Rule Type):
   - For *Elementary PID #* - specify a specific incoming PID number
   - For *Stream Category* – select the desired Category from the dropdown list
   - For *Stream Type* – select the desired Type from the dropdown list
4. In the **New PID** field, for rules with the Map action selected, enter the new PID that will be applied.
:::

:::WorkflowBlockItem
If you would like to add additional rules, click on the **+** button and fill in the fields for the new rule in the same manner as described above.
:::

:::WorkflowBlockItem
If you would like to remove a rule, click on the **-** button.
:::

:::WorkflowBlockItem
Select the **Match PCR to Video PID** checkbox if you would like to force the mapper to put the PCR on the video PID without having to know the PCR PID number in advance.
:::

:::WorkflowBlockItem
Click **Save**.
The PID Mapping profile is added to the list of available profiles.
:::
:::::

**PID Mapping Configuration Parameters Table**

| **Parameter**                         | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                                  | Specify the name of the PID Mapping profile in ZEN Master.                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Tags                                  | Select one or more of the predefined Tags from the drop-down list.<br />Tags are used for access control. By selecting a Tag, you are relating this PID Mapping profile to that Tag. Tags are associated with certain roles (through the Users & Roles screen), and roles, in turn, are associated with users and user groups. If you would like to create a new Tag, see [Creating a Tag](docId\:YpM9tw81ap6nq8sTKv4Rd) .                                                         |
| Default Action                        | Select the default action you would like to apply for PIDs that don’t match a specific rule. Options are:<br />* **Pass** – passes the PIDs through unchanged, with the existing PID numbers.
* **Set Null** – sets the PID value as null. This is useful for maintaining the integrity of CBR streams.
* **Remove** – removes the PIDs from the stream.                                                                                                                           |
| SPTS/MPTS                             | Select the type of stream to which this policy will be applied. Options are:<br />* **SPTS** – Single Program Transport Stream
* **MPTS** – Multiple Program Transport Stream                                                                                                                                                                                                                                                                                                      |
| Rule Type                             | Select the method used for specifying which PIDs the rule applies to. Options are:<br />* **Elementary PID#** - the number of the incoming PID
* **PID Category** – the general category of the PID (e.g. audio, video, SCTE-35 etc.). If the stream has multiple PIDs of the specified category, then the rule is applied to the first PID and all others are treated with the default process.
* **PID Type** – the specific type codec (e.g. MPEG1 Video, AVCH/.264, HEVC etc.) |
| PMT Rules                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Action                                | Select from the drop-down list the action you would like to take.<br />* **Pass** - maintain the original PID value
* **Set Null** - set the PID value as null
* **Remove** - remove the PID from the stream
* **Map** - assign a new value to the PID<br />Note: *Set Null* and *Remove* are only relevant for MPTS                                                                                                                                                               |
| Program Number (for MPTS)             | Enter the program number for which this rule applies.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| New PID/(decimal)                     | Enter the new value you would like to assign to the PID designated by this rule.                                                                                                                                                                                                                                                                                                                                                                                                   |
| New Program Number                    | You can enter a new Program Number that you would like to assign to this PMT (optional). If this field is left empty, the original Program Number is retained.                                                                                                                                                                                                                                                                                                                     |
| ***Elementary Stream Rules***         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Action                                | Select from the drop-down list the action you would like to take.<br />* **Pass** – maintain the original PID value
* **Set Null** – set the PID value as null
* **Remove** – remove the PID from the stream
* **Map** – assign a new value to the PID
* **Map Range** - Corresponding matching PIDS are mapped consecutively from the provided starting PID number (available only if the **Mapping Mode** is **PID Category** or **PID Type**)                                   |
| Program Number (for MPTS)             | Enter the program number for which this rule applies.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Original PID (decimal)/ Category/Type | Specify which PID the rule applies to. Specify either the PID number, Category or Type (depending on which Rule Type that you selected).                                                                                                                                                                                                                                                                                                                                           |
| New PID/(decimal)                     | Enter the new value you would like to assign to the PID designated by this rule.                                                                                                                                                                                                                                                                                                                                                                                                   |
| Match PCR to Video PID                | Select this checkbox if you would like to force the mapper to put the PCR on the video PID without having to know the PCR PID number in advance.                                                                                                                                                                                                                                                                                                                                   |

