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.
Starting with v2.3, once a stream is connected to the decoder (using viddec), you can start/stop the decoder by way of the stream ID (e.g., "stream 1 start"). Previously you could only start/stop the decoder using viddec.
Synopsis
stream create port=udpport [addr=ipaddr] [id=number] [name=text] |
Possible Encapsulation Formats
ts-rtp: MPEG2 transport stream over RTP |
Actions
Action | Description |
---|---|
create | Creates a decoder streaming session. A series of one or more |
delete | Deletes the specified stream. |
start | Starts the stream and its associated decoder. Note If the stream is already active, |
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.
Note If |
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 |
Optional stream Parameters | ||
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.
|
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. |
ts-rtp and ts-udp 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. |
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. |
rejectunencrypted | yes | (Listener Connection mode only) For security reasons, when encryption is enabled in the decoder's SRT Listener stream configuration, this option causes the decoder to reject all unencrypted SRT Caller streams. |
mode | listener | Specifies the SRT Connection Mode (to simplify firewall traversal):
|
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 = |
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 create encap=rtsp addr="rtsp://10.66.131.64/high" Creates an RTSP stream. |
# stream 1 start Starts the decoder by way of the stream ID. Returns a confirmation such as: Stream started successfully. Note The stream must already be created and configured with a decoder (e.g., |
# stream 1 get all Returns configuration information for decoder stream #1, such as: Stream ID : 1 |
Returns configuration information for decoder stream #10, where it is an SAP Discovered stream: Stream ID : 10
|
# stream 1 get stats Returns status information for decoder stream #1, such as: Stream ID : 1 |
# stream 1 delete Deletes Stream #1. |
Related Topics