The Datastead RTSP/RTMP/HTTP/ONVIF DirectShow source filter
Datastead RTSP/RTMP/HTTP/ONVIF DirectShow source filter
Capturing live streams and IP cameras requires installing our optional RTSP/RTMP/HTTP/ONVIF DirectShow source filter.
It is not necessary to register the filter: it is possible to just unzip the filter binaries (included in x86 and x64 subfolders), either under the application.exe folder or in any folder specified as ExtraDLLPath (see also the installation information )
This filter is able to decode live streams through most of the common live protocols (ONVIF, RTSP, RTMP, UDP, RTP, SDP, HTTP, MMS, etc...) and at the same time save the native frames received (H264, H265/HEVC, AAC, etc...) to .MP4, .FLV, .AVI, .MKV or .MOV containers without transcoding.
If a new file name is specified during the recording, it closes the previous file and opens the new file without losing frames between the 2 files.
When used in TVideoGrabber the configuration of the RTSP filter is done by TVideoGrabber; however, it is possible to control most of the specific filter parameters by adding and combining them at the end of the URL as follows:
VideoGrabber.VideoSource = vs_IPCamera
VideoGrabber.IPCameraURL = "rtsp://192.168.5.1/live.sdp>autoreconnect=0"
VideoGrabber.StartPreview ();
Another example: preview/recording of any ONVIF URL:
VideoGrabber.VideoSource = vs_IPCamera
VideoGrabber.IPCameraURL = "onvif://192.168.5.1>buffer=0>autoreconnect=0"
VideoGrabber.SetAuthentication (at_IPCamera, "user", "password");
VideoGrabber.RecordingInNativeFormat = true
VideoGrabber.RecordingMethod = rm_MP4
VideoGrabber.StartRecording ();
The possible optional parameters are listed in the "Parameter Identifiers" section of the help here: