Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

What is the timing mechanism for client-side snapshot capture?

Comments

2 comments

  • Pakwa

    Hi,

    When my plugin receives an object message from IPC, its callback funtion calls a pushMetadataPacket to the server. This packet only contains the video frame timestamp  provided by the pushCompressedVideoFrame interface, target attributes, and target bounding boxes. It does not push actual images, so snapshot captures and video recording are handled entirely by the client.

    During local testing,  an intermittent issue (about 2% to 5% of the time) where a "No Data" status occurs. When this happens, clicking the live-streaming preview thumbnail should theoretically jump to the corresponding recording timestamp. However, there is actually no recording available at that timestamp.

    When checking via Advanced Search, the corresponding recording file seems corrupted and only lasts for a split second (possibly just a single frame).

    I would like to ask: Can this be confirmed as an intermittent client-side issue rather than a problem with the plugin?

    Thanks for your time and help!

    0
  • Ichiro
    • Network Optix team

    Hi 

    This doesn't look like a client-side problem. The snapshot is normally supplied by the camera as a bestshot, so the camera should always be sending one along with the metadata.

    If there's no explicit bestshot in your packet, the mediaserver will try to pull a frame from the stream instead. When that fails, there's nothing else it can fall back to, so you get "no data."

    The recommendation is to push the bestshot explicitly, so the snapshot (or an image you want to show) always arrives with your metadata.

    There's another common cause worth checking: timestamp drift. If the timestamp on your stream doesn't line up with the timestamp in the metadata, the mediaserver can't locate the matching frame in the stream. This is a frequent issue on IP cameras, if timestamps drift inconsistently.

    In your case it looks like the camera clock and the server clock might not be synchronized. Worth adding the implementing bestshot as well if possible.

    Hope this helps.

    0

Please sign in to leave a comment.