Skip to main content

Overview

SRT (Secure Reliable Transport) is an open-source protocol that delivers low-latency video streaming over unreliable networks. It uses techniques like packet loss recovery and encryption to ensure high-quality streaming even in challenging network conditions.

Key Benefits

  • Low latency: Typically 1-4 seconds with packet recovery
  • Reliable: Automatic retransmission and forward error correction
  • Secure: AES encryption built-in
  • Firewall-friendly: Works with NAT and firewalls using caller/listener modes
  • Network resilience: Handles packet loss, jitter, and bandwidth fluctuations
  • Codec support: Agnostic - supports H.264, H.265, VP8, VP9, AAC, Opus

Publishing Streams

SRT Publisher Modes

SRT supports three connection modes:
  • Caller: Initiates connection to listener
  • Listener: Waits for incoming connections
  • Rendezvous: Both peers connect to each other

Hardware Encoders with SRT

Playing Streams

SRT Playback

Configuration Options

Server Configuration

SRT URL Parameters

Common SRT parameters in URL query string:

Latency Configuration

Choose latency based on your use case:

Security & Encryption

Enable AES Encryption

Stream ID Authentication

Use stream IDs to control access:

Troubleshooting

Connection Issues

Cannot connect to SRT server:
Passphrase mismatch:

Performance Issues

High packet loss:
Buffering/freezing:

Debug Commands

Best Practices

Production Recommendations

  1. Set appropriate latency: Start with 200ms, increase if packet loss occurs
  2. Use encryption: Always use passphrase in production
  3. Monitor stats: Enable SRT statistics for health monitoring
  4. Configure firewalls: Allow UDP traffic on SRT port
  5. Use caller mode: More firewall-friendly than listener mode
  6. Implement reconnection: Handle connection drops gracefully

Quality Settings by Use Case

Bandwidth Optimization

Integration Examples

Pull SRT Stream to Ant Media Server

Convert SRT to Other Formats

Ant Media Server automatically converts SRT input to:
  • WebRTC for browser playback
  • HLS for mobile/smart TV
  • DASH for adaptive streaming
  • RTMP for restreaming
Enable in configuration:

SRT vs Other Protocols

Choose SRT for:
  • Remote contribution feeds
  • Bonded cellular streaming
  • Satellite links
  • Long-distance streaming
  • High-quality contribution with reliability