Unknown codec type 0x0D0A for h.264 HikVision camera

According to the SDK materials for GBD video-subformats, there is 0x000A codec type for H.264 but for a HikVision camera streaming H.264 is returning the codec type in the packet header as 0x0D0A. Please let me know why is that?

Please fill us in, what is the context you have experienced the error?

We have a protocol integration with Milestone API and fetching stored video using the GBD. Receiving video blocks, in the packet header the codec type is 0x0D0A, instead of 0x000A for H.264 , as described in the Video Sub-Formats SDK documentation https://doc.developer.milestonesys.com/html/MIPGenericByteData/video_sub_formats.html

Thank you very much in advance.

The camera is configured as h.264.

Rie,

Is there any update on this issue?

Thank you very much for your help.

Please let me know if there are any updates on this.

Thank you very much.

Hi Ruslan,

The hex 0x0d0a is normally a “new line” annotation, so i am very puzzled on how this even can get into the GenericByteData header at all. there would be no reason for the driver to insert a “new line” in that part of the header.

Do you do some post processing of the data? What driver are you using to detect the camera and what model cameras is it exactly and what firmware version does the camera have?

Kind regards

Artur Magaljan.

Hi Artur,

We don’t do any post-processing of the data. The camera is HikVision DS-2CD63C5G0E-IVS, and the driver is HikVisionGeneric. I will need to find out the firmware version from the customer.

Thank you very much.

Best regards,

Ruslan

Here is the firmware version, and the other system info

Please let me know if there are any updates on this.

The matter is that a customer is waiting on us to resolve the HikVision camera issue.

Thank you very much.

Please let me know are there any updates on resolving this problem.

Thank you very much

I am sorry delayed reply, we have consulted with Milestone Development and they found that the device is supported by HikvisionGeneric driver with FW V5.5.73 so you are using 5.5.75, that is newer firmware than we support.

Can you please tell me what your observation is for the camera on Smart Client?

Rie,

Thank you very much.

As per the customer the camera is viewable via the Smart Client.

Can you please test if the supported firmware version works?

Rie,

The customer tech has opened a case with Hikvision to get the supported firmware version, since HikVision only have the latest version posted on their website.

Thank you very much.

Hello,

We are still experiencing the same error after the firmware downgrade, the codec type we receive in the GBD header is still hex 0x0d0a instead of hex 0x000a.

Also the camera is returning invalid jpeg images of size 0.

Please advise.

Thank you for your assistance.

Hello,

Are there any updates on resolving this problem?

Thank you very much.

Milestone Development will start an investigation. Let me get back to you when I get updates from them.

Milestone Development was unable to understand how it might be possible for you to get this header.

We think we will only be able to understand if we can reproduce the behavior in the milestone test lab.

Please document in details how the camera is setup in XProtect. (Screen captures of the Setting and Streams tabs for the camera setup in Management Client could be a good way to include all.)

Please make an export of the footage you are working with in Milestone format using the Smart Client.

Please document the source code how you retrieve the footage from XProtect. Ideally you could share a small project that would retrieve the video and show the error, we could use that directly for reproduction and debugging.

(If you prefer I can make a Support Case and we can discuss and you can share source code without doing so on a public forum, let me know if I should do that.)

Hi Bo,

Here is the settings screenshot.

Thank you very much for your help