2021-01-21 03:26:49 +03:00
---
id: cameras
title: Cameras
---
## Setting Up Camera Inputs
2021-09-12 22:48:21 +03:00
Several inputs can be configured for each camera and the role of each input can be mixed and matched based on your needs. This allows you to use a lower resolution stream for object detection, but create recordings from a higher resolution stream, or vice versa.
2021-01-21 03:26:49 +03:00
2022-11-02 14:41:44 +03:00
A camera is enabled by default but can be temporarily disabled by using `enabled: False` . Existing events and recordings can still be accessed. Live streams, recording and detecting are not working. Camera specific configurations will be used.
2021-01-21 03:26:49 +03:00
Each role can only be assigned to one input per camera. The options for roles are as follows:
2022-11-02 14:36:09 +03:00
| Role | Description |
| ---------- | ---------------------------------------------------------------------------------------------------- |
| `detect` | Main feed for object detection |
| `record` | Saves segments of the video feed based on configuration settings. [docs ](/configuration/record ) |
| `restream` | Broadcast as RTSP feed and use the full res stream for live view. [docs ](/configuration/restream ) |
| `rtmp` | Deprecated: Broadcast as an RTMP feed for other services to consume. [docs ](/configuration/restream ) |
2021-01-21 03:26:49 +03:00
```yaml
mqtt:
host: mqtt.server.com
cameras:
back:
2022-11-02 14:41:44 +03:00
enabled: True
2021-01-21 03:26:49 +03:00
ffmpeg:
inputs:
- path: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1& subtype=2
roles:
- detect
- rtmp
- path: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/live
roles:
- record
2021-08-14 22:18:35 +03:00
detect:
width: 1280
height: 720
2021-01-21 03:26:49 +03:00
```
2021-09-12 22:48:21 +03:00
Additional cameras are simply added to the config under the `cameras` entry.
2021-01-21 03:26:49 +03:00
```yaml
2021-09-12 22:48:21 +03:00
mqtt: ...
2021-01-21 03:26:49 +03:00
cameras:
2021-09-12 22:48:21 +03:00
back: ...
front: ...
side: ...
2021-01-21 03:26:49 +03:00
```
2022-10-08 05:15:12 +03:00
2022-11-02 14:41:44 +03:00
For camera model specific settings check the [camera specific ](/configuration/camera_specific ) infos.