Convert H264 bytes to JPEG

Hi everyone!

I use this connection xml for getting frame from fixed GUID (camera)

    m_ms_conn_string =
            "<?xml version='1.0' encoding='utf-8'?>"
                     "<toolkit type='source'>"
                     "  <provider>is</provider>"
                     "  <config>"
                        "            <server_uri>"+ m_cam_info.m_ms_uri.toStdString() + "</server_uri>"
                        "            <device_id>"+ m_cam_info.m_ms_guid.toStdString() +"</device_id>"
                        "            <media_type>VIDEO</media_type>" + m_ms_auth_token +
                        "            <maximum_queue_size>5</maximum_queue_size>"
 
                     "  </config>"
                     "</toolkit>";

With camera support JPEG codec, i can convert received bytes from Milestone to jpeg cv::Mat (i use opencv) by decoding it to jpeg.

When camera not support JPEG codec, only H.264. I received bytes which has smaller size than JPEG. (3xxxx - 1xx.xxx), i predict it is raw data of H264 frame.

Does MIPSDK C++ support any methods for converting received bytes from H264 to JPEG ?

Thanks in advance.

Nam.

Yes, for this use a Media Processing Toolkit- see https://doc.developer.milestonesys.com/html/index.html?base=mmtkhelp/mmp_source_toolkit.html&tree=tree_2.html

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

Thank you very much, Kito!!!

Nam.