question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Support]: Unknown camera validaton error in `config.yml`

See original GitHub issue

Describe the problem you are having

I can’t tell why frigate is seeing a slicing error in my config.yml file. I linted the config and its valid YAML.

Version

NA

Frigate config file

mqtt:
  host: mqtt
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  stats_interval: 60
logger:
  default: info
record:
  enabled: False
snapshots:
  enabled: False
rtmp:
  enabled: True
cameras:
  test_cam:
    ffmpeg:
      - input_args:
        - -c:v
        - h264
      - path: rtsp://192.168.0.23:554/s1
        roles: 
          - rtmp
    mqtt:
      enabled: True
      timestamp: True
      bounding_box: True
      height: 720
      quality: 70

Relevant log output

user@system:~/Documents/frigate$ docker logs frigate
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-07-04 11:50:09] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
*************************************************************
*************************************************************
***    Your config file is not valid!                     ***
***    Please check the docs at                           ***
***    https://docs.frigate.video/configuration/index     ***
*************************************************************
*************************************************************
***    Config Validation Errors                           ***
*************************************************************
1 validation error for FrigateConfig
cameras -> test_cam
  list indices must be integers or slices, not str (type=type_error)
Traceback (most recent call last):
  File "/opt/frigate/frigate/app.py", line 312, in start
    self.init_config()
  File "/opt/frigate/frigate/app.py", line 77, in init_config
    user_config = FrigateConfig.parse_file(config_file)
  File "/opt/frigate/frigate/config.py", line 904, in parse_file
    return cls.parse_obj(config)
  File "pydantic/main.py", line 511, in pydantic.main.BaseModel.parse_obj
  File "pydantic/main.py", line 331, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for FrigateConfig
cameras -> test_cam
  list indices must be integers or slices, not str (type=type_error)

*************************************************************
***    End Config Validation Errors                       ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

FFprobe output from your camera

Input #0, rtsp, from 'rtsp://192.168.0.23:554/s1':
  Metadata:
    title           : s1
  Duration: N/A, start: 0.146000, bitrate: N/A
    Stream #0:0: Audio: aac (LC), 48000 Hz, mono, fltp
    Stream #0:1: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], 15 fps, 15 tbr, 90k tbn, 30 tbc

Frigate stats

NA

Operating system

Debian

Install method

Docker Compose

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

UniFi UVC G3 FLEX

Any other information that may be helpful

Thank you

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
NickM-27commented, Jul 5, 2022

It needs inputs and path goes inside that

0reactions
blakeblackshearcommented, Jul 5, 2022

There is nothing on that page that resembles your input args.

input_args:
  - -c:v
  - h264
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Errors in YAML (.YML) Config Files - Knowledgebase
To fix errors in . yml files, you will need to use a YAML Parser. Paste your . yml configuration file into the...
Read more >
imaqdx Unknown network error (-1074360277) at config
We are using two Prosilica GigE camera with imaqdx and we are frequently getting error -1074360277 (Unknown network error) at 'IMAQdx ...
Read more >
Error adding rtsp cameras - Home Assistant Community
Im getting Unknown Error Occurred when trying to add my cctv cameras to home assistant the code I am adding is.
Read more >
Add support for validating multiple local CI configuration files ...
I am using Gitlab vscode extension to validate my Gitlab CI yaml ... Therefore I often get "Job_1 : Unknown keys in extends...
Read more >
Troubleshooting AWS IoT Greengrass V2
You might see this error when the AWS IoT Greengrass Core software installer fails to set up AWS IoT Greengrass as a system...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found