Knowledge base > Tasks > Capture video with a network camera
The video-capturing task assumes using the Banalytics VMS to access and control the camera, allowing it to capture video and audio data in real time. The Capture video task for a camera is essential to start video streaming, recording, or using other advantages of a video management system.
The task also captures audio from the camera's microphone or an external microphone connected to the Banalytics server.
During the video capture process, the Banalytics server captures video frames that can be processed, compressed, stored, or streamed. The video can be streamed on the Banalytics portal web page. The browser and the media server establish a peer-to-peer connection.
A peer-to-peer (P2P) connection between a browser and a Banalytics server refers to a direct connection between two devices (in this case, the browser and the Banalytics server) without needing a central server or intermediary. This type of connection is commonly used in applications that involve real-time communication, such as video conferencing, online gaming, and live streaming. In a P2P connection, the browser and the Banalytics server exchange data directly, which can improve the speed and quality of the connection.
To establish a P2P connection between a browser and a Banalytics server, the browser uses a technology called WebRTC (Web Real-Time Communication). This technology allows for peer-to-peer communication between the browser and the Banalytics server. Once the P2P connection is established, the browser can stream media content (such as audio or video) directly from the Banalytics server without going through a central server.
After successfully adding the capturing task, you can view the live stream, edit the configuration options, and run/stop/delete it.
Expanding the task, you'll see other camera tasks for which capturing is essential—add a watermark to the camera view, continuous recording, motion detection, recording upon motion detection, or object classification.
Note that stopping the capturing task stops all the tasks underneath.
If a "Capture of ..." task does not appear underneath, add the task in the bottom right corner.
Value
Required?
Description
Default
Restart on failure
Required
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
Control frame rate
Required
The control frame rate for an IP camera typically refers to the frequency at which control signals or commands are sent from the camera to a control system or software for remote management and control of the camera's functions. Control frame rate is typically expressed in frames per second (fps) and can vary depending on the camera's capabilities and settings.
The control frame rate is distinct from the video frame rate, which refers to the number of video frames captured and transmitted by the camera per second. The video frame rate is typically higher than the control frame rate, as it determines the smoothness of the video playback.
Higher control frame rates produce more responsive and smoother camera control but may require more network bandwidth and processing power. For information on configuring the control frame rate for your specific IP camera, consult the camera's documentation or support resources and the control system or software documentation.
Default to 0