27 #define _DS_DEPRECATED_(STR) __attribute__ ((deprecated (STR)))
92 guint videoCacheSize
_DS_DEPRECATED_(
"videoCacheSize is deprecated. Use cacheSize instead");
204 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.
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.
#define _DS_DEPRECATED_(STR)
guint cacheSize
size of cache in seconds, applies to video and audio.
gboolean containsAudio
Boolean indicating if recorded stream contains audio.
gchar * dirpath
recorded file dir path
NvDsSRStatus NvDsSRDestroy(NvDsSRContext *ctx)
Destroys the instance of smart record.
gboolean containsVideo
Boolean indicating if recorded stream contains video.
Hold information about video recorded.
guint samplingRate
sampling rate of recorded audio in Hz
gboolean gotKeyFrame
flag to check the key frame.
guint channels
channels in recorded audio
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