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:Performance Issues
High packet loss:Debug Commands
Best Practices
Production Recommendations
- Set appropriate latency: Start with 200ms, increase if packet loss occurs
- Use encryption: Always use passphrase in production
- Monitor stats: Enable SRT statistics for health monitoring
- Configure firewalls: Allow UDP traffic on SRT port
- Use caller mode: More firewall-friendly than listener mode
- 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
SRT vs Other Protocols
| Feature | SRT | RTMP | WebRTC | RTSP |
|---|---|---|---|---|
| Latency | 1-4s | 3-10s | Less than 1s | 1-3s |
| Reliability | High | Medium | Medium | Low |
| Encryption | Built-in | RTMPS | Built-in | RTSPS |
| Firewall | Good | Good | Excellent | Poor |
| Packet Loss | Handles well | Drops stream | Adapts | Stutters |
| Use Case | Contribution | Ingestion | Interactive | CCTV |
- Remote contribution feeds
- Bonded cellular streaming
- Satellite links
- Long-distance streaming
- High-quality contribution with reliability
