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
reolink B400 Timeout #28
Comments
Hi - sorry you're having trouble. So the timeout thing looks a lot like #14 - in particular this comment about the system time being set. Could you try adding the following line to your
This will lengthen the timeout. It looks like it is successfully connecting, so perhaps this will solve it. |
Also note that this is a terrible config file syntax; therefore it is not documented officially and it will likely change in the future (but only after this problem is solved). |
I added but unfortunately nothing helped. camera time is set correctly |
Hmmm. Could you post your config file? (Delete the passwords from it!) |
Are you streaming simultaneously from another device (i.e. an NVR, the mobile app, the PC app)? I noticed that once the substreams were added, I was no longer able to stream the HD feed in two places at once.
Sent from Outlook Mobile<https://aka.ms/blhgte>
…________________________________
From: sharee993 <notifications@github.com>
Sent: Monday, July 6, 2020 9:37:52 AM
To: thirtythreeforty/neolink <neolink@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [thirtythreeforty/neolink] reolink B400 Timeout (#28)
Hello, I have been fighting Reolink b400 for a few days but I didn't manage to do anything:
[2020-07-06T14:35:54Z INFO neolink] Neolink 0.3.0 (unknown commit) release [2020-07-06T14:35:55Z INFO neolink] cam: Connecting to camera at 192.168.0.117:9000 [2020-07-06T14:35:55Z INFO neolink] cam: Connecting to camera at 192.168.0.117:9000 [2020-07-06T14:35:55Z ERROR neolink] Error streaming from camera cam, will retry in 1s: Timeout [2020-07-06T14:35:55Z INFO neolink] cam: Connected to camera, starting video stream subStream [2020-07-06T14:35:56Z INFO neolink] cam: Connecting to camera at 192.168.0.117:9000 [2020-07-06T14:35:56Z ERROR neolink] Error streaming from camera cam, will retry in 2s: Timeout
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://secure-web.cisco.com/1qEB0DWu3c1UFEkmqmuPZoHRNsBgr7gp49MDecFNlEQFF6pdF4ItUly4CuS7tRRI2EpssoR-NjwMxhD-k5qbcyOCLhRyFMO23mCA-h7hDE1S-64WcEjkgz-TI3f8ETuizzLio_pkCD5cX7B2oqEKVq4cSGg2S1moa8wIPOapqZwJPS1OssZv_YCo-YFyQpwvJYDl88FmYuhALffHO8OOkm62AtubOdooNoi8IU-CM0upwC0cEJZW3p6Uid3_jTnS5nFgWDnSjjfdRiSB7qO8aatFuR5QKjg8EVln8Ww98HRpgeInKOxiIRz6ifJLrAX0bWhj-9rZnG70zGZ8XqNpSMQ/https%3A%2F%2Fgithub.com%2Fthirtythreeforty%2Fneolink%2Fissues%2F28>, or unsubscribe<https://secure-web.cisco.com/1CPipjQTUm8g_ItwE8fPzI9vvpAY08Do4U0esbJFf8lOixAcSY6cvhbDkTmDivCgOY6a3tG4LzTsNVgIKoz5kUUQ2-QcXUlKpSIXOZMtBf7u3dsvLvjsKqKt5Bf5Gy857skYhuK4oNt7D37rUEe9QI0RDJZNEh3p4uayyTXcxsCV1EZ9sJhrDS9IaZ49BmJrsqiJFreWN7LzwAx2TtmCdo7X45gYaWEKsOBsLop8zLnHKs8cTIe4EDv6tS2_oERMyQ3otmmpvRRD090cYTCYAIoCxd8z-smbuKu47jOXL8wMFu9SSRMWSYmXG2SS_3PxLiGKAPSsakwXEo3KJ8FtWKg/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANDMPMMCLIXRN7AOL7KHHRTR2HOUBANCNFSM4ORVOVVA>.
|
bind = "0.0.0.0" [[cameras]] |
@kylekartan or @xyphos10: I know you both have B400s. Since support has landed (with |
I tried without h264 but the effect is the same |
You definitely need the H264 line. Also - I don't think this makes a difference but make sure it's
and not
(note the leading space). If that doesn't fix it, could you post a log after setting
On Linux:
|
I may have made a mistake upgrading to the latest available firmware (v2.0.0.16_20041560), this is what I get now with v.30 I also double checked the camera is set to the correct time. Thanks! Config: [[cameras]] |
Ok. So with two cameras experiencing the same issue, I think it's not either of your faults. What is needed now is a Wireshark packet capture of the official client talking to the camera. Is anyone comfortable and willing to provide one? Just fire up Wireshark on your computer, hit Record on the network interface you're using, and then open the official client and have it start a stream from the camera. I need to know what it's doing differently than Neolink. A second or two of traffic is totally sufficient; your capture file should be only several megabytes. If you send me one, send it privately (thirtythreeforty@gmail.com). I will keep it confidential. |
No problem, I'll do that this afternoon. Thanks! |
ok already sent |
Log.txt |
Hello, does anyone have any news? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I found a temporary solution. |
@sharee993 I am confused; having trouble understanding what you did. Can you post the config file that works with the D400s? |
in neolink it will show time out but it works |
My Blue Iris compatible RLC-410 5MP streams simultaneously on more than one PC with the Reolink Client app (https://reolink.com/ca/software-and-manual/), but the D400s produce the 'timeout' when trying to open them on a second PC (one D400 with the latest firmware and one not). Closing the client app on the 1st PC releases the D400s, then the D400s streams show up on the second Reolink Client app PC. Seems that D400s could only stream to one ip at a time. Even with all closed streams, I still get the timeout error with Neolink, though it shows connected momentarily (see debug log below). The log show that the timeouts happen after attempting to open the same camera stream twice in a row. Could this second consecutive connection attempt cause this timeout in the same way that we get when trying to stream on a second Reolink Client PC? |
Hm, that's a great point @jjtimmins. Can you add
to that camera's configuration and retry? Currently it attempts to stream both the main and substream (HD/SD basically). If it's true you can only connect one stream at a time, what could be happening is that the subStream connects first, blocking the bigger stream from ever starting. |
It works, that was the problem. Apparently D400 cameras (and probably B400) only allow one stream at time. Edit: That also probably means we don't need the timeout line anymore. |
Sweet! Adding the stream = "mainStream" worked for me as well. I had some trouble with it erroring so I increased the timeout value to 8 seconds and now it's working so far. Update: I was able to successfully add the stream to Milestone XProtect so everything is working! |
@jjtimmins Maybe they just continuosly switch from one stream to the other instead of connecting to both of them at the same time. Something like:
That way you can setup a script with something like Motion that by default request Neolink the substream but ask him to switch to the mainstram if some movement is detected. Maybe Neolink can have this beaviour if it detects (#36) a "series 400" camera and instead connect to both streams at startup if a "series 800" is detected. |
My BlueIris is not connecting the D400 with the settings at the bottom of #11. When I click Okay, the camera initiates the connection and I get this error. Are D400 BlueIris video configs different? |
Do you get that error before or after you try to connect in BI? |
@jjtimmins If you are talking about this: You should probably leave empty the subStream path (or set it the same as mainstream) since you have already disabled it in Neolink adding That said, I don't think that is requesting the disabled stream that's crashing Neolink. |
The error only occurs immediately after I click OK after configuring the camera, or if I rightclick the camera window and 'Restart camera', showing the colored bars in the BI screen then a no signal message, but never any stream. I have left out the substream statement as you noted. Rust backtrace produce the attached log. Backtrace_Full provides more detail, though with just one camera 'Entrance' in config.toml. My Gstreamer installation was not pretty, with 'Typical' leaving missing dlls and a reinstallation of the whole 1.16.2 version to resolve. Strange that this config, Blue Iris and Gstreamer install on another PC (my laptop) actually streams with exact copied settings. Only difference is wonky GStreamer installation in this case. |
Finally resolved by trouble shooting defective GStreamer installation using (1.16.2 runtime installer) at https://gstreamer.freedesktop.org/download/. Uninstalled it, deleted C:\GStreamer directory, rebooted PC, reinstalled full GStreamer 1.16.2, rebooted, ran Neolink in CMD, still several missing DLLs when running Neolink!?? Copied full C:\Gstreamer folder from laptop where it works (not sure how I got GSteamer to install properly there) to this new NAS build, and now it works, all streams for my three D400s!? Anyone else having issues installing Gstreamer on Win 10 pro? (Build 19041) |
I finally got both of my D400 cameras working with BlueIris - thanks so much George. I'm copying my settings here in case someone finds them useful. Install G-Streamer using Choco
I grabbed the neolink Windows build from here Make a folder c:\neolink and copy in the neolink executable Create "config.toml" in the same folder:
Setup cameras in BlueIris |
Hey all - thanks for troubleshooting this. It's good to know it can handle only one stream at a time. When Neolink autodetects camera type, it'll autoconfigure that quirk as well. Closing this but feel free to ask questions if you have them. |
So I was looking for our protocol and wanted to ask a question about this one stream issue. Currently we do this:
Could we instead do
|
I also notice that on the official client when accessing the substream the handle is 256 but we always use 0. Perhaps we should adjust this and see if it helps with multi access |
Hello, I have been fighting Reolink b400 for a few days but I didn't manage to do anything:
The text was updated successfully, but these errors were encountered: