Frigate "Unauthorized access" on substream

Hi all,

I’ve started toying around with Frigate and for that reason I bought an el cheapo cam.
Yes, I’m aware that there are recommended ones but this is just to experiment and I’ve been pretty successful in getting everything to run.

I’ve configured streams for Go2RTC in the Frigate config for the same cam with main and sub RTSP streams. I’m 100% sure of the RTSP path as both can be accessed via VLC (yes I’m aware VLC has an easier time because it can go via UDP. This was just to check whether the RTSP path was correct and it is as I get different resolutions depending on the RTSP path that I put in).

I’ve set up the the cameras in the config that refer back to Go2RTC streams.
The main stream for recording.
The sub stream for detection.

The only problem I have is that Frigate is now telling me it’s not receiving frames on the detect side (i.e. the Substream). Looking at the logs it tells me “Error opening input files: Server returned 401 Unauthorized (authorization failed)”

As a result I’ve created an additional user on the camera and set up the substream with those login credentials in case this is an issue of the camera not allowing multiple logins of the same user but it still gives the same issue.

Is this purely a limitation of the camera I bought? Or am I missing something obvious?

When I set the camera up with just the main stream and do both detection and recording on that, I don’t have any issues but I’m aware it’s not great to do detection on the main stream.

Appreciate any insights!

Hmmmm… I may have jumped the gun. Looks like this is a Go2RTC issue I’m having.

If I set up the ffmpeg camera directly in Frigate without Go2RTC I don’t have any issue.

Whereas with just the main stream enabled in Go2RTC and using a restream ffmpeg camera referring back to the Go2RTC stream it’s already giving me this issue…
I had always run the Go2RTC setup with both main and substream so I thought it was just an issue with the substream. Turns out having just the main stream in Go2RTC is also an issue.

Would I be able to run both streams without Go2RTC? I don’t know whether it’s good practice or even how to to set up the Substream as well without going via Go2RTC.

OMG, NVM… Just noticed the port for the restream is 8554 not 554… :roll_eyes:
Ah well, here’s hoping my stupidity helps someone get there more quickly :rofl:

1 Like