H.264 live stream sample based on Component, like MediaLiveServiceJPEG.vcxproj

HI milestone,

Do you have any sample for getting live video by component integration?

There is a sample, MediaLiveServiceJPEG.vcxproj, showing how to get live in Jpeg.

Does it support to get other video format?

Regarding the request string, it seems only support JPEG.

utf8_string_t config = “<?xml version='1.0' encoding='utf-8'?>”

         "<toolkit type='source'>"

         " <provider>mmp</provider>"

         " <config>"

         "  <jpeg\_encoder quality='90' quality\_update\_key='qual'>"

         "   <video\_decoder number\_of\_threads='4'>"

         "    <toolkit type='source'>"

         "     <provider>is</provider>"

         "     <config>"

" <server_uri>“+ vmsRecorderUri +”</server_uri>"

         "      <device\_id>"+ cameraGuid +"</device\_id>"

         "      <media\_type>VIDEO</media\_type>" + authorizationToken +

         "      <maximum\_queue\_size>5</maximum\_queue\_size>"

         "     </config>"

         "    </toolkit>"

         "   </video\_decoder>"

         "  </jpeg\_encoder>"

         " </config>"

         "</toolkit>";

Please see this sample, it might be helpful - Video Viewer -

https://doc.developer.milestonesys.com/html/index.html?base=content_0.html&tree=tree_2.html

Hi Rie,

Please check below comments.

It will be appreciated, if you could help it.

Br,

Allen

HI Rie,

Video viewer is C# code and use .net lib. Do you have any sample for this by C++?

What we want to do is to get video frames to feed the external LPR engine.

It seems there is a Media Toolkit mentioned in your document, But I cannot find any sample except MediaLiveServiceJPEG.

Could you help guide us how to get the H.264 frames via C++ ?

Milestone Media Toolkit

  • Access via both C++ and C#
  • Able to retrieve from Imageserver or exported database
  • Can specify resize, format, transcoding and more
  • Possible to store result as new database, transcode to JPEG, or as RGB

You will need to see this link to know how to change the sample for getting raw data instead of JPEGs - MultiMedia Toolkit Documentation

https://doc.developer.milestonesys.com/html/index.html?base=mmtkhelp/index.html&tree=tree_2.html

Also, in order to understand raw data, please see this link too - The GenericByteData format

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

Hi Rie,

I saw a documentation here to point out how to write the config for live view.

https://doc.developer.milestonesys.com/html/MMTKhelp/tutorial.html#the_live_interface

But I am not sure how to get the Prefix header.

I read MediaLiveServiceJPEG example, it only able to use “GetMediaBody”, no function to get the header.

Could you help explain more?

What i want to do is to get the frames and respective timestamp.

Thanks,

Allen