Menu Close

Using a standalone RTSP server to restream RTSP URL(s)

How Can We Help?

< Back
You are here:
Print

Using a standalone RTSP server to restream RTSP URL(s)

– install the mediamtx rtsp server, (the .exe for Windows can be downloaded in the “Releases” section) on one of the computers of the LAN (in the example below with IP address 192.168.0.45)

By default this server works “out of the box”, just to put mediamtx.exe and mediamtx.yml in a folder of your choice and run mediamtx.exe.

– stream the RTSP URL to the RTSP server 192.168.0.45 through the RTMP protocol (port 1935) by adding at the end of the RTSP URL:
>desturl=rtmp://192.168.0.45:1935/live1

Sample code:
Videograbber.VideoSource = vs_IPCamera;
Videograbber.IPCameraURL = “rtsp://user:password/192.168.1.25/camera.sdp>desturl=rtmp://192.168.0.45:1935/live1“;
Videograbber.StartPreview();

– from another TVideoGrabber instance, the live stream can be viewed with the following sample code:
Videograbber.VideoSource = vs_IPCamera;
Videograbber.IPCameraURL = “rtsp://192.168.0.45:8554/live1“;
VideoGrabber.StartPreview();

– from the client (e.g. VLC), the live stream can be viewed from the following URL:
rtsp://192.168.0.45:8554/live1

Table of Contents