#How to start capture without stopping the preview?
You can start and stop video capture without stopping the preview. You can use it for video capture, screen capture, and other capture modes.
Add new output with default settings. We'll use MP4 output in this example.
File name will be ignored because we'll start capture later.
Start video preview (video capture not started at this moment).
Start actual video capture to file or other output, for example, RTMP output.
Stop actual video capture if needed
Visit our GitHub page to get more code samples.