There currently isn’t a supported and tested way to implement this functionality.
Looking at path in video_stream_recorder.cpp, it seems like the currently implementation of video recorder can only write to one output file from one application run, with a fixed name (predetermined basename or receiver name), and different file names is also not currently supported.
Same as 2, it does not seem implemented in the current recorder.
Thanks for your answer.
Here are our requirements:
User can click start recording and stop recording at any time to start or stop recording microscope video stream.
When recording video stream, user can ALSO click screenshot to capture current frame and save as jpg picture.
The recording file can be splitted by file size such as every 1GB (can be configured when start recording) for each file, just like gstreamer multifilesink element.