Getting empty images from recording server when requesting JPEGGetLive

Hello,

we have a problem with images recovery on some recording servers.

The camera is in continuous recording but if nobody is watching the live the snapshot is empty, otherwise the image is successfully recovered.

This is a part of plugin method:

RecorderCommandService rcs = new RecorderCommandService();
 
String serverUri = String.Format("http://{0}:{1}/RecorderCommandService/RecorderCommandService.asmx", recordingServerName, 7563);
 
rcs.Url = serverUri;
 
limg = rcs.JPEGGetLive(_token, cameraItem.FQID.ObjectId, 1024, 768);
 
 

What could be the problem?

Thank’s to all

First step please verify that the camera is streaming images. Using the Smart Client do you see live video?

If you are building a plugin you shouldn’t use the RecorderCommandService. Please see instead how the CameraStreamResolution sample retrieves one image from live using the MIP library. The recommendation is to use the MIP Library in MIP plugins.

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/camerastreamresolution/readme.html&tree=tree_2.html

(If your plugin is not a plugin for a Milestone Environment i.e. Smart Client or Management Client, but something else, let me know.)

Hi Bo,

thank’s for your reply!

The camera is streaming images and with Smart Client I see the video.

Doing some tests I saw that setting Live Mode to Always on the Stream tab for the camera the JPEGGetLive method return images.

Do you know if this configuration could have impacts on network traffic when the cameras aren’t in continuous recording?

Thank’s

Relevant documentation..

https://doc.milestonesys.com/latest/en-US/standard_features/sf_mc/sf_mcnodes/sf_3devices/mc_addastream_devices.htm

There is a difference.

If you set Live mode to “Never”, or if you set Live mode to “When Needed” and there is no active “Start feed” rule, and there is no recording, then there will be no streaming of video from the camera to the recording server, this will conserve bandwidth as no video data is being transferred.

In all other scenarios, including having Live mode set to “Always”, there will be streaming of video from the camera to the recording server, the bandwidth usage will depend on the stream settings.

Note that it doesn’t matter if it is continues recording, recording on motion, or recording on event, in any case the camera will be streaming video to the recording server.