How to get resolution and frame rate of live streaming?

Hi all,

I am writing a C++ program to get camera live stream. I need to know the resolution, frame rate of the stream. How can i get these information?

Thanks!

Ken Tsang

You can only get the information by probing the stream.

Configuration like frame rate and resolution can be changed at any time by events and rules, so the only way to be sure is to analyse the stream and the pictures from XProtect.

Thank you so much.