Label Remove

You can activate this plugin with the string manifest_edit.plugins.mpd.label_remove.

The Label Remove plugin allows you to remove any Label or GroupLabel from a Dash manifest (see 5.3.10 of ISO23009-1 standard).

Some usage examples include removing a Label with a specific word from a Representation or removing a groupLabel with a specific lang field from all Adaptation Sets.

This plugin uses the same "select and edit" approach shared by many others. The "selection" syntax used in Label Remove is common to many other plugins and is described in the following dedicated chapter.

For this plugin, the selection syntax is necessary to specify what Representation or Adaptation Set you want to remove labels from. Further selection of labels to remove is possible in the plugin_config section.

Label Remove configuration

Once you have selected the Representation(s) or Adaptation Set(s) from which you wish to remove a label, you can further specify whether to remove all Labels or just some, based on the content of their id, lang fields or on the content of the label text. This is achieved with the following syntax:

<label | groupLabel>:
  - id: <regular expression, optional, default=".*">
    lang: <regular expression, optional, default=".*">
    data: <regular expression, optional, default=".*">

Having in mind the two examples cited in the introduction, the right configuration to remove a label with the words "Standard Definition" in the label text, from all Representations in a "video" adaptation set, would be

mpd:
- manifest_edit.plugins.mpd.label_remove:
    periods:
      - '*' : '.*'
        adaptationSets:
          - contentType : 'video'
            representations:
              - '*': '.*'
                plugin_config:
                  label:
                    - data: "Standard Definition"

The following configuration can be used instead to remove a groupLabel from all adaptation sets, based on the label lang field:

mpd:
- manifest_edit.plugins.mpd.label_remove:
    periods:
      - '*' : '.*'
        adaptationSets:
          - '*': '.*'
            plugin_config:
              groupLabel:
                - lang: '^en$'

If you simply want to remove all labels or groupLabels, you can just use "select all" regular expression .* for any of the label field. Here is an example:

mpd:
- manifest_edit.plugins.mpd.label_remove:
    periods:
      - '*' : '.*'
        adaptationSets:
          - '*': '.*'
            plugin_config:
              label:
                - id: '.*'
              groupLabel:
                - id: '.*'

You can find additional examples of configuration in the Included Use Cases chapter.