Knowledge base > Tasks > Capture video with an ONVIF camera
When setting up a surveillance system, configuring your cameras correctly is crucial for optimal performance. One of the key tasks in this setup is capturing video from your ONVIF camera. The Capture video task in Banalytics is essential for enabling video streaming, recording, and taking advantage of various features in your surveillance system. In addition to capturing video frames, Banalytics also processes and stores audio, providing a complete surveillance solution.
For ONVIF cameras, the Capture video task is not added automatically. The camera must first be connected, after which the software retrieves the available media profiles from the camera. Media profiles are an important part of the ONVIF standard, and they define how video and audio are streamed from the camera to the system.
To add the Capture video task in Banalytics, click on the camera title and select "Add Capture Video Task" in the bottom right corner. Video streaming in the browser should start immediately. If it doesn’t, review and adjust the camera's configuration options.
Value
Required (Yes/No)
Description
Default
Restart on failure
Yes
Restart mode upon catching an error:
Stop on failure - not restarted until triggered manually.
Immediately - tries to restart automatically immediately after catching an error.
10 sec - tries to restart automatically with a 10-seconds delay after catching an error.
30 sec - tries to restart automatically with a 30-seconds delay after catching an error.
1 min - tries to restart automatically with a 1-minute delay after catching an error.
Default to 10 sec
Device
Yes
Select an ONVIF camera configured for the Banalytics server.
Media profile
Yes
Choose one of the media profiles for the camera that Banalytics receives after the camera is connected. Media profiles are a key component of the ONVIF standard and define how video and audio streams are delivered.
Media profiles specify parameters like resolution, encoding, frame rate, bit rate, and more.
Note: Media profiles can be complex, and configuring them optimally for your needs is essential. For more detailed guidance, read Banalytics' articles on Media profiles for ONVIF cameras,
Rotate image
No
Adjust the image rotation angle if necessary (e.g., to correct camera orientation).
Default to 0
Disable audio
No
Choose whether to disable audio from the camera if it's not needed for your surveillance setup.
Default to False
RT buffer (Mb)
Yes
This specifies the maximum memory used for buffering real-time frames. For higher resolution streams, you may need to increase this value to accommodate larger video data.
Default to 10 Mb
Max FPS (0 - disabled)
No
Adjusts the frame rate of the video stream. While 30 FPS is ideal for smooth video, a lower FPS (e.g., 5 FPS) can be sufficient for certain use cases like motion detection while reducing bandwidth usage.
This parameter in Banalytics rewrites the value received with the camera's media profile.
Default to 0