ZEC Adding SRT Streams

SRT (Secure Reliable Transport) is an open-source video streaming protocol that brings pristine quality, low-latency live video over the public internet. This input enables the ZEC to pull an SRT stream from the source. The connection is initiated by ZEC. The connection can be password protected.

More details about SRT can be found at Secure Reliable Transport (SRT)

To add an SRT Stream:

  1. In the ZEC Navigation menu, click the Inputs.

  2. In the Menu bar, click New Input. The Add a new input stream window is displayed.

  3. Enter the unique Stream ID for ZEC.
    Note: this must be identical (case sensitive) to the stream name configured in the sending Zixi Broadcaster or MediaConnect.

  4. Select  the maximum concurrent connections to this stream from the Max. Outputs drop-down list. Default: Unlimited.

  5. Select the Show in Matrix check box to display this stream in the Matrix (see Using the Matrix). Default: Selected.

  6. Select SRT for the input stream.

    zecsrt.png

  7. Specify the Stream Parameters (see Input Stream Parameter table).

  8. If you want to Enable encryption, select this checkbox (see Input Stream Parameters Table). For more information, see ZEC Encrypting an Input Stream in ZEC.

  9. If you want to configure the Recording Parameters, specify them in the respective fields (see Input Stream Parameter table).

  10. Click OK. The “Input added” message appears on the top of the screen. The SRT Stream is added to ZEC and now appears in the list of streams available in the ZEC inputs UI.

Parameter

Description

Parameter

Description

Stream Parameters

 

Listening Port

Specify the port to listen on. This port must be open on all firewalls between ZEC and other devices it is communicating with.

Password

If the stream is password protected, enter the password.

Latency

Specify the maximum latency of the stream in milliseconds. Default: 1000

Verify Stream ID

Select this option to verify that the stream ID of this input matches the stream ID in the SRT feed before allowing the connection.

Max. bitrate [kbps]

Specify the maximum expected bitrate for memory allocation. Recommended: 2X the actual bitrate, which will prevent buffer overruns (especially with VBR streams). Default: 10000.

Note – Overflows will typically occur when the Max Bitrate isn’t sufficient.

Bind to IP

Select from the drop-down list the local IP address to be used for this Input, OR select Any to enable any IP to be used.

Enable Encryption

Encrypts the Input stream. For more information, see ZEC Encrypting an Input Stream in ZEC.

Encryption type (for Encryption enabled)

Specify the type of Encryption (AES 128/192/256).

Encryption key (for Encryption enabled)

Click Generate to generate an encryption key. The generated encryption key must be sent to the end-user to decipher the received encoded stream.

Recording parameters

 

Destination Type

Select the radio button for the desired storage type and then fill in the relevant parameters.

  • Record to disk – the recording is saved on the local disk. It is possible to record to an external destination by replacing the default storage location with a symbolic link. To learn more, see Using an External Storage section.

  • Record to S3 – the file is saved to your AWS S3 Bucket.

Record to Disk Parameters

 

File Name Template

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 Max recorded file duration parameter (see above). After this duration a new file will be generated.

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

  • %S=stream id - optional.

  • %Y=year - optional

  • %M=month - optional

  • %D=day - optional

  • %T=HH.MM.SS creation time - mandatory

  • %U=YYYYmmddTHHMMSSZ UTC timestamp – optional

For example, the following pattern %Y_recording%T.ts will generate the following file name 2022_recording15:32:35.ts.

Max recorded file duration [HH:MM]

Specify the maximum time allotted for recording a video stream. Default: 2 hours

Keep recorded files for [HH:MM]

Specify the maximum time for storing the recording. Default: 0 hours

Custom Path

Optionally specify a storage location for the recorded files that is relative to the root folder. This location bypasses the location specified as the root folder in the Settings > General screen.

Record to S3 Parameters

 

File Name Template

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 Max recorded file duration parameter (see above). After this duration a new file will be generated.

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

  • %S=stream id - optional.

  • %Y=year - optional

  • %M=month - optional

  • %D=day - optional

  • %T=HH.MM.SS creation time - mandatory

  • %U=YYYYmmddTHHMMSSZ UTC timestamp – optional

For example, the following pattern %Y_recording%T.ts will generate the following file name 2022_recording15:32:35.ts.

Max recorded file duration [HH:MM]

Specify the maximum time allotted for recording a video stream. Default: 2 hours

URL

Specify the URL of the S3 bucket.

Ignore TLS. certificate errors

TLS certificate for S3 bucket might be detected as faulty if bucket name contains dot[s]. When this option is selected, ZEC will ignore the TLS certificate errors and transmit the stream to its destination.

Access Key

The access key that is used for accessing the S3 bucket.

Secret Key

The secret key that is used for accessing the S3 bucket.