Overview
RTSP (Real Time Streaming Protocol) is a network control protocol designed for streaming media servers. It’s commonly used in IP cameras, surveillance systems, and professional broadcasting equipment.Key Benefits
- Widely supported: Standard protocol for IP cameras and surveillance
- Low overhead: Efficient streaming with minimal latency
- Bidirectional: Supports commands and control (play, pause, seek)
- Transport flexibility: Works over UDP, TCP, or HTTP
- Professional grade: Used in broadcast and production environments
- Codec agnostic: Supports H.264, H.265, MJPEG, and more
Pulling RTSP Streams
Ant Media Server can pull RTSP streams from cameras and convert them to WebRTC, HLS, DASH, or RTMP. Source: StreamFetcher.javaVia REST API
Via Web Panel
- Navigate to Ant Media Server web panel
- Go to Application → New Live Stream → Stream Source
- Enter stream details:
- Name: Camera name
- Stream URL:
rtsp://192.168.1.100:554/stream - Stream Type: Stream Source
- Click Create
- Click Start Broadcasting
RTSP URL Formats
Common Camera URL Patterns
Playing RTSP Streams
Once pulled into Ant Media Server, RTSP streams are available as:Configuration Options
RTSP URL Parameters
Ant Media Server supports RTSP URL parameters for advanced configuration:Transport Protocol
Timeout Settings
Advanced FFmpeg Options
Troubleshooting
Connection Issues
Cannot Connect to Camera:Stream Quality Issues
Pixelation/Artifacts:Performance Optimization
Reduce Latency:Best Practices
Production Recommendations
- Use TCP transport: More reliable than UDP for most networks
- Monitor stream health: Set up webhooks for stream failures
- Implement reconnection: Configure automatic restart on failure
- Use substreams: Pull lower resolution for bandwidth savings
- Secure credentials: Use environment variables or vault for passwords
- Network isolation: Keep cameras on separate VLAN
Camera Configuration
Optimal Settings:- Motion detection overlays
- Timestamp overlays
- Privacy masks (if not needed)
- Audio (if not required)
Security
Integration Examples
Motion Detection Integration
Recording Schedule
Multi-Camera Dashboard
RTSP Server (Publishing)
RTSP server functionality for accepting RTSP streams (publishing) requires custom development or third-party integration. Ant Media Server natively supports RTSP as a client (pulling) but not as an RTSP server (receiving).
- Use RTMP for publishing to Ant Media Server
- Use WebRTC for browser-based publishing
- Use SRT for reliable contribution feeds
- Deploy an RTSP server (like rtsp-simple-server) and pull from it
