Methods · 21 Nov 2026 · 4 min read
Recording behaviour with up to six cameras using MultiCam Recorder
How to install MultiCam Recorder and record videos from several Basler and USB cameras at once for behavioural neuroscience, without writing code.
Behavioural experiments often need several cameras at once: one per testing box, or a side view and a top view of the same animal. Writing a new acquisition script for every setup is slow, and it makes recording depend on whoever knows the code.
MultiCam Recorder is a free, open-source Windows application I developed to solve this. It records MP4 videos from up to six cameras at the same time, combining Basler USB3 cameras and ordinary USB webcams, with a live preview and no programming required. This guide shows how to install it and make a first recording.

What it does
- Finds all connected Basler and USB cameras and lets you give each one a nickname, such as
box1. - Shows all cameras at once in a live preview (layouts from 1x1 to 3x2).
- Loads Basler configuration files (
.pfs), either the same file for all cameras or one per camera, and lets you adjust settings with sliders while you watch the preview. - Starts all cameras together or in groups, immediately or at a scheduled time.
- Names videos automatically, optionally with animal IDs from an Excel file.
- Saves a metadata file next to every video, with frame count, frame rate, duration, dropped frames and camera settings.
- Saves your whole setup, so the next session starts with one click.
What you need
- A 64-bit Windows 10 or 11 computer. The application is written and tested for Windows only.
- For Basler cameras: the free Basler pylon Camera Software Suite, installed once, and USB3 ports for the cameras.
- For ordinary USB cameras: any USB port, and no extra driver.
Install the ready-to-use program
- If you use Basler cameras, install Basler pylon and restart the computer. Open pylon Viewer once to check that the camera is listed, then close it: a Basler camera can only be used by one program at a time.
- Download the latest
MultiCamRecorder_vX.Y.Z_Windows.zipfrom the releases page (about 170 MB). - Right-click the ZIP file, choose Extract All, and extract it to a folder you will find again, such as Documents.
- Open the
MultiCamRecorderfolder and double-clickMultiCamRecorder.exe. The first time, Windows may show "Windows protected your PC" because the program is not code-signed. Click More info, then Run anyway.
Keep MultiCamRecorder.exe inside its folder, because it needs the _internal folder next to it. Use a desktop shortcut if you want to start it from elsewhere. If you prefer to run or modify the Python source code, the repository documentation explains how.
Make your first recording
- Connect the cameras and start the application. They are detected automatically and listed in the tab 1. Cameras.
- Tick Use for every camera you want to record.
- For Basler cameras, load a
.pfssettings file in the Basler parameters box. Example files are included in the program folder. - Optionally, click Set... to give a camera a nickname. It is used in the file names and remembered on that computer.
- Click Start preview, choose a layout and check the framing, focus and lighting.
- In the tab 2. Recording, choose an output folder and a duration.
- Click Record now. The preview shows
REC, the elapsed time and the number of frames. The recording stops by itself at the end of the duration, or when you click Stop.
Click Save recording settings... to reuse the same setup next time.
Choose camera settings that the camera can reach
The most common cause of a lower-than-requested frame rate is an exposure time that is too long. Each frame's exposure must be shorter than the time between frames: 1,000,000 divided by the frame rate, in microseconds. At 60 frames per second that is 16,667 µs; at 32 frames per second, 31,250 µs.
- Exposure: longer is brighter, but adds motion blur.
- Gain: higher is brighter, but adds noise.
- Binning and image size: smaller images need less USB bandwidth and produce smaller files, at the cost of resolution or field of view.
The parameter window shows the frame rate the camera can actually reach, and warns you when a change lowers image quality or makes dropped frames more likely. With several Basler cameras, spread them across different USB3 ports or controllers, and save videos to a fast local disk rather than a network drive.
Check every recording with its metadata
Each video is saved as an MP4 file named by date, time and camera, for example 20261027_143055_box1.mp4, together with a _metadata.json file. Reading it takes three lines of Python:
import json
with open("20261027_143055_box1_metadata.json") as f:
rec = json.load(f)["recording"]
print(rec["number_of_frames"], "frames at", rec["measured_fps"], "fps,", rec["frames_dropped"], "dropped")Check measured_fps and frames_dropped before analysis. For ordinary USB cameras, Windows does not report the real frame rate reliably, so it is measured during the first two seconds of each recording, and dropped frames cannot be counted.
Limitations to keep in mind
- Starting cameras together in a group is not hardware-level synchronisation. If your analysis depends on precise alignment between cameras or with other equipment, verify the timing on your own setup, for example with a TTL output per frame from Basler cameras.
- Recording performance depends on the cameras, drivers, USB bandwidth, disk speed and chosen settings. Make a short test recording before each new experiment.
- A video file is completed only when the recording ends normally. If the computer crashes during a recording, that video cannot be opened.
Settings for LUPE pain behaviour analysis
The program includes example Basler settings for recordings analysed with LUPE (Light Automated Pain Evaluator), introduced in Oswell, Rogers, James et al., Nature (2026), a paper I co-authored. They provide a starting point for LUPE recordings and for top-view recordings, with optional TTL output per frame.
How to cite
If you use MultiCam Recorder in your research, please cite the version you used, which is shown in the window title and in every metadata file:
Sandoval Ortega, R. A. (2026). MultiCam Recorder (Version X.Y.Z) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23817008
Related
- MultiCam Recorder project case study
- Finding the source of 50/60 Hz noise in rodent electrophysiology
- All scientific software projects
Questions, bug reports and feature requests are welcome on GitHub, or you can contact me about adapting it to your setup.