Using Output Templates
Instead of manually creating an ouput and then connecting the output to an input, you can define output templates with rules for automatic creation of outputs with predefined settings. The template includes an Input pattern. When an input pattern matches the pattern of an incoming input stream, the output is created automatically.
To create a new Output template:
- Click the Outputs tab at the top of the Zixi Broadcaster administrative screen.
- In the Menu bar, click the Templates (
The Output Templates window is displayed: ) button. - Under Input ID Parameters, click +.
The New Output Pattern Template window is displayed: - In the Input Pattern field, enter a pattern for the Stream ID of the input stream for which an output will be automatically created. 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".
- Click Apply.
The newly created input ID pattern is added to the Input ID Patterns list. - From the Input ID Patterns list, select a pattern for which you want to relate an output template.
- In the Output Template Description section click the “+” button.
The New Output Template window is displayed: - In the Output Name field, enter a name for the output that will be created. The name can include variables used in the Input Pattern field. For example, the pattern "$1_ouput_stream_$2kps" will eventually create an output "talk_show_output_stream_600kbps", as it uses the variables that were defined in the Input Pattern field.
- Select the desired output type and fill-in the relevant Output parameters according to the instructions of the relevant section:
- UDP Output – Follow the instructions in the Adding UDP Outputs section.
- RTMP Output – Follow the instruction in the Adding RTMP and RTMPS Outputs section.
Pull Output - Follow the instruction in the Adding Pull Outputs section.
Push Output - Follow the instruction in the Adding Push Outputs section.
- TCP Output - Follow the instruction in the Adding TCP Outputs section.
- HTTP Push - Follow the instructions in the Adding HTTP Push Outputs section. Note that the Target URL field can also use the same variables used in the Input Pattern field. For example, "https://s3.amazon.com/zixi/$1_folder_$2kbps".
- AWS Output - Follow the instructions in the Adding AWS Outputs section. Note that the URL field can also use the same variables used in the Input Pattern field. For example, "https://s3.amazon.com/zixi/$1_folder_$2kbps".
- RIST Output - Follow the instruction in the Adding RIST Outputs section.
Click OK.
The template is added to the Output Template Description list. When an input pattern will match the pattern of an incoming input stream, the defined output is created automatically.