Hi,
Is there a period limit on Duration value for Smart Record ? I set like 3600 seconds as duration for Smart Record recording instance but it stopped the record chunk at the Default-Duration Value I’ve set.
Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
Jetson AGX Orin • DeepStream Version
6.3 • JetPack Version (valid for Jetson only)
5.1.2 • TensorRT Version
5.1.2 • Issue Type( questions, new requirements, bugs)
Questions/Bug
I did actually, But it kept getting overridden by the default value for more than 600 secs set values for the NvDsSRStart’s duration value. Please find the following code segment.
Blockquote
static GstPadProbeReturn
recordQue_sink_pad_buffer_probe (GstPad * pad,
GstPadProbeInfo * info,
gpointer u_data)
{
NvDsSRSessionId sessId = 1;
NvDsSRContext *ctx = (NvDsSRContext *) u_data;
guint startTime = STREAM_REC_START_TIME; guint duration = 600;
if (!nvdssrCtxStr->recordOn && nvdssrCtxStr->resetDone){
LOG(INFO) << “[Deepstream] - [Stream Record] - Recording started for camera " << camera_id;
g_print(”[Deepstream] - [Stream Record] - Recording started for camera ");
if (NvDsSRStart (ctx, &sessId, startTime, duration,
NULL) != NVDSSR_STATUS_OK){
LOG(INFO) << “[Deepstream] - [Stream Record] - Unable to start recording for camera " << camera_id;
g_print(”[Deepstream] - [Stream Record] - Unable to start recording for camera ");
}
}
return GST_PAD_PROBE_OK;
}
To give you more context, I have added a buffer probe to the recordQue sub element’s sink pad of the nvdssrCtx->recordbin bin. Then the above function will get invoked every time there’s buffers present at the recordQue’s sink pad. Idea is to seamlessly record a stream using smart record as data flow.
duration will be set to Default-Duration if it is greater than max duration. you can modify default duration. for example in deepstream-testsr,
params.defaultDuration = SMART_REC_DEFAULT_DURATION;