Versions Compared

Key

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

...

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
formatNo

The format in which the archive will be exported. Format options: mp4, avi, flv, mov, asf.

If the format is not specified in the request body, then the value of the ExportContainerFormat registry key is used (see Registry keys reference guide). If the key is not specified, then the archive is exported in mp4 format

Request example:

GET http://127.0.0.1:80/downloadarchivefile?cameraid=1&fromdatetime=20142024-10-01T00:00:00&todatetime=20142024-10-01T01: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,

The command will result in a file containing an archive fragment. The camera name and time range will be indicated in the file name.

Example file name: Camera[4](

...

2024-08-13T11_00_00 -

...

2024-08-13T12_10_00).

...

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

...

mp4.