The delivery of video archives via MIPsdkMobile-web occurs with delay

Hello, everyone.

Our company, in collaboration with our partners, develops and implements software integrated with Milestone XProtect.

One of our projects is the implementation of a multifunctional PSIM system (integrating more than 12 security systems), which we have been working on for several years.

Our development team has encountered a challenge that we are unable to resolve on our own (a brief description is provided below).

Issue summary:

The PSIM software we have developed has a web interface and is intended to display live video streams from Milestone XProtect Professional+ cameras, as well as playback video from the archive tied to the timestamp of a specific event.

Our development team has implemented this functionality using the Mobile Server.

Live video streaming works well, as it is transmitted in real-time in compressed H.264 format.

However, playback video from the archive is significantly delayed because it is delivered in transcoded JPEG format, even though the recordings are originally made using the H.264 codec.

Question: How can we configure the Milestone system so that the delivery of video archives via mipsdkmobile-web occurs without delay?

Best Regards.

Hi @Denys Malyk

Mobile Server has always been transcoding in playback mode.

I don’t think any plans exist to change or extend that behavior.

Delay on starting playback should be less than half a second, so it shouldn’t be much of a problem.

Regards,

Nikolay

@Nikolay Dimitrov

Thank you for your reply.

I would like to clarify my question: by delay, I mean that in the web client in playback mode, I see 1 frame per second.

The network infrastructure is organized in such a way that the mobile server and the recording server are located at some distance from each other and are connected by a communication channel.

Could you tell me how we can achieve the actual recording frame rate at which it is actually recorded?

If the mobile server is constantly transcoding, perhaps you could tell me how we can get the recording stream in H.264 codec format.

This is the H.264 codec in which the video from the cameras is recorded.

Best regards.

Hi Denys,

I’ll start with your last question - how to get playback stream in H.264: it’s not possible to do that with Mobile Server (MoS). It’s just not implemented. You can research how to do this via RTSP using Milestone Open Network Bridge (ONB) server. But it will require quite some work to switch from MoS to ONB.

Now I want to make something clear - It is not normal to get 1 FPS in playback mode. Playback is able to provide an FPS that is quite similar to the original one.

Make sure to request the stream by passing a proper Fps parameter in the request, as described in the protocol documentation.

If you’re already passing proper FPS parameter, it must be a configuration or infrastructure issue. Please investigate what may cause this. Several possible reasons are:

  • bad network connection between RS and MoS
  • bad network connection between MoS and Web Client
  • MoS machine is overloaded. If total CPU is anywhere near 90% and above, FPS may go extremely low.
  • a lot of open playback streams (especially with high resolution)

You may check the first two bullets in Windows Task Manager → Performance → Ethernet.

You may check last two in Management Client → Mobile Server → Server Status tab.

If you need any help troubleshooting your configuration problem, please ask in Support forum or contact Support directly.