TS over SRT directly transmits TS streams containing audio/video data using SRT protocol. The existing live streaming system is used for playback. TS over SRT is used as the standard push format for Haivision hardware and OBS.
In this mode, the SRT server parses TS streams, remuxes to RTMP streams, and forwards to the backend RTMP server.
Note:
Using SRT for push will not increase the cost.
Upstream Lag Rate Comparison
Using SRT to push streams reduces lag, as shown in the following figure:
Packet Loss Rate Comparison
Using SRT to push streams optimizes upstream performance, resulting in better playback smoothness. The following shows the performance comparison of the Douyu app.
Android: performance test data of push over SRT (test device — Mi 9):
iOS: performance test data of push over SRT (test device — iPhone XR):
Packet Loss Prevention Comparison
Compared with QUIC, SRT reduces packet loss at the application layer under the same packet loss rate, thanks to its faster, more precise retransmission control and pacing mechanism for live streaming scenarios. When the packet loss rate is 50%, SRT can still guarantee stable transmission.
With the same linkage and the same live stream file on the push end, the packet loss rate reduces by 5% every five minutes when SRT is used. The following figure shows that the push frame rate of SRT is more stable.
Live Push
Access Method
Tencent Cloud SRT push address:
srt://${rtmp-push-domain}:9000?streamid=
Note:
$ {app}
is a variable and should be replaced with the actual value. Note that $
, {
, and }
are not required.
Implementation Method
The SRT server will remux TS streams to RTMP streams and relay them to the ${rtmp-push-domain} domain name
.
Example of OBS streaming content via the SRT protocol:
Enter the following in Server: srt://${rtmp-push-domain}:9000?streamid=#!::h=${rtmp-push-domain},r=${app}/${stream},txSecret=${txSecret},txTime=${txTime}
Enter the following in Stream Key: r=${app}/${stream},txSecret=${txSecret},txTime=${txTime}
Note:
If you want to push streams over SRT, the OBS version cannot be lower than v25.0.
Live Pull
Follow the general pull and playback process. For details, see CSS Playback.
Was this page helpful?