Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
GET

General request format:

GET http://example.com:[port]/IP-address:port/downloadarchivefile?cameraid=1{cam_id}&fromdatetime=2014-10-01T00:00:00&todatetime=2014-10-О1Т01:20:05

Example:

={from_time}&todatetime={to_time}

Request parameters:

ParameterIs requiredDescription
cam_idYesCamera ID
from_timeYesThe start time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS
to_timeYesThe end time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS

Request example:

GET http://127.0.0.1:80GЕТ http://192.168.15.182:8095/downloadarchivefile?cameraid=1&fromdatetime=2014-10-01T00:00:00&todatetime=2014-10-О1Т0101T01:20:05

Response example:

Code Block
HTTP/l.1 200 OK

Content-
Туре
Type: application/octet-stream

Also, as a result of the command, a file with the .es extension will be received (for example, Camera [4] (2019-08-13T11_00_00 - 2019-08-13T12_10_00).es). Convert this file using the ffmpeg utility to play it. This utility is available for download on the official website https://ffmpeg.org/

Example command to convert H.264-coded file:

ffmpeg -i "C:\path to the .264 file\Camera[5].es" -c:v copy -bsf:v h264_mp4toannexb -c:a copy -f avi output.avi

Example command to convert H.265-coded file:

ffmpeg -i "C:\path to the .265 file\Camera[5].es" -c:v copy -bsf:v hevc_mp4toannexb -c:a copy -f avi output.avi

The .avi file (output.avi) is created after this command execution.