stream
The stream
command is used to create and manage streams to map the decoder inputs to output interfaces.
When creating a stream you can specify a unique ID to assign to it or let the system assign one for you. You can also specify a name for the stream if needed. The IP Address (addr
field) is only required for multicast, but not for unicast streams. Most commands will accept the stream ID or name in order select the proper stream to manage.
Once a stream is connected to the decoder (using the dec command), you can start/stop the decoder by way of the stream ID (e.g., stream 1 start
).
Synopsis
stream create [port=udpport] [addr=ipaddr] [id=number] [name=text] stream id/name start |
Possible Encapsulation Formats
Possible encapsulation formats and their specific options: ts-rtp: MPEG2 transport stream over RTP [fec=yes,no] If encapsulation is ts-srt, you can specify a passphrase (10-79 characters) |
Actions
Action | Description |
---|---|
create | Creates a decoder streaming session. A series of one or more |
delete | Removes the specified stream (entirely). |
start | Starts the stream and its associated decoder. |
stop | Stops the stream and its associated decoder. |
get | Displays stream information. See Parameters below. You can specify to display the stream configuration, statistics, or all.
|
clear | Clears the stream’s statistics. |
help | Displays usage information for the stream command. |
Parameters
Parameter | Default | Description/Values |
---|---|---|
port | n/a | The UDP port for the Decoder. Enter a number in the range 1025..65,535 . Note that RTP streams use even numbers only within this range. |
addr | n/a | (Optional, only required for multicast) Enter a Multicast IP address in dotted-decimal format. Note The Multicast address range is from |
id | n/a | A unique number assigned to the stream. Note When creating a stream, you can specify a unique id to assign to it or let the system assign one (a sequential number) for you.Most commands will accept the stream id or name (see below) in order to select the proper stream to manage. |
name | n/a | (Optional) When creating a stream, you can also specify a name for the stream. 1 to 32 characters |
encapsulation | ts-rtp | (Optional) The Encapsulation Type for the stream.
|
decoderId | n/a | The decoder SDI output port selected for the stream. Important Decoder 0 has highest priority, and and the video decoding resources are prioritized with the lower decoder numbers (i.e., 0, then 1, 2, and 3) having higher priority. For more information, see Oversubscription of Decoder Channels. |
sourceaddr | n/a | (Multicast streams only) Enter the multicast sender IP address in dotted-decimal format (i.e., what address is broadcasting). See “Source Address” under Stream Settings. |
program | auto | (Optional) Program Identifier used in the Program Map Table (PMT) of the TS stream. 1-65535 Only this program number is decoded, all others in the transport stream are ignored. If the program is not specified for the Multi-Program Transport Streams, the program is selected based on the following:
|
videopid | auto | (Optional) Video Packet Identifier. 16-8190 Only the video stream with this PID in the selected program is decoded. All other video streams are ignored. |
audiopid | auto | (Optional) Audio Packet Identifier. 16-8190. Only the audio stream with these PIDs in the selected program are decoded. All other audio streams are ignored. Note The audio outputs over SDI are assigned pair numbers in the order they are given. Audio output over SDI can be manipulated by changing the order of the audio PIDs. |
datapid | auto | (Optional) Data (metadata) Packet Identifier. 16-8190 Only the metadata (KLV) stream with this PID in the selected program is output on SDI. All other metadata streams are ignored. |
interface | auto | (Dual NICs must be available) Assigns the stream to either eth0 or eth1, or auto. (When set to "auto", eth0 takes precedence as long as the address is resolvable; otherwise the output switches to eth1.) |
ts-rtp only | ||
FEC | None | (Optional) To enable Forward Error Correction (FEC), specify FEC varies with the protocol (encapsulation):
NOTE: VF FEC is a proprietary FEC and is not interoperable with devices outside of the Haivision family. The FEC level is read from the encoded stream. |
ts-srt only | ||
latency | 125 | Specifies how long the decoder will buffer received packets, from 20-8000 ms. See “Latency” under SRT Stream Settings. |
mode | listener | Specifies the SRT Connection Mode (to simplify firewall traversal):
|
passphrase | n/a | (Optional) A sequence of words or other text used to control access to the stream. Similar to a password in usage, but is generally longer for added security. This parameter is required if the stream is encrypted and is used to retrieve the cryptographic key protecting the stream. From 10-79 characters. |
authentication | none | (Only available when
Note Setting the authentication to Auto allows the Listener to accept Callers with authentication set to either None or AES-GCM. Listeners with the authentication set to AES-GCM will only accept Callers which are also set to AES-GCM. |
resource | (Stream Publishing ID) Identifies the name of the resource and facilitates selection should the listener party be able to serve multiple resources. See Configuring SRT Access Control. | |
sourceport | (Caller and Rendezvous Connection modes) Specifies the UDP source port for the SRT stream. If not filled in, a (default) source port will be assigned. Note This simplifies firewall configuration as the firewall/NAT rules can be precisely tailored to the SRT stream. | |
redundanc | off | (Caller mode only) Configures the stream to use redundant transport paths:
|
secaddr | n/a | The destination IP address for the redundant stream. |
secinterface | n/a | (Dual NICs must be available) The interface for the redundant stream, either auto, eth0, or eth1. |
secport | n/a | The destination UDP port for the redundant stream. |
secsourceport | n/a | The UDP source port for the redundant stream. |
SRT to UDP Stream Conversion (ts-srt only) | ||
flipaddr | n/a | Specifies the destination IP address for the stream. See “SRT to UDP Stream Conversion (TS over SRT only)” under SRT Stream Settings. |
flipport | n/a | Specifies the UDP source port for the stream. |
flipttl | 64 | (Time-to Live for stream packets) Specifies the number of router hops the stream packet is allowed to travel/pass before it must be discarded. 1..255 |
fliptos | 184 or 0xB8 | (Type of Service) Specifies the desired quality of service (QoS). This value will be assigned to the Type of Service field of the IP Header for the outgoing streams. Range = |
SRT Access Control | ||
publishid | n/a | (Stream Publishing ID) Enter using custom format. For more information, see Configuring SRT Access Control. |
resource | n/a | (Stream Publishing ID) Identifies the name of the resource and facilitates selection should the listener party be able to serve multiple resources. See Configuring SRT Access Control. |
user | n/a | (Stream Publishing ID) Identifies the User Name, or authorization name, that is expected to control which password should be used for the connection. The application should interpret it to distinguish which user should be used by the listener party to set up the password. |
stream Examples
# stream create addr=10.6.230.106 port=2000 name=infodev Creates a streaming session from IP Address 10.6.230.106 at port 2000. Returns a confirmation such as: Stream created successfully - ID: 1. |
# stream 1 start Starts the the stream and its associated decoder. Returns a confirmation such as: Stream started successfully. |
# stream 1 get all Returns configuration information for decoder stream #1, such as: Stream ID : 1 |
# stream 1 get stats Returns status information for decoder stream #1, such as: Stream ID : 1 |
# stream 1 delete Deletes Stream #1. |
Related Topics