Re-streaming
The re-streaming can be activated by specifying a destination URL:
- either programmatically:
DatasteadRTSPSourceConfig.SetStr ("RTSP_Dest_URL_str", "destinationURL")
- either as "desturl" parameter at the end of the source URL by adding:
>desturl=destinationURL
RTMP re-streaming to a media server (e.g. YouTube, Ant Media Server, etc...)
- e.g. programmatically:
DatasteadRTSPSourceConfig.SetStr ("RTSP_Dest_URL_str", "rtmp://myantmediaserver.com/LiveApp/123456901234569012345690")
- e.g. as parameter at the end of the RTSP URL:
>desturl=rtmp://myantmediaserver.com/LiveApp/123456901234569012345690
UDP re-streaming
Just specify the destination IP (unicast or multicast) and port, e.g.:
- programmatically:
DatasteadRTSPSourceConfig.SetStr ("RTSP_Dest_URL_str", "udp://192.168.0.200:5000")
- or by adding at the end of the URL:
>desturl=udp://192.168.0.200:5000
RTSP server
The filter can act as a RTSP server that re-streams the streams received.
Example:
- the PC that will act as a RTSP "re-streamer", on which the application having RTSP filter instances is running, has the IP 192.168.1.100,
- the URL of the IP camera to re-stream is:
rtsp://192.168.1.25/axis-media/media.amp?videocodec=h264
- we want to re-stream this URL so the RTSP "clients" can connect to this PC on the port 10000 with the URL path "live1":
rtsp://192.168.1.100:10000/live1
- e.g. programmatically:
DatasteadRTSPSourceConfig.SetStr ("RTSP_Dest_URL_str", "rtspsrv://192.168.1.100:10000/live1")
- e.g. as parameter at the end of the RTSP URL:
rtsp://192.168.1.25/axis-media/media.amp?videocodec=h264>desturl=rtspsrv://192.168.1.100:10000/live1
From the same application it is possible that several RTSP filter instances re-stream several IP cameras on different RTSP ports, e.g.:
rtsp://192.168.1.25/axis-media/media.amp?videocodec=h264>desturl=rtspsrv://192.168.1.100:10000/live1
rtsp://192.168.1.26/axis-media/media.amp?videocodec=h264>desturl=rtspsrv://192.168.1.100:10000/live2
rtsp://192.168.1.27/axis-media/media.amp?videocodec=h264>desturl=rtspsrv://192.168.1.100:12345/live1
rtsp://192.168.1.28/axis-media/media.amp?videocodec=h264>desturl=rtspsrv://192.168.1.100:12345/live2
The only constraint is that 2 applications (2 different executables) must not re-stream on the same RTSP port, otherwise the second executable may crash.