Cаlculate the server parameters: Server.Calculate
The method and parameters
The Server.Calculate
method allows you to obtain an approximate estimate of the DVR storage size and video stream bandwidth for the specified characteristics.
The calculations provided in this documentation section are for general guidance only. Actual performance may vary depending on the configuration and model of the equipment used.
object Stream.Calculate
(width
, height
, codec
, fps
, hours
, days
, audio
, quality
, complexity
, movement
)
Параметры
number width
REQUIRED – the video stream image width.
number height
REQUIRED – the video stream image height.
enum codec
REQUIRED – the codec used for calculation. One of the following values is available: H.264
, H.265
, MPEG4
, MJPEG
, RAW
.
enum quality
= average
– the expected compression quality of the codec being used. One of the following values is acceptable:
high
– high compression quality.good
– good compression qualityaverage
– average compression quality, used when no other value is specified.low
– compression quality below average or low.
enum complexity
= low
– estimated scene complexity, how much the image changes. One of the following values is allowed:
low
– minor scene change (less than 33% of the scene changes).average
– average(~50% of the scene changes).above-average
– above-average scene change (up to 75% of the scene changes).high
– intense scene change (85% or more).
enum movement
= low
– anticipated scene dynamics, presence of moving objects. One of the following values is allowed:
very-low
– minimal or no movement (up to 15%).low
– slight movement (up to 30%).average
– noticeable movement (up to 50%).above-average
– significant movement in the video stream (up to 60%).constant
– continuous movement present.
number fps
= 15
– the number of frames per second.
number hours
= 24
– the number of DVR recording hours per day.
number days
= 7
– the number of days of DVR recording and storage.
bool audio
= false
– presence of video in the audio stream.
POST /api/ |
200 |
The object and its characteristics and calculated values:
JSON
|
400 |
The JSON-RPC error
JSON
|
500 |
The server error |