#Frigate streams not working but they're fine in go2rtc.

24 messages · Page 1 of 1 (latest)

floral hedge
#

I have a pile of different camera types.

  • 3 cheap amazon based cameras that have a basic onvif interface.
  • 1 reolink wireless camera that I have to use a neolink container to convert it's feed to rtsp
  • 1 reolink wired camera that offers onvif
  • 2 USB cameras connected to a remote raspberry pi

I've tried enabling vaapi acceleration all over the place and frigate is giving me all kinds of errors trying to decode the reolink cameras.

When I open the go2rtc page at port 1984 and click the stream link toeither of the reolink cameras, they stream just fine. I can see live action on them from the go2rtc interface with nary a dropped frame.

I attached my frigate config.yaml file. How should I be adding the go2rtc streams for my reolink cameras?

#

Frigate streams not working but they're fine in go2rtc.

fossil agate
#

we need to see logs

floral hedge
#

Here are the ERROR and WARNING messages that I'm seeing when trying to run. They keep looping quite a bit.

#

Here is the complete log if you really want to wallow in the muck.

fossil agate
#

2024-10-15T10:45:47.646391392-06:00 stdout F 2024-10-15 10:45:47.646379409 [2024-10-15 10:45:47] ffmpeg.reogrande.detect ERROR : [hevc @ 0x55616b505780] No support for codec hevc profile 1.

#

your hardware does not support hevc decoding, and your camera are using hevc (h265)

floral hedge
#

I thought I have hw_accel disabled in my reogrande config section. I'm not understanding how I should be adding the stream to go2rtc and frigate.

#

If go2rtc is consuming the feed alright shouldn't frigate be able to as well?

fossil agate
fossil agate
#

to disable you need to set

ffmpeg:
  hwaccel_args: []
floral hedge
#

So you're telling me to set a global
ffpmeg:
hwaccel_args: []

and then specify
ffmpeg:
hwaccel_args: preset-vaapi
per camera?

fossil agate
#

or you can just leave the global preset-vaapi and just set [] for the hevc cameras

floral hedge
#

hrm, this seems to get me the reogrande camera, but blameitonreo still doesn't work for me:
2024-10-15 12:23:50.856441209 12:23:50.856 WRN [rtsp] error="streams: wrong response on DESCRIBE" stream=blameitonreo
2024-10-15 12:23:50.859324615 [2024-10-15 12:23:50] frigate.video ERROR : blameitonreo: Unable to read frames from ffmpeg process.
2024-10-15 12:23:50.860768294 [2024-10-15 12:23:50] frigate.video ERROR : blameitonreo: ffmpeg process is not running. exiting capture thread...

#

Also, a separate question, I make daily timelapses of my camera feeds. Is there a way to set snapshots as enabled from the config instead of having to click the button manually every time frigate is restarted?

fossil agate
#

go2rtc is complaining about the response it is getting

floral hedge
#

By moving reogrande to no acceleration, CPU usage is hammering. I'm wondering if there is a way to tell go2rtc to transcode the stream to something that can use GPU.

As an architecture question - why is go2rtc bundled into the single frigate container instead of running as a separate container?

It seems like an opportunity to make the frigate container more lightweight and simpler. Also easier to upgrade different modules.

#

@fossil agate - thank you for the help debugging.

fossil agate
# floral hedge By moving reogrande to no acceleration, CPU usage is hammering. I'm wondering if...

transcoding would use even more CPU beacuse you still can't use your GPU since it can't decode the stream. The easiest solution is to just configure the camera not to use h265

go2rtc is included because frigte controls it. Frigate sets a lot of configs to ensure go2rtc works exactly the way it needs, and there are features that are not possible when go2rtc is external. go2rtc is very lightweight so there would be no real benefit to not including it

floral hedge
#

What features are not possible when go2rtc is external?