Demo projects

Using the filter through the TVideoGrabber SDK

The filter is natively supported by our TvideoGrabber SDK, that builds and handles the DirectShow graphs automatically.

To use the filter from the TvideoGrabber SDK:

- install the RTSP filter as explained in the chapter 2.

- download and unzip the TvideoGrabber SDK,

- quick verify the filter installation by running the pre-compiled MainDemo.exe → "IP camera" tab, enter a RTSP URL and click "start preview", if you see the preview the filter is correctly installed, exit MainDemo.exe

- locate the MainDemo project corresponding to your development language

- open the MainDemo project and compile it

- run it and go to the "IP Camera" tab, enter the RTSP URL and click "Start preview" to verify all it working correctly.

The TvideoGrabber sample code to start the preview and MP4 recording of RTSP URLs is explained in the chapter 4. of this manual.

Building the DirectShow graph

This package includes several demo projects that are provided as sample code and can be reused:

Microsoft DirectShow SDK (C++)

- a simple C++ demo project derived from PlayCap, with synchronous connection

C# with DirectShow .NET

- the package includes C# demo project based on DirectShow.NET and derived from PlayCap, with asynchonous connection (he filter does not block the main thread while connecting, for more information see "DirectShow configuration" and "RTSP_OpenURLAsync").



43