The images returned are not the same
Plannedwhen I use api "/rest/v2/devices/{id}/image" to get the image from the stream with the streamSelectionMode parameter. With the same timestamp, the returned images of primary stream and secondary stream are different. I don't know if it's due to the camera or the nx client configuration.
With primary stream:
With secondary stream:+ I'm using NxMetaVms version 5.1.4.38659
-
+ I'm using a camera with configuration:
+ Configuration in nx client:
0 -
Hi Kenshin,
This is likely not a bug but an expected time difference.
Usually, this is due to variations in GOP length and differences in the I/P frames interval. The media server attempts to provide the full image whenever possible. However, with the H.264 codec, it's not always possible for the camera to provide a full frame, meaning it often supplies only partial images. This necessitates the media server to reconstruct the image based on the closest I frame and P frames. It is challenging to ensure the camera provides the exact same P/I frame at the same timestamp, so it's expected that the reconstructed image will differ across streams.
Additionally, you have enabled the "Trust camera timestamp" option, meaning the VMS will not adjust or align the timestamps for the images. Therefore, the timestamp provided by the camera will be used as-is, whether it is correct or incorrect. The VMS does not modify or align the timestamps as per your request.
Based on the screenshots you provided and the slight time difference shown, this appears to be an expected variation due to the camera-provided timestamp. It is possible you may need to check the timestamp on the camera and make sure the camera provides the same timestamp on both streams (or you allow VMS to align the image while required)
Hope this helps, thanks.0
Please sign in to leave a comment.
Comments
2 comments