It is possible to specify a number of seconds that must be included at the beginning of the recording, BEFORE the "start recording" action was invoked.
This is designed to additionally include in the video clip the few seconds of video just before the user decided to start the recording.
To use this feature the filter must be configured with the
recording in a "paused" mode by invoking:
(e.g. for
an additional pre-roll duration of 5 seconds)
DatasteadRTSPSourceConfig.SetInt
(RTSP_Source_RecordingBacktimedStartSeconds_int,
5)
DatasteadRTSPSourceConfig.SetStr
(RTSP_Source_RecordingFileName_str, "nul.mp4")
Run the graph, so the filter is in fact previewing, but ready to record.
While the graph is running, when it's time to start the recording, invoke:
DatasteadRTSPSourceConfig.Action (RTSP_Action_RecordToNewFileNow, "newfilename.mp4")
When the graph is stopped, the "newfilename.mp4" clip will contain the duration of the recording more -at the beginning- the specified number of seconds before RTSP_Action_RecordToNewFileNow was invoked.