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