QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
257 stars 41 forks source link

NEOLINK close automatically- low FPS #150

Closed MicheleCardamone closed 2 months ago

MicheleCardamone commented 10 months ago

As you requested I open a new thread. Problem 1: neolink seems to have closed on its own after several hours of operation. I put it back to testing to avoid any other problems. Problem 2: As in the photo attached above, there appear to be totally dropped frames

QuantumEntangledAndy commented 10 months ago

For 1. should probably turn on debug logs set the RUST_LOG environemental variable to debug

For 2. If you are expecting to never drop frames.... I can't help you there. Unless there is some part of the code that I can point to to fix something then I can't address it. In 90% of the cases of dropped frames that I have seen the camera is just not sending them fast enough or the network is too congested. You could try running multiple instances of neolink with only a few cameras each since you have soo many cameras, in case their is some limit being enforced for per application network rates

MicheleCardamone commented 10 months ago

For 1. should probably turn on debug logs set the RUST_LOG environemental variable to debug

For 2. If you are expecting to never drop frames.... I can't help you there. Unless there is some part of the code that I can point to to fix something then I can't address it. In 90% of the cases of dropped frames that I have seen the camera is just not sending them fast enough or the network is too congested. You could try running multiple instances of neolink with only a few cameras each since you have soo many cameras, in case their is some limit being enforced for per application network rates

I tried creating 2 separate instances of neolink but they don't work. Only the first one I run works, the other cams give rtsp errors

QuantumEntangledAndy commented 10 months ago

You need to change the port for the rtsp. Only one app can use a port at a time. It can be changed in the config

QuantumEntangledAndy commented 2 months ago

Closing this since no actionable code changes can be made