Sending metadata to the Z/IPStream R/2 integrated Triton encoder

Updated by Bryan Jones

The Z/IPStream R/2 includes facilities for managing and sending metadata from your automation system to the Triton Station Manager included in your Z/IPStream R/2. The metadata server in the R/2 (called Metadata2) is controlled by a separate Windows application, named "metadata2ui.exe". Download the Metadata2 application that matches your version of the R/2 here:

Download and then double-click the metadata2ui.exe icon to run it. The following window appears:

Follow these steps to create connections to one or more Z/IPStream R/2 devices. Next time you return to this app, the previously defined connections will be remembered and displayed.

  1. From the File menu, select “New connection…”.
  2. Enter a display name and the IP address for the R/2 you wish to control.
  3. Press OK when done.

The newly defined connection will be displayed in the main window:

Click the “Connect…” link to establish a connection to this R/2. The metadata server management window is displayed:

We’re now ready to configure the Metadata2 server.

Before you continue, please note a useful troubleshooting tool found under the “File” menu, called “Show logs.” Selecting this option opens a separate window, which displays messages from the server in real-time. Choosing show logs gives you an idea of what the metadata server is doing (or not doing).

Metadata2 Concepts

Before we jump into configuring the Metadata2 server, let’s take a moment to understand how the server handles metadata. A signal flow diagram best describes how metadata passes through the server:


“Sources” accept metadata from external systems like your automation system. They use Lua “filters” to parse the incoming metadata messages into separate fields, which are sent together as a metadata packet.

Lua is a lightweight, high-level, multi-paradigm programming language designed primarily for embedded use in applications. Find more information about Lua here.


“Aggregators” can combine metadata packets from different signal paths into one path. Aggregators may not be needed if you use only one Source.


“Translator” blocks can add new metadata fields or change field values according to user-specified rules.


“Control” blocks use advanced matching rules to take action when specific metadata messages arrive. Control blocks can enable/disable other blocks, according to user-specified rules. Control blocks only pass metadata packets downstream when the rules match; non-matching packets get discarded.


“Output” blocks take metadata packets and use “templates” to format them as needed by an external system. They then send the formatted metadata message to the external system.

The sections below describe each block type further and give examples of their use to accomplish various tasks.

Sources - Ingesting Metadata

The Metadata2 server accepts metadata from many systems and in many formats using the LUA software language for filtering.  Your system must have a compatible input filter that matches the incoming format of your metadata. Telos can assist in providing a basic input filter and can also provide custom filters to meet special cases for a small fee.

Adding a new filter

If a filter for your system does not already exist, you can add filters by connecting the Metadata2 application and following these steps.

  1. From the File menu, select Filters.  A list of filters that already exist in your system will be displayed.  Click the Add button to add a new one.
  2. A blank Text Editor window is displayed like this:
  1. Supply a Name for your new filter. In this example we will use a filter for Dalet that parses XML data, so we will call this filter Dalet - XML
  2. In the large window below the name, copy and paste the entire contents of your filter as shown here: 
  1. Finally, click the Save button.
Filters and Templates are written in plain text languages, such as Lua, so that customers may write their own as desired. We suggest using a text editor that supports the Lua language. There are many. Visual Studio Code is free, cross-platform, and supports the Lua language.

Adding a new source

There are three methods for obtaining incoming metadata.

  • Accept Incoming TCP Connections (TCP Server Source)
  • Accept incoming UDP Connections (UDP Source)
  • Connect to remote system over TCP (TCP Client Source)

The capability of your automation system determines the method used. In this example, we will “Accept an incoming TCP connection” from our Dalet system.

  1. From the “Sources” menu, select “Accept incoming TCP Connections.” The following dialog is displayed:
  2. Enter a Display name, for example, “Dalet Main.”
  3. Enter a TCP server port that the R2 uses to listen for data from your automation system. It can be any valid TCP port; however, it must be unique. You can not define two sources with the same TCP Server port. We'll use 9995 for this example.
Note that the R/2 can also accept metadata that not destined for Triton Digital Station Manager. Non-Triton metadata is set up via the main webpage of the R2 by following the Metadata link. The uniqueness of the TCP port must be across all connections. You can not use the same ports in this setup and in the main web interface where you would set up data for a more traditional SHOUTcast or Icecast server.
  1. In the "Filter" field, select your newly created "Dalet - XML" filter or whatever filter is needed for your automation system.
  2. Leave the "Code page" field as "<default>" then click the "OK" button.

The completed information looks like this.

We now have a metadata source that accepts metadata from the Dalet system you just defined. The main window shows the newly created metadata source. 

You may repeat the steps above to define additional sources.

Adding a Translator block

Most installations require translation of some data, and so a Translator block will almost always be required. At a minimum, it is needed to insert a station name if used with the Triton encoder. Follow these steps to add a translator block:

  1. From the “Converters” menu, select “Translator.” The following dialog is displayed:
  2. Enter a short, descriptive display name for this translator. Make sure that the name is unique and not previously used.  In this example, “Dalet Translator” is used.
  3. From the "Source" drop-down list, select the entry that serves as the metadata source for this block. In this example, it is the "Dalet Main" source block created in the previous step.
  4. Click the “Add Field” button. The “Add Field” dialog is displayed:
  5. Enter the name of the field you wish to add. This field is case-sensitive, so make sure it matches exactly to what the system expects. In this example, we need to add the mount name for the stream.
  6. Enter the field value. In this example the mount name is WZIPFM.
  7. In the "Behavior" field, you must select whether to overwrite or keep the previous value if the field already exists. For this example, select Overwrite.
  1. Click OK when done.

Transforming field values of existing data

A “translator” block also allows you to change field values according to the rules you specify.

  1. Create a “translator” block, as described above.
  2. Click the “Change Field” button. The following dialog is displayed:
  3. Enter the name of the field, making sure that it uses the same case conventions as expected by the system. In this case, we are modifying the "cue_type" field. The cue_type field is used by Triton to determine if an event is a song, commercial, liner, or others.
  4. In the "Match value" field, enter a value or a pattern to match. The value matching is not case-sensitive. You may use DOS-style pattern matching where '?' matches any one character and '*' matches the remainder of the string. For example, to match any value that starts with "abc", use "abc*." If you want to match any value, use '*' alone. For this example, we want to match the value COMMERCIALS, as this is what is sent by Dalet.
  5. In the "New value" field, enter the replacement value. In this example, enter "ad" (note lower case) as this is the value Triton uses to determine this is a commercial.

The completed dialog will look like this:

  1. Click “OK” when done. 
  2. Repeat steps 2-6 for each field value you wish to match, changing the values to either ad, track, or sweeper. In this example, commercials translate to "ad," songs translate to "track," and everything else translates to "sweeper."
When done with the field values, pay close attention to the order of the rules. Rules get applied in the order they appear in the list, you want the more general match pattern to be last. If you put a rule that matches "*" in the list above other rules, they would always match, and the rest of the rules would get ignored. Use the move up/down buttons to change the rule order until you have it the way you want it. Note that in this example, we have a wild card "*" rule as the last items used to catch any items which do not get matched above.
  1. When done, click the “OK” button to save the translator.  Here is a completed Translator block.

A few notes about translations regarding Triton

  • “track” - are generally songs or any metadata where you want the Title and Artist displayed on your player.
  • "ad" - are generally events that instruct Triton that you are playing an advertisement. Use "ad" to trigger an ad insertion on your stream.
  • "sweeper" - generally everything else. These are events like liners or jingles. They STOP any commercial insertion happening on the stream and do NOT update the Title and Artist information.

Sending your metadata - Output

An "output" block accepts metadata packets (made up of individual metadata fields) and uses "templates" to generate a message in the format expected by the external system. The output block then sends the metadata message to the target system. In this example, we are sending our Dalet data to Triton.

Use these steps to create an output block:

  1. From the “Outputs” menu, select “Send output over TCP.” The following dialog is displayed:
  2. Enter a display name and then select the source block from the "Source" drop-down list. In this example, we'll use "WZIPFM to Triton" for a Display Name, and select our Dalet translator created in the previous step.
  3. Select a template from the "Template" drop-down list. In this case, please select the "stwcue" template as this is the template used for sending data to Triton.
  4. Leave the “Code page” as <default>.
  5. Enter a destination IP address and port in the "Destination" field using a ":" as the separator between the address and port. For example, if the IP address is "," and the port is "1234," you would enter "". Since we are sending data to another port on the R/2, use "" as the address (this is the loopback interface address). For this example, use with a TCP port of 31314.  
  6. Click “OK” to save the output block. 

Your completed block should look like this:

Final notes regarding metadta

The Sources and Translators will be unique to each station that you configure on the Z/IP Stream R2.  The outputs, even though they will have a different name, will almost always be configured using the “stwcue” template and will always be output to

How did we do?