I have built the Docker container of Frigate on a Raspberry Pi 4 with the Google Coral USB Accelerator and when I start it like this:
docker run --privileged -v /dev/bus/usb:/dev/bus/usb -v /home/pi/frigate_config:/config:ro -p 5000:5000 frigate:latest
I get the following error message:
On connect called
[rtsp @ 0x1bc6330] method SETUP failed: 461 Client error
Traceback (most recent call last):
File "detect_objects.py", line 99, in <module>
main()
File "detect_objects.py", line 53, in main
cameras[name] = Camera(name, config, prepped_frame_queue, client, MQTT_TOPIC_PREFIX)
File "/opt/frigate/frigate/video.py", line 126, in __init__
self.frame_shape = get_frame_shape(self.rtsp_url)
File "/opt/frigate/frigate/video.py", line 54, in get_frame_shape
frame_shape = frame.shape
AttributeError: 'NoneType' object has no attribute 'shape'
The RTSP camera is a Raspberry Pi Camera Module streamed with VLC:
raspivid -vf -o - -t 0 -w 640 -h 480 -fps 25 -b 250000 | cvlc -vvv stream:///dev/stdin --sout-rtsp-user=demo --sout-rtsp-pwd=demo --sout '#rtp{access=udp,sdp=rtsp://:8554/stream}' :demux=h264
And I can see the camera image with a VLC client on my laptop:
vlc -v rtsp://demo:[email protected]:8554/stream
My config.yml
:
web_port: 5000
mqtt:
host: 192.168.0.63
topic_prefix: frigate
cameras:
back:
rtsp:
user: demo
host: 192.168.0.181
port: 8554
password: demo
path: /stream
regions:
- size: 300
x_offset: 0
y_offset: 0
min_person_area: 5000
threshold: 0.5
The communication with the MQTT broker is also working:
$ mosquitto_sub -h 192.168.0.63 -v -t 'frigate/#'
frigate/available online
frigate/available offline
This all looks OK to me, and Iâm able to see the RTSP camera stream in VLC, so Iâm a bit puzzled what Frigate is complaining about. Did I miss something?