How to retrieve camera stream source format in MIPSDK?

The VideoOS.Platform.Item has no attribute to store the format of the stream from the camera. I want to know the stream format is of H264 or H265 and so forth, so that I can call optimized decoder to handle.

Is it possible to retrieve camera stream format in C# or C++?

You can use the ConfigAPI for retrieving the configured stream source format, but this format can be changed by a rule so it is not a constant thing.

Instead,

VideoOS.Platform.Data.RawVideoSourceData.Content

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_data_1_1_raw_video_source_data.html&tree=tree_search.html?search=rawvideosourcedata.content

VideoOS.Platform.Data.RawLiveSource https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_live_1_1_raw_live_source.html&tree=tree_search.html?search=rawlivesource

The data will start with a GenericByteHeader (32 or 36) bytes specifying the following frame format and codec.

This article is also worth to see - The GenericByteData format -

https://doc.developer.milestonesys.com/html/index.html?base=mipgenericbytedata/main.html&tree=tree_3.html

Hi Rie,

Thank you for the reply.

I understand the generic byte data contain video format information, but how can I get the generic byte header in C++?

Code snippet from my C++ project: liveSourceToolkit->GetLiveData(data, 10000);

Does data contain the generic byte header?

Thanks!​

This might help.. https://developer.milestonesys.com/s/question/0D53X00006My7dQSAR/can-i-get-raw-video-stream-format-through-image-server-source-toolkit-imlivesourcetoolkit