Get the first I frame form a video raw file in the local storage media.
This URL helps the NVR to have a quick search of video raw files for a specific condition. The firmware returns the first I frame included the video B2 data in a designate video raw file.
The error message will be returned if the firmware could find the video raw file or the assigned file is not a video raw file.
Filename
Note: the path of the recorded files are fixed by the firmware. The remote hosts does not need to give the file path in this URL command.
The example is used here to describe how the remote host gets the first I frame form specific file in the device (cameras or video encoders). The file name of video raw file in this example is video-20110928-123113-DI-1.raw.get the video image file
Network trace from remote host
GET /cgi-bin/system?USER=admin&PWD=123456&DISK_GET_FIRST_IFRAME=video-20110928-123113-DI-1.raw HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: zh-TW
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: 172.16.15.66
Connection: Keep-Alive
The reply from the device
HTTP/1.1 200 OK
Server: Httpd v1.0 05may2008
Content-Type: application/octet-stream
Date: Tue, 01 Jun 2010 22:32:05 GMT
Last-Modified: Tue, 01 Jun 2010 22:25:50 GMT
Accept-Ranges: bytes
Content-Length: 16698
Connection: Close
.`.A.XUs..=!|.B .....
.......
ERROR: file not found.
The file might be removed by firmware due to out of storage space before remote host downloads the file.
or
ERROR: file is not a video raw file
The file is not a video raw file.
Platform Devices Supported Firmware Version PlatformT Camera, Video server with local storage A1D-310-V4.12 and later PlatformK Camera A1D-311-V5.08.06 and later PlatformA1 Camera A1D-500-V6.02 and later
Valid
DISK_REMOVE_FILE, DISK_REMOVE_OLD_FILES, DISK_FILE_LIST, DISK_TOTAL_PAGES, DISK_FILE_SEARCH_TIME, DISK_FILE_SEARCH_EVENT, DISK_GET_FILE
http://ip:port/cgi-bin/system?USER=admin&PWD=123456&DISK_GET_FIRST_IFRAME=video-20110928-123113-DI-1.raw
or
http://ip:port/cgi-bin/cmd/system?DISK_GET_FIRST_IFRAME=video-20110928-123113-DI-1.raw