Hello,
I'm trying to get a list of clips for a timeframe and I'm running into several issues getting reliable data. I'm saving video in 1min clips as I need to access them right (1-2 minutes) after they take place.
Issue 1: Sometimes I'll request a list and it will return tiny fragments
Will return:
The first 2 make sense but the last 3 are for a couple hundred milliseconds to literally 0 milliseconds. What could explain this?
Issue 2: Sometime it will return a list of clip that do not fully capture the timeframe (notice the command startdate is earlier than the 1 clip returned)
Any ideas what might be causing this? The API should do exactly what I'm needing it to do but the results are erratic. TIA!
I'm trying to get a list of clips for a timeframe and I'm running into several issues getting reliable data. I'm saving video in 1min clips as I need to access them right (1-2 minutes) after they take place.
Issue 1: Sometimes I'll request a list and it will return tiny fragments
JSON:
{"cmd":"cliplist","session":session,"camera""Cam1","startdate":1593541650,"enddate":1593541741}
Will return:
JSON:
{
"result": "success",
"session": "43544c293cb44c655b9a28ec28ea0779",
"data": [
{
"camera": "Cam2",
"path": "@44800755.bvr",
"offset": 0,
"date": 1593541740,
"color": 8151097,
"flags": 0,
"res": "1920x1080",
"msec": 59934,
"filesize": "01m00s (24.8M)",
"filetype": "bvr H264 New"
},
{
"camera": "Cam2",
"path": "@44645625.bvr",
"offset": 0,
"date": 1593541689,
"color": 8151097,
"flags": 0,
"res": "1920x1080",
"msec": 49702,
"filesize": "50sec (21.6M)",
"filetype": "bvr H264 New"
},
{
"camera": "Cam2",
"path": "@44564103.bvr",
"offset": 0,
"date": 1593541680,
"color": 8151097,
"flags": 0,
"res": "1920x1080",
"msec": 0,
"filesize": "00sec (125K)",
"filetype": "bvr H264 New"
},
{
"camera": "Cam2",
"path": "@44482613.bvr",
"offset": 0,
"date": 1593541679,
"color": 8151097,
"flags": 0,
"res": "1920x1080",
"msec": 182,
"filesize": "00sec (127K)",
"filetype": "bvr H264 New"
},
{
"camera": "Cam2",
"path": "@44328357.bvr",
"offset": 0,
"date": 1593541680,
"color": 8151097,
"flags": 0,
"res": "1920x1080",
"msec": 200,
"filesize": "00sec (125K)",
"filetype": "bvr H264 New"
}
]
}
The first 2 make sense but the last 3 are for a couple hundred milliseconds to literally 0 milliseconds. What could explain this?
Issue 2: Sometime it will return a list of clip that do not fully capture the timeframe (notice the command startdate is earlier than the 1 clip returned)
JSON:
{"cmd":"cliplist","session":session,"camera""Cam1","startdate":1593541644,"enddate":1593541735}
Code:
{
"result": "success",
"session": "43544c293cb44c655b9a28ec28ea0779",
"data": [
{
"camera": "Cam1",
"path": "@44410435.bvr",
"offset": 0,
"date": 1593541680,
"color": 8151097,
"flags": 0,
"res": "1920x1080",
"msec": 60112,
"filesize": "01m00s (24.5M)",
"filetype": "bvr H264 New"
}
]
}
Any ideas what might be causing this? The API should do exactly what I'm needing it to do but the results are erratic. TIA!