H.264 live frames missing 0x0 0x0 0x1 start byte pattern

I have Protocol Integration implementation of h.264 live streaming using XProtect Professional+ version 12.2.7113.1, Device Pack 9.7a version 9.7.1.119. The camera model is AXIS P3225-LVE Mk II.

The received frames though are missing the h.264 start byte pattern {0x0, 0x0, 0x1}. After inserting those 3 bytes I am getting live frames successfully.

Please advise if that’s expected behavior, and if not what should be changed.

Hi Ruslan,

I am not sure if you get the data from the camera or you are using some other source.

I can tell you however that H264 we accept is the AnnexB implementation, meaning the prefix accepted it [0x00, 0x00, 0x00, 0x01] or [0x00, 0x00, 0x01].

so when the cameras send the data it is prefixed. We expect the frame separators to be present otherwise there is no way to distinguish frame start from data.

BR,

Artur.

Hi Artur,

Thank you very much. I believe the culprit is in my code byte offsets.

Regards,

Ruslan