docs/3-publish/08-rtsp-cameras-and-servers.md
| supported codecs | |
|---|---|
| video | AV1, VP9, VP8, H265, H264, MPEG-4 Video (H263, Xvid), MPEG-1/2 Video, MJPEG |
| audio | Opus, MPEG-4 Audio (AAC), MPEG-1/2 Audio (MP3), AC-3, G726, G722, G711 (PCMA, PCMU), LPCM |
| other | KLV, MPEG-TS, any RTP-compatible codec |
Most IP cameras expose their video stream by using a RTSP server that is embedded into the camera itself. In particular, cameras that are compliant with ONVIF profile S or T meet this requirement. You can use MediaMTX to connect to one or several existing RTSP servers and read their media streams:
paths:
proxied:
source: rtsp://user:pass@host:port/path
If username or password contain special characters (like ?, :, etc), they need to be url-encoded.
The resulting stream will be available on path /proxied.
It is possible to tune the connection by using several additional parameters, that are listed in the configuration file.
Advanced RTSP features and settings are described in RTSP-specific features.