Hey, i am trying use a lower resolution stream for detection to reduce CPU(FFMpeg) usage but frigate acts up and throws an error.
Using a single input works fine;
inputs:
- path: rtsp://user:[email protected]:554/Streaming/Channels/101/
roles:
- record
- rtmp
- detect
But when i change to two inputs like this, frigate refuses to start and throws an error
inputs:
- path: rtsp://user:[email protected]:554/Streaming/Channels/101/
roles:
- record
- rtmp
- path: rtsp://user:[email protected]:554/Streaming/Channels/102/
roles:
- detect
The error:
Config Error:
Traceback (most recent call last):
File "/opt/frigate/frigate/api/app.py", line 245, in config_save
FrigateConfig.parse_raw(new_config)
File "/opt/frigate/frigate/config.py", line 1657, in parse_raw
return cls.model_validate(config)
File "/usr/local/lib/python3.9/dist-packages/pydantic/main.py", line 551, in model_validate
return cls.__pydantic_validator__.validate_python(
pydantic_core._pydantic_core.ValidationError: 1 validation error for FrigateConfig
cameras.huvudentre.ffmpeg.inputs.0.roles.1
Input should be 'audio', 'record' or 'detect' [type=enum, input_value='rtmp', input_type=str]
For further information visit https://errors.pydantic.dev/2.7/v/enum
If i read the error message, i guess that it complains about the YAML not being correct…?
Does anyone know what i am doing wrong?