QuantumEntangledAndy / neolink

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

Constant "Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled" when Fluent = 640x480 160kbps #100

Closed anthonws closed 9 months ago

anthonws commented 1 year ago

Camera: Reolink Argus 2E Camera firmware version: 0323_712_572_477 Video stream Sub Stream (Fluent) configured to 640x480 and 160kbps Neolink cf67a05dd1d1ac0cb3f1019c7f7b4f24382c9992 release

[2023-06-04T11:29:21Z INFO  neolink::rtsp::states::loggedin] tapas_balcony: Camera reports firmware version 0323_712_572_477
[2023-06-04T11:29:21Z INFO  neolink::rtsp::states::streaming] tapas_balcony: Starting video stream Sub Stream (Fluent)
[2023-06-04T11:29:34Z INFO  neolink::rtsp::gst::server] Removing Session Media
[2023-06-04T11:29:34Z INFO  neolink::rtsp] tapas_balcony: Buffers prepared
[2023-06-04T11:29:34Z INFO  neolink::rtsp] Client Pause
[2023-06-04T11:29:49Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:29:49Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:30:19Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:30:19Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:30:49Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:30:49Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:31:09Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:31:09Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:31:39Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:31:39Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:32:09Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:32:09Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:32:39Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:32:39Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:32:59Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:32:59Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:34:09Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:34:09Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:34:39Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:34:39Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:35:09Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:35:09Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:35:39Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:35:39Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:36:50Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:36:50Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:37:20Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:37:20Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app
[2023-06-04T11:37:40Z WARN  neolink::rtsp::gst::sender] Buffer exhausted. Not enough data from Camera. Pausing RTSP until refilled.
[2023-06-04T11:37:40Z INFO  neolink::rtsp::gst::sender] Try reducing your Max Bitrate using the offical app

Have removed go2rtc from Frigate for this camera specifically. Activated PIR in Low Mode sensitivity (28).

Hth, anthonws.

QuantumEntangledAndy commented 1 year ago

Don't suppose you can send me a wireshark dump. I will check the packets and see if there's anything odd in the time stamps or something.

QuantumEntangledAndy commented 1 year ago

Ok could you try #101 it behaves a bit more like the old one. If that camera still gives you trouble you can set buffer size to zero to drop the time stamps in that build and just send as it.

I should point out that you won't get any buffer exhausted messages as that build removes the buffer refill mechanic where the stream was paused until refilled. You will just see frames come late and possible jumps in speed of the frames

QuantumEntangledAndy commented 11 months ago

Any updates on this?

apedance commented 11 months ago

Maybe I can help. I suffer the same issue with my lumus.

I can get you wireshark dumps if you help me a little bit how you need the data and how I can get it to you.

image

image

QuantumEntangledAndy commented 11 months ago

Can to update to the latest version and replicate there? I don't think latest has this sort of buffer exhaustion since it's done in a different way.

apedance commented 11 months ago

Using the latest version. No issues with buffer at the moment.

And new error freezes the camera operation:

[2023-08-22T16:12:31Z INFO neolink::rtsp::states::loggedin] lumus: Camera reports firmware version v2.0.0.687_20102800 [2023-08-22T16:12:31Z INFO neolink::rtsp::states::streaming] lumus: Starting video stream Main Stream (Clear) [2023-08-22T16:12:31Z INFO neolink::rtsp::states::streaming] lumus: Starting video stream Sub Stream (Fluent) Extension Txt: "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<Extension version=\"1.1\">\n1\n\n" Extension Txt: "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<Extension version=\"1.1\">\n1\n\n" [2023-08-22T16:12:37Z WARN neolink_core::bc_protocol::connection::bcconn] Reaching limit of channel [2023-08-22T16:12:37Z WARN neolink_core::bc_protocol::connection::bcconn] Remaining: 0 of 100 message space for 4 (ID: 3)

QuantumEntangledAndy commented 10 months ago

This should now be fixed on latest, can anyone confirm?

QuantumEntangledAndy commented 9 months ago

Closing because I think this is addressed in latest, but if not please re-open