Skip to content

Commit a7512d7

Browse files
committed
astra/receiving: fix srt article
1 parent 0afa285 commit a7512d7

File tree

1 file changed

+40
-17
lines changed
  • content/1.astra/3.receiving/2.ip

1 file changed

+40
-17
lines changed

content/1.astra/3.receiving/2.ip/srt.md

+40-17
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,61 @@ title: "Receiving SRT"
33
date: 2023-03-23
44
---
55

6-
The Secure Reliable Transport (SRT) protocol is a data transfer protocol designed to enable secure and reliable delivery of high-quality video over unpredictable networks. The Astra interface supports SRT as an input protocol, allowing users to receive SRT streams from remote sources
6+
The Secure Reliable Transport (SRT) protocol is an open-source video streaming protocol designed to provide low-latency, high-quality video streaming over unreliable networks. SRT uses end-to-end encryption and provides a range of features designed to enhance reliability and security, including error correction, congestion control, and retransmission of lost packets. SRT is often used for live video streaming applications, such as sports and news broadcasts, where maintaining a reliable, high-quality connection is critical.
77

88
::alert
99
Available for Astra versions released after 2021-12-21
1010
::
1111

12-
## SRT protocol
12+
## Address format
1313

14-
The Secure Reliable Transport (SRT) protocol is an open-source video streaming protocol designed to provide low-latency, high-quality video streaming over unreliable networks. SRT uses end-to-end encryption and provides a range of features designed to enhance reliability and security, including error correction, congestion control, and retransmission of lost packets. SRT is often used for live video streaming applications, such as sports and news broadcasts, where maintaining a reliable, high-quality connection is critical
14+
SRT could be received in two modes:
1515

16-
## Address format
16+
- **Caller mode** - Astra sends request to the SRT server and receives content in response. This is the most popular variant
17+
- **Listener mode** - Astra waits when SRT server established connection and receives content in request. This is point-to-point mode
18+
19+
Address format depends on selected mode.
20+
21+
### Caller mode
22+
23+
```
24+
srt://address:port[#options]
25+
```
26+
27+
- `address` - remote server IPv4 address or hostname
28+
- `port` - remote port
29+
30+
Example:
1731

18-
SRT address is used to identify the location of the media stream that is being transmitted over the network
32+
- `src://example.com:3001` - send request to the example.com
33+
34+
### Listener mode
35+
36+
In listener mode, the address format is similar to the UDP address, with the addition of the `@` symbol to indicate the local interface name.
1937

2038
```
21-
srt://@:port
22-
srt://interface@:port#options
39+
srt://[interface]@:port[#options]
2340
```
2441

25-
SRT Options:
42+
- `interface` - local interface name where to listen for connection. By the default Astra will wait connection on all interfaces
43+
- `port` - local port to accept incomming connection
44+
- `options` - additional options for SRT protocol
45+
46+
Examples:
2647

27-
- `streamid=ID` – stream identifier
28-
- `passphrase=PASS` – password for the encrypted transmission. Password length should be in range 10 .. 79 characters
29-
- `pbkeylen=N` – crypto key length in bytes. Possible values: 16, 24, 32
30-
- `tsbpdmode` – timestamp-based packet delivery mode
31-
- `packetfilter` - injecting extra processing instructions at the beginning and/or end of a transmission to implement Forward Error Correction (FEC)
32-
- `interface` – name of the local interface. If interface is not defined Astra accept requests from any interface
33-
- `port` – local port
48+
- `srt://@:3001` - wait for connection on any interface
49+
- `srt://eth0@:3001` - wait for connection on interface `eth0`
3450

35-
Additional Options:
51+
### Options
3652

37-
- `tsbpdmode` – timestamp-based packet delivery mode
53+
- `timeout=N` - restarts the receiver if no data is received within a defined interval, seconds. Default value: `5` seconds
54+
- `latency=N` - maximum accepted transmission latency, milliseconds. Default value: `120` millisecond
55+
- `packetfilter=S` - injecting extra processing instructions at the beginning and/or end of a transmission to implement Forward Error Correction (FEC). [Read more](https://github.com/Haivision/srt/blob/master/docs/features/packet-filtering-and-fec.md#configuring-the-fec-filter){target="_blank"} in official documentation
56+
- `passphrase=S` – password for the encrypted transmission. Password length should be in range 10 .. 79 characters
57+
- `pbkeylen=N` – crypto key length in bytes. Possible values: 16, 24, 32. Default value: `0`
58+
- `streamid=ID` – stream identifier, provided to the SRT server in caller mode
59+
- `no_tsbpdmode` – turn off timestamp-based packet delivery mode
60+
- `oheadbw` - limits bandwidth overhead, percents. Possible values in range: 5 - 100. Default value: `25`
3861

3962
## Web Interface
4063

0 commit comments

Comments
 (0)