Skip to content

Multi-Camera Control

Up

NOTE: This dialog is only available for systems with two or more CSI or USB cameras connected (see Info).

raspiCamSrv can simultaneously operate two cameras: the Active Camera and the Second Camera.
If more cameras are connected and available (usually USB cameras), Active and Second Camera must be selected out of these.

While live streams for both cameras are shown, this dialog allows photo taking and video recording either individually with each of the two cameras or simultaneously with both.

Webcam

The left side of the page always shows the active camera.

The screenshot, above, shows a configuration with four available cameras.
If more than two cameras are available, the stream titles are dropdown lists from which you can select Active or Second Camera.
In every case, the other camera is not selectable because one camera cannot have two roles.

If there are just two cameras available, the drop-down lists are replaced by normal text.

When switching the cameras, either with the Switch Cameras button on this side or by changing the camera in the Settings, the streams will be exchanged.

Buttons

Photo / Raw / Video

Every camera has an own set of action buttons which apply only to this camera.
Their function is identical to that of the corresponding buttons on the Live screen

The resulting photos or place holders will not be shown on this page.
They are stored in camera-specific subfolders and are accessible through the Photos dialog

For the active camera, the last photo or placeholder is shown in the Photo Display of the Live screen and can be added to the display buffer for inspection of meta data or histogram..

Photo - Both / Raw - Both / Video - Both

When these buttons are pressed, the respective function is applied for both cameras.

The media files will have the same name for both cameras, which is generated from the timestamp of command execution, but are stored in their camera-specific subfolder.
This allows identifying photos which have been synchronously taken and videos which have been synchronously started.

NOTE: Currently, the actions on both cameras are executed sequentially, so that there may be a small subsecond delay.

Save Active Camera Settings for Camera Switch

This button stores the current Camera Configuration for all configurations as well as the current Controls settings for the active camera in a specific structure (streamingCfg) so that it can be reused for streaming in a case that the other camera has been activated.
In addition, also the camera-related settings of Trigger (Trigger/Motion and Trigger/Camera) will be stored in the streamingCfg.
(See also Configuring MJPEG Stream and jpeg Photo)

Synchronize Configurations

This button is disabled if the two cameras are of different model.

If they are the same model, the button can be used to transfer the configuration, controls and camera-related Trigger settings from the active camera to the second camera. This is especially useful in the case of Stereo Vision where both cameras should be operated with identical configuration.

NOTE: the button does not save the settings for the active camera in the streamingCfg structure. This must be done explicitly and is recommended to be done before synchronizing.

Switch Cameras

With this button, you can switch the cameras so that the one sown on the right side will become the active camera.

In case you have made changes of Configuration, Controls or camera-related Trigger settings (Trigger/Motion and Trigger/Camera) which have not yet been saved for Camera Switch, there will be a warning:
CamSwitchWarning
To make sure your configuration changes survive the camera switxh, push Save Active Camera Settings for Camera Switch

Process Status Indicators

Process Status Indicators show whether a camera is currently recording video or not.
This is done independently for the active camera StatusActiveCam and for the other camera StatusActiveCam.

NOTE that the recording status indicators are also activated when recording is started through the API

Configuring MJPEG Stream and jpeg Photo

With raspiCamSrv, Camera Configuration and Controls apply always to the active camera (which camera is the active one, can be selected in the Settings).

When the Flask server starts up without preloading stored configurations, the active camera and, if available, the second camera are preconfigured with parameter defaults.

The entire Camera Configuration as well as the Controls for both cameras are stored in a specific streaming datastructure.

When Camera Configuration and/or Controls for the active camera are modified, these settings will not be automatically stored in the streaming configuration.
This must be actively done with the Save Active Camera Settings for Camera Switch.

When cameras are switched, configuration and controls for the active camera will be replaced by those from the second camera stored in the streaming datastructure.

In order to configure your camera setup, you can proceed as follows:

  1. Select one of the cameras as active camera
  2. Adjust the Camera Configuration,
    for example Transform and/or Sensor Mode with Stream Size
  3. Adjust the Controls,
    for example focus/lensposition, zoom, AutoExposure or others
  4. When the setup is satisfactory, go to the Multi-Cam dialog and press the Save Active Camera Settings for Camera Switch button.
  5. Then switch cameras with the <<< Switch Cameras >>> button.
  6. Repeat steps 2. to 4. for the other camera
  7. If you now switch cameras, each stream, photo, raw photo and video should show in the way specifically configured for the camera.
  8. Now you can go to the Settings screen and push the Store Configuration button in order to persist the streaming data along with the other configuration settings.
  9. If you want the entire configuration, including the streaming configuration, to be loaded when the server starts up, check the related checkbox in the Settings screen.