The format of the URL for RTSP source is:
Parameters of the URL for RTSP source and optional parameters in brackets are described below. Please note that in many cases the word "server" could be freely interchanged with the word "IP camera". Every IP camera has an RTSP server built into the camera:
Typically, the RTSP servers use DHCP to obtain an IP address automatically. The servers usually provide a utility for detecting the server's IP address. This can be in the usual Ipv4 format (xx.xx.xx.xx), or it can be a valid host address accepted by the standard function inet_addr. For example, localhost is equivalent to 127.0.0.1. This is usually the IP address of the sending (server) computer.
The port number on which the server is listening for RTSP commands. The port must be a number from 1 to 65535. RTSP port (554) is default
username (Optional) / password (Optional)
For servers that use authentication, you can pass a username and a password as part of the connection URL.
Each RTSP server has its own relative server URL, so you need to consult the server's manual to obtain it.
Extra parameters on this context are server parameters which can be used to control compression, video size, etc. See the following examples for such parameters
H264/ AAC (AXIS camera example) Please note this URL will not work for testing
MJPEG / G711 (AXIS camera example) Please note this URL will not work for testing
The extra server parameters will vary between servers vendors, so consult the user manual of your server.
NOTE: XSplit also supports the special source parameter ( \rtsp_transport:udp) to force the connection mode of the source to udp instead of tcp which is default and recommended. see example:
rtsp://root:email@example.com/axis-media/media.amp?videocodec=h264&audiocodec=aac&\rtsp_transport:udp (please note this URL will not work for testing)