Two cameras: RC switching or dual stream
UAVcast-Pro handles two cameras, for example a forward camera and a downward or zoom camera. You choose between two modes:
| Switching (default) | Dual stream | |
|---|---|---|
| What the ground station gets | One video stream, showing camera 1 or camera 2 | Two video streams at the same time |
| How you choose | The camera badges in the web interface, or an RC channel | Both always live |
| Ports | Video Port | Camera 1 on Video Port, camera 2 on Video Port (Camera 2) (default: Video Port + 1) |
| CPU and bandwidth | One encode | Two encodes, about double the uplink |
1. Add the second camera
- Connect both cameras. Two CSI cameras on a Pi 5, a CSI and a USB camera, or two USB cameras all work.
- Open Camera → Camera settings. The camera slots show CAM 1 and CAM 2.
- Click Add Camera on the second slot and choose the camera.
- Resolution and FPS from Camera 1 will be used in switching mode. If camera 2 supports camera 1's resolution, turn on Match Camera 1 Resolution; otherwise camera 2 uses its own resolution and is scaled to match.
If a camera is missing from the list, see Camera not detected.
2a. Switch cameras from your transmitter
- Under RC Channel Switching, turn on Enable RC channel camera switching.
- Choose a free channel in RC Channel. The default is channel 7.
- Map a two-position switch on your transmitter to that channel.
- Flip the switch and watch Current PWM: below 1500 µs selects camera 1, above 1500 µs selects camera 2.
While RC switching is on, the camera badges in the web interface don't switch cameras. Turn RC switching off to select cameras by hand again.
2b. Stream both cameras at once
- Turn on Dual stream. The badge shows Both live.
- Each camera now has its own resolution, FPS and bitrate under Per-camera settings.
- Open Ground Control Stations. Each destination now shows Video Port (Camera 2). Leave it empty to use Video Port + 1 (5601), or enter a port.
- On the ground station, receive the second stream on that port, for example with a second QGroundControl video source or a GStreamer window: see Ground stations & video for QGroundControl, Mission Planner and GStreamer on every OS.
UAVcast-Pro encodes video in software. With two streams, keep an eye on System load. When it says CPU is near its limit, lower one stream's resolution or bitrate, or turn the second stream off. A Raspberry Pi 4 or 5 is recommended for dual stream.
The Flight Map shows one video window per active stream. You can hide them as tabs at the bottom of the map.
Port planning
With dual stream on, each destination uses two video ports, and audio (if Send audio to ground stations is on) uses video port + 2. If you add more destinations on the same computer, space their video ports at least three apart, for example 5600 and 5610.
Recording both cameras
Under Camera → Recordings → Settings, Record camera 2 works only when dual stream is on. See Record flights and review them.