|
NVIDIA DeepStream SDK API Reference
|
7.1 Release
|
Go to the documentation of this file.
29 #define _DS_DEPRECATED_(STR) __attribute__ ((deprecated (STR)))
94 guint videoCacheSize
_DS_DEPRECATED_(
"videoCacheSize is deprecated. Use cacheSize instead");
206 guint startTime, guint duration, gpointer userData);
struct NvDsSRContext NvDsSRContext
Holds information about smart record instance.
NvDsSRCallbackFunc callback
callback function gets called once recording is complete
guint channels
channels in recorded audio
@ NVDSSR_STATUS_INVALID_OP
NvDsSRStatus NvDsSRStart(NvDsSRContext *ctx, NvDsSRSessionId *sessionId, guint startTime, guint duration, gpointer userData)
Starts the video recording.
NvDsSRStatus NvDsSRDestroy(NvDsSRContext *ctx)
Destroys the instance of smart record.
gboolean resetDone
flag to check if encodebin is reset
NvDsSRContext * ctx
SR bin context.
NvDsSRStatus
Specifies API return status.
guint cacheSize
size of cache in seconds, applies to video and audio.
struct NvDsSRRecordingInfo NvDsSRRecordingInfo
Hold information about video recorded.
gboolean isPlaying
flag to check if encodebin is in playing state.
NvDsSRSessionId sessionId
recording session-id
NvDsSRContainerType containerType
recorded video container, MP4 / MKV
guint height
recorded video height
guint width
recorded video width
gpointer uData
pointer to user provided data
gchar * dirpath
recorded file dir path
GMutex flowLock
mutex to control the flow
GstElement * recordQue
queue element to cache the content.
NvDsSRStatus NvDsSRCreate(NvDsSRContext **ctx, NvDsSRInitParams *params)
Creates the instance of smart record.
gpointer(* NvDsSRCallbackFunc)(NvDsSRRecordingInfo *info, gpointer userData)
NvDsSRInitParams initParams
initialization parameters
guint width
optional, recording video width, 0 means no transcode
gboolean containsAudio
Boolean indicating if recorded stream contains audio.
#define _DS_DEPRECATED_(STR)
@ NVDSSR_STATUS_INVALID_VAL
Holds information about smart record instance.
guint64 duration
duration in milliseconds
Holds initializtion paramerters required to create NvDsSRContext.
gchar * fileNamePrefix
recorded file name prefix
guint samplingRate
sampling rate of recorded audio in Hz
gboolean gotKeyFrame
flag to check the key frame.
guint height
optional, recording video height, 0 means no transcode
NvDsSRContainerType
Specifies container types.
GThread * resetThread
thread to reset the encodebin
GstElement * recordbin
parent bin element.
NvDsSRStatus NvDsSRStop(NvDsSRContext *ctx, NvDsSRSessionId sessionId)
Stops the previously started recording.
guint defaultDuration
default recording duration in seconds
GstElement * encodebin
child bin to save the content to file.
NvDsSRContainerType containerType
recording video container, MP4 / MKV
gchar * filename
recorded file name
gchar * dirpath
store recorded file under directory path
gboolean containsVideo
Boolean indicating if recorded stream contains video.
struct NvDsSRInitParams NvDsSRInitParams
Holds initializtion paramerters required to create NvDsSRContext.
gboolean recordOn
flag to check if recording is on
Hold information about video recorded.
gpointer privData
pointer to private data
GstElement * filesink
filesink element