How to use Hardware Acceleration in C++?

Hello~

We are developing a program in c ++ that receives video stream from a milestone recording server.

We want to use the Hardware Acceleration feature to receive the video.

In C #

EnvironmentManager.Instance.EnvironmentOptions [EnvironmentOptions.HardwareDecodingMode] = “Auto”; When given the option, I confirmed that the Hardware Acceleration function works well.

But we can’t use this in c ++.

In the protocol of https://doc.developer.milestonesys.com/html/index.html, the protocol information for using Hardware Acceleration could not be confirmed.

Please Let me the protocol information that can be used in C ++. (XML Request, Receive Protocol)

Hi. Can you please give us specific SDK that you are using?

Also you mentioned Protocol integration in the question, but it is not possible to use Hardware Acceleration with Protocol integration.

Video Processing Toolkit might be helpful for you. Please see this link - Introduction to the Video Processing Toolkit -

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_vps_toolkit.html&tree=tree_search.html?search=toolkit

Dear Rie Kito

Hello,

We get the video from the milestone server using the following method :

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='-1' decoder\_implementation='automatic'>"

      "    <toolkit type='source'>"

      "     <provider>is</provider>"

      "     <config>"

      "      <server\_uri>" + m\_strRecorderUri + "</server\_uri>"

      "      <device\_id>" + m\_CareraGuid + "</device\_id>"

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

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

      "     </config>"

      "    </toolkit>"

      "   </video\_decoder>"

      "  </jpeg\_encoder>"

      " </config>"

      "</toolkit>";

As you answered, is hardware acceleration not available in the C ++ environment?

Hi D.Sunjin,

you can use ImRendererToolkit to get the images decoded with hardware acceleration. please note there is an error in the documentation:

decoding_hardware_selection_t does not have AutoIntel as an option any longer. the other values are valid. i recommend that you always use “AutoNvidia” (it is the default), this way we will utilize whatever is available on the system

https://doc.developer.milestonesys.com/html/MMTKhelp/class_nm_toolkit_1_1_im_renderer_toolkit.html