Dahua HTTP API: How to select part of recording file in 5216-4ks2 ?

0blar

Getting the hang of it
Joined
May 17, 2017
Messages
281
Reaction score
34
Hi

If someone get caught with my cameras (5231r-z), I wanted to know if it is possible to use the dahua HTTP API to select part of a video recording then send it to a ftp/nas server ?

Any helps ?

Thanks
 

hdo27

n3wb
Joined
Mar 31, 2017
Messages
14
Reaction score
4
You can use this for downloading a certain part of the recording from a NVR:

Code:
Syntax:

http://<server>/cgi-bin/loadfile.cgi?action=startLoad&channel=<ChannelNo>&startTime=<starttime>&endTime=<endtime>[&subtype=<typeNo>]

Example:

http://192.168.1.108/cgi-bin/loadfile.cgi?action=startLoad&channel=1&startTime=2012-10-8%2013:00:01&endTime=2012-10-8%2014:00:01&subtype=0

However the format is .DAV and you need to convert it to .MP4 or something else. That's kinda tricky.

Hi

If someone get caught with my cameras (5231r-z), I wanted to know if it is possible to use the dahua HTTP API to select part of a video recording then send it to a ftp/nas server ?

Any helps ?

Thanks
 

catcamstar

Known around here
Joined
Jan 28, 2018
Messages
1,659
Reaction score
1,193
Hi
I use command
http://192.168.0.15/cgi-bin/loadfile.cgi?action=startLoad&channel=1&startTime=2018-07-30 11:17:00&endTime=2018-07-30 11:20:00&subtype=0
But the file that is loaded does not match the time on the team. Always download a full hour video for any other day except the specified one

any helps ?
Can you check your DST time settings? Others have reporting "searching issues" (eg. skipping 1 hour forward/backward) on the NVR too when the DST is wrongly set.
 

realnt

n3wb
Joined
Aug 1, 2018
Messages
4
Reaction score
0
Location
Voronezh
I should use getcurrenttime and getlocalesconfig to check DST?

And what about media file finding. Before I'll start loadfile, it's need to send StartFind(Create, StartFind,Destroy)

Taked from
DAHUA HTTP API FOR IPC
Version 1.40
 
Last edited:

realnt

n3wb
Joined
Aug 1, 2018
Messages
4
Reaction score
0
Location
Voronezh
Can you check your DST time settings?
/cgi-bin/global.cgi?action=getCurrentTime
result=2018-08-02 13:02:48
cgi-bin/configManager.cgi?action=getConfig&name=Locales
table.Locales.DSTEnable=false
table.Locales.DSTEnd.Day=0
table.Locales.DSTEnd.Hour=0
table.Locales.DSTEnd.Minute=0
table.Locales.DSTEnd.Month=1
table.Locales.DSTEnd.Week=-1
table.Locales.DSTEnd.Year=2000
table.Locales.DSTStart.Day=0
table.Locales.DSTStart.Hour=0
table.Locales.DSTStart.Minute=40
table.Locales.DSTStart.Month=1
table.Locales.DSTStart.Week=-1
table.Locales.DSTStart.Year=2000
table.Locales.TimeFormat=yyyy-MM-dd HH:mm:ss
table.Locales.WorkDay=62
 
Top