-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't Connect Through NVR #92
Comments
Added debug log, doesn't seem to give much more detail
|
This may be related to the error we had with aac audio. Can you turn of audio using the official client and try again. |
I disabled audio and same message in the logs. Should I be able to ping the cameras from the host machine or would the NVR have some sort of built-in firewall to block that? I tried pinging them from 3 different systems and they don't seem reachable on any. I'm thinking that may be part of my problem |
I see well NVR is certaintly possible @twistedddx uses them himself. I am not sure how messages are routed through the NVR so I wouldn't know about the ping. Are you using multiple channels on your NVR? If so please also set the |
Also please set the envirmonetal var |
environmental var GST_DEBUG=3 was already set with the second set of logs. Yes I am using multiple channels on the NVR. But that gave me another idea. I entered the IP of the NVR instead and chose a different channel. Doing this I'm getting a "Connected and logged in" but when I try to connect to the rtsp stream it's got a data rate of 0Kb/s so I'm guessing this isn't the right way to go. |
I beleive that connecting to the NVR is correct. Is there anything in the log when doing it this way? |
You can't reach the 172.16.25.x network that exists on the poe switch side of the nvr through the nvr's wan port. Your pc can be physically connected to the poe ports and statically assigned on the 172.16.25.x network to direct connect to cameras. But more likely you should point neolink to the nvr's ip / port and then use the channel_id setting. |
Ah |
Getting somewhere. I'm getting video streams, when connecting via TCP I'm getting a segmentation fault (log below). When connecting via UDP I get video. But it's not the right channel. `[2020-11-24T02:47:14Z INFO neolink] Neolink 0.3.0 (unknown commit) release [2020-11-24T02:47:14Z INFO neolink] Shed: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] SideYard: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] SideYard: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] Shed: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] SideDoor: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] SideDoor: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] BackDoor: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] BackDoor: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] HotTub: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] HotTub: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] Pool: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:14Z INFO neolink] Pool: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:47:15Z INFO neolink] Shed: Connected and logged in [2020-11-24T02:47:15Z INFO neolink] SideYard: Connected and logged in [2020-11-24T02:47:15Z INFO neolink] SideYard: Starting video stream subStream [2020-11-24T02:47:15Z INFO neolink] Shed: Connected and logged in [2020-11-24T02:47:15Z INFO neolink] Shed: Starting video stream subStream [2020-11-24T02:47:15Z INFO neolink] SideYard: Connected and logged in [2020-11-24T02:47:15Z INFO neolink] BackDoor: Connected and logged in [2020-11-24T02:47:15Z INFO neolink] BackDoor: Starting video stream subStream [2020-11-24T02:47:15Z INFO neolink] HotTub: Connected and logged in [2020-11-24T02:47:15Z INFO neolink] HotTub: Starting video stream subStream [2020-11-24T02:47:15Z INFO neolink] HotTub: Connected and logged in [2020-11-24T02:47:15Z INFO neolink] Shed: Camera time is already set: 2020-11-23 22:47:15 -4 [2020-11-24T02:47:15Z INFO neolink] Shed: Starting video stream mainStream [2020-11-24T02:47:15Z INFO neolink] SideYard: Camera time is already set: 2020-11-23 22:47:15 -4 [2020-11-24T02:47:15Z INFO neolink] SideYard: Starting video stream mainStream [2020-11-24T02:47:15Z INFO neolink] HotTub: Camera time is already set: 2020-11-23 22:47:15 -4 [2020-11-24T02:47:15Z INFO neolink] HotTub: Starting video stream mainStream [2020-11-24T02:47:16Z INFO neolink] SideDoor: Connected and logged in [2020-11-24T02:47:16Z INFO neolink] Pool: Connected and logged in [2020-11-24T02:47:16Z INFO neolink] Pool: Connected and logged in [2020-11-24T02:47:16Z INFO neolink] Pool: Starting video stream subStream [2020-11-24T02:47:16Z INFO neolink] BackDoor: Connected and logged in [2020-11-24T02:47:16Z INFO neolink] SideDoor: Camera time is already set: 2020-11-23 22:47:16 -4 [2020-11-24T02:47:16Z INFO neolink] SideDoor: Starting video stream mainStream [2020-11-24T02:47:16Z INFO neolink] BackDoor: Camera time is already set: 2020-11-23 22:47:16 -4 [2020-11-24T02:47:16Z INFO neolink] BackDoor: Starting video stream mainStream [2020-11-24T02:47:16Z INFO neolink] Pool: Camera time is already set: 2020-11-23 22:47:16 -4 [2020-11-24T02:47:16Z INFO neolink] Pool: Starting video stream mainStream [2020-11-24T02:47:18Z INFO neolink] SideDoor: Connected and logged in [2020-11-24T02:47:18Z INFO neolink] SideDoor: Starting video stream subStream Segmentation fault (core dumped)` When connecting via UDP it seems stable, but there's something not right with the streams. [[cameras]] The video for "Shed" is actually showing channel 2. The camera I set as Channel 2 is showing channel 3, Channel 3 shows channel 4, etc... [2020-11-24T02:53:51Z INFO neolink] Pool: Connected and logged in [2020-11-24T02:53:51Z INFO neolink] Pool: Camera time is already set: 2020-11-23 22:53:51 -4 [2020-11-24T02:53:51Z INFO neolink] Pool: Starting video stream mainStream [2020-11-24T02:53:53Z ERROR neolink] Error streaming from camera Pool, will retry in 1s: Timeout [2020-11-24T02:53:54Z INFO neolink] Pool: Connecting to camera at 192.168.2.58:9000 [2020-11-24T02:53:54Z INFO neolink] Pool: Connected and logged in [2020-11-24T02:53:54Z INFO neolink] Pool: Starting video stream subStream ` |
Is neolink being run inside docker by any chance? We have segmentation faults with docker and TCP sometimes #46. Udp should work if you bump up your buffer size in your clients (the default buffer often isn't large enough for HD streams). For the channel 3->4 thing that probably because internally (the protocol) it starts at 0 while the physical numbers you see start at 1. That last channel 6 might have some sort of other issue going on. Are you still running with debug logs on? If not please connect to just 6 with the debug logs on and post back. |
Starting at 0 puts everything right where it should be. It also fixed channel 6 which would have been trying to connect to 7 that didn't exist. Awesome!!! And yes I'm running it in docker, I'll check out #46 tomorrow since it's late here but sounds like the exact same thing. Thank you for all the help! |
You may need to watch for issues with multiple HD streams connecting at once. Neolink is slightly different than the official client in how the multiple connections are handled which may cause different limitations to what the official client sees. |
I recommend you don't use docker if you can help it. With have ubuntu, windows and raspberry pi native builds which will avoid the segfault issues, build are here |
I can ping them on my local network... not sure how you would with a UID yet.. haven't researched it.
Robert Gamble
Rfgamble@yahoo.com (preferred )
Rfgamble@hotmail.com
Robert.gamble0@gmail.com
Robertfgamble@att.net
On Monday, November 23, 2020, 9:22:09 PM EST, MRobi1 <notifications@github.com> wrote:
I disabled audio and same message in the logs.
Should I be able to ping the cameras from the host machine or would the NVR have some sort of built-in firewall to block that? I tried pinging them from 3 different systems and they don't seem reachable on any. I'm thinking that may be part of my problem
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe
.
|
You cannot ping with a UUID, UUID is just a number kept on the reolink servers used for coordinating the nat holepunching. You may also be able to do a broadcast to all ips on the local network and ask every camera "are you this UUID" and then learn the ip from that. Buts its very protocol specific. Not something ping would do |
For those interested this is the setup of IP addressing between NVR and IPC. After DHCP discovery fails the NVR and IPC exchange IP address via Ethernet II broadcasts. The NVR never functions as router between its LAN/WAN. The 2 networks are isolated. There is what I assume a clock sync heartbeat going every 2 seconds, initiated by the NVR. 20:39:42 IPC DHCP Discover Requested IP 172.16.25.139 |
Set it up with the native ubuntu build and had all kinds of stability issues. Crashes, frozen video, green screens, white screens, rainbow lines across the screen. Couldn't figure out for the life of me why. Then I remembered I hadn't stopped the docker container and was trying to run both at the same time on the same machine LOL Once I did that everything seems to be working great! Set it up as a service and I should be good to go from here. Thanks again for all the help |
Describe the bug
Trying to connect to cameras that are connected to Reolink NVR. Is this even possible or must the be connected to a POE switch? I want to use the Reolink NVR but want to access the HD stream for tinycam on my TV since there is no Reolink AndroidTV app.
Error I'm getting:
[2020-11-23T23:39:03Z INFO neolink] Pool: Connecting to camera at 172.16.25.6:9000 [2020-11-23T23:39:03Z INFO neolink] Side Yard: Connecting to camera at 172.16.25.2:9000 [2020-11-23T23:39:03Z INFO neolink] Pool: Connecting to camera at 172.16.25.6:9000 [2020-11-23T23:39:03Z INFO neolink] Side Yard: Connecting to camera at 172.16.25.2:9000 [2020-11-23T23:39:08Z ERROR neolink] Error streaming from camera Pool, will retry in 8s: Connection error [2020-11-23T23:39:08Z ERROR neolink] Error streaming from camera Pool, will retry in 8s: Connection error [2020-11-23T23:39:08Z ERROR neolink] Error streaming from camera Side Yard, will retry in 8s: Connection error [2020-11-23T23:39:08Z ERROR neolink] Error streaming from camera Side Yard, will retry in 8s: Connection error
To Reproduce
Steps to reproduce the behavior. Example:
Expected behavior
Neolink to connect
Versions
NVR software: Reolink NVR RLN16-410 f/w version 20102145
Neolink software: pulled docker container today
Reolink camera model and firmware: Reolink B800 f/w version 17_20042200
The text was updated successfully, but these errors were encountered: