169 guint startTime, guint duration, gpointer userData);
NvDsSRStatus NvDsSRCreate(NvDsSRContext **ctx, NvDsSRInitParams *params)
Creates the instance of smart record.
NvDsSRContainerType
Specifies container types.
gboolean isPlaying
flag to check if encodebin is in playing state.
guint videoCacheSize
size of video cache in seconds.
NvDsSRInitParams initParams
initialization parameters
Holds information about smart record instance.
GMutex flowLock
mutex to control the flow
Holds initializtion paramerters required to create NvDsSRContext.
NvDsSRStatus NvDsSRStop(NvDsSRContext *ctx, NvDsSRSessionId sessionId)
Stops the previously started recording.
guint height
recorded video height
NvDsSRStatus NvDsSRDestroy(NvDsSRContext *ctx)
Destroys the instance of smart record.
gpointer(* NvDsSRCallbackFunc)(NvDsSRRecordingInfo *info, gpointer userData)
GstElement * recordQue
queue element to cache the content.
GstElement * recordbin
parent bin element.
gchar * filename
recorded file name
guint width
recorded video width
gchar * dirpath
recorded file dir path
Hold information about video recorded.
gboolean gotKeyFrame
flag to check the key frame.
NvDsSRStatus
Specifies API return status.
guint width
optional, recording video width, 0 means no transcode
gchar * fileNamePrefix
recorded file name prefix
NvDsSRContext * ctx
SR bin context.
gboolean recordOn
flag to check if recording is on
NvDsSRContainerType containerType
recording video container, MP4 / MKV
gpointer uData
pointer to user provided data
struct NvDsSRRecordingInfo NvDsSRRecordingInfo
Hold information about video recorded.
guint height
optional, recording video height, 0 means no transcode
struct NvDsSRContext NvDsSRContext
Holds information about smart record instance.
NvDsSRStatus NvDsSRStart(NvDsSRContext *ctx, NvDsSRSessionId *sessionId, guint startTime, guint duration, gpointer userData)
Starts the video recording.
gboolean resetDone
flag to check if encodebin is reset
GstElement * filesink
filesink element
guint defaultDuration
default recording duration in seconds
NvDsSRSessionId sessionId
recording session-id
NvDsSRContainerType containerType
recorded video container, MP4 / MKV
guint duration
duration in seconds
NvDsSRCallbackFunc callback
callback function gets called once recording is complete
GstElement * encodebin
child bin to save the content to file.
struct NvDsSRInitParams NvDsSRInitParams
Holds initializtion paramerters required to create NvDsSRContext.
GThread * resetThread
thread to reset the encodebin
gchar * dirpath
store recorded file under directory path