Closed maxi1134 closed 2 years ago
Can you be more specific than "not working"? Does it load at all? Are you exposing port 1935?
At first, I thought it wouldn't load at all.
Now it seems that it loads after a long while but freezes after ~45-75 seconds, then I need to reload the url in VLC.
Port 1935 is opened in UFW.
You can see in the logs that the cameras are frequently timing out and/or missing packets. These types of issues will result in ffmpeg exiting and restarting and cause consistency issues like you are seeing in the RTMP feed. RTMP doesn't seem to be very resilient to these types of issues, so you might want to try disabling it in frigate to see if it stabilizes a bit.
Is it a wifi connected camera? If so, does the issue persist if you connect it to a network cable? Do you have multiple connections to the camera? Like "Frigate, Blue Iris, Home Assistant, RpiSurv etc ). I had similar issues with some of my cameras and I noticed that the cameras cannot cope with too many parallel connections.
There´s a proxy software, but it doesnt work well with Reolink RTMP streams for some reason. Works great with RTSP though. More info on the proxy can be found here: https://github.com/blakeblackshear/frigate/discussions/1623
@blakeblackshear Thanks for reading! I was hoping to use the RTMP to be able to get the camera with the Lovelace card in my Lovelace interface to access clips. I already have a motion eye stream that is near latency-free but cannot seem to use that one as a video source for the card.
A different solution for my use case would be to allow the use of arbitrary camera entities on the Lovelace card while seeing the clips for a Frigate camera.
@tubalainen Thanks for reading! The camera is currently Wired with POE, with no WIFI elements in the way for this stream. As for using the RTSP stream, I get a lot of smearing on that one, hence why I use RTMP
I could try cutting motion-eye and see if the issue persists, would that be wise?
I could try cutting motion-eye and see if the issue persists, would that be wise?
Yes, give that a spin and see if it helps. Reboot the camera after disabling motion-eye.
@maxi1134 - You could try experimenting with the max data rate & the frequency of iframes in your camera setup. I had a similar issue and found that the higher the data rate, the more often I needed to have the camera send an iframe to ffmpeg so that it wouldn't drop the RTSP stream.
Hey guys!
Thanks for all the tips.
Taking MotionEye down seems to have fixed this issue!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Solution:
Removing MotionEye from the equation, thus reducing the load on the camera fixed my issue.
Describe the problem you are having
Hi there!
I am trying to get RTMP streams from Frigate to reduce the load on my cameras. Unfortunately, it seems like the stream is not working either on VLC ( URL: rtmp://FRIGATEIP/live/front_door )
Any help would be appreciated!
Version
0.9.0-8CA1280
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
Other Linux
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
PTZ: RLC-423, FACECAM: Some chinese minicam, PatioCam: Wyzecam V2 with Official RTSP firmware, Geovision: gv-VD2400
Any other information that may be helpful
No response