Giter Club home page Giter Club logo

Comments (13)

hh1209 avatar hh1209 commented on May 26, 2024

Some clarification:

While Neolink is running (both mainstream and substream), I can view the two lower-quality streams on the Reolink Android App ("Fluent" and "Balanced" in the app). However, the app immediately says "live viewing failed" when I try to view the 4K stream.

Also, before substreaming functionality was added to Neolink, I had no trouble loading the 4K stream on other clients. Maybe this indicates a software block of some kind?

I can do some more testing on this today and will post results.

from neolink.

thirtythreeforty avatar thirtythreeforty commented on May 26, 2024

My theory is that there are two hardware encoder units. When something connects, one of them is used for that stream. When it's out of available encoders, you get errors.

If this is true, it's Reolink's fault that the output of the encoder isn't shared to various clients if possible. If you're only streaming either of mainStream or subStream to Neolink, is the official app able to display all possible streams?

from neolink.

hh1209 avatar hh1209 commented on May 26, 2024

So I just tried streaming just one 4k feed from the Reolink client. I then tried to connect Neolink (with both streams running) and I get weird video messages. Could be the camera denying the stream?

Weird video message

from neolink.

thirtythreeforty avatar thirtythreeforty commented on May 26, 2024

Yeah, so you're getting the opposite end of what the client experiences when Neolink is already running. Can you rerun with

set RUST_LOG=neolink=debug

? It will print that "weird video message."

from neolink.

thirtythreeforty avatar thirtythreeforty commented on May 26, 2024

Remember, if you exceed two active streams, the third won't work.

from neolink.

hh1209 avatar hh1209 commented on May 26, 2024

Here's the output:

[2020-07-06T17:11:49Z INFO neolink] southwestcorner: Connecting to camera at 192.168.1.10:9000 [2020-07-06T17:11:49Z DEBUG neolink::bc::xml] Enum: start to parse "body" [2020-07-06T17:11:49Z DEBUG neolink::bc::xml] Struct: start to parse "body" [2020-07-06T17:11:49Z DEBUG neolink::bc::xml] Struct: start to parse "Encryption" [2020-07-06T17:11:49Z DEBUG neolink::bc::xml] Enum: start to parse "body" [2020-07-06T17:11:49Z DEBUG neolink::bc::xml] Struct: start to parse "body" [2020-07-06T17:11:49Z DEBUG neolink::bc::xml] Struct: start to parse "DeviceInfo" [2020-07-06T17:11:49Z DEBUG neolink::bc::xml] Struct: start to parse "resolution" [2020-07-06T17:11:49Z INFO neolink] southwestcorner: Connected to camera, starting video stream mainStream [2020-07-06T17:11:49Z WARN neolink::bc_protocol] Ignoring weird video message [2020-07-06T17:11:49Z DEBUG neolink::bc_protocol] Contents: Bc { meta: BcMeta { msg_id: 3, client_idx: 0, class: 0, encrypted: true }, body: ModernMsg(ModernMsg { xml: None, binary: None }) } [2020-07-06T17:11:50Z DEBUG neolink::bc::xml] Enum: start to parse "body" [2020-07-06T17:11:50Z DEBUG neolink::bc::xml] Struct: start to parse "body" [2020-07-06T17:11:50Z DEBUG neolink::bc::xml] Enum: start to parse "body" [2020-07-06T17:11:50Z DEBUG neolink::bc_protocol::connection] Ignoring uninteresting message ID 33 [2020-07-06T17:11:50Z DEBUG neolink::bc::xml] Struct: start to parse "body" [2020-07-06T17:11:50Z DEBUG neolink::bc_protocol::connection] Ignoring uninteresting message ID 33 [2020-07-06T17:11:50Z DEBUG neolink::bc::xml] Enum: start to parse "body" [2020-07-06T17:11:50Z DEBUG neolink::bc::xml] Struct: start to parse "body" [2020-07-06T17:11:50Z DEBUG neolink::bc_protocol::connection] Ignoring uninteresting message ID 33 [2020-07-06T17:11:50Z DEBUG neolink::bc::xml] Enum: start to parse "body" [2020-07-06T17:11:50Z DEBUG neolink::bc::xml] Struct: start to parse "body" [2020-07-06T17:11:50Z DEBUG neolink::bc_protocol::connection] Ignoring uninteresting message ID 78 [2020-07-06T17:11:50Z DEBUG neolink::bc::xml] Enum: start to parse "body" [2020-07-06T17:11:50Z DEBUG neolink::bc::xml] Struct: start to parse "body" [2020-07-06T17:11:50Z DEBUG neolink::bc_protocol::connection] Ignoring uninteresting message ID 79 [2020-07-06T17:11:50Z DEBUG neolink::bc_protocol::connection] Shutting down BcConnection... [2020-07-06T17:11:50Z DEBUG neolink::bc_protocol::connection] Shutdown finished OK [2020-07-06T17:11:50Z ERROR neolink] Error streaming from camera southwestcorner, will retry in 1s: Timeout

from neolink.

thirtythreeforty avatar thirtythreeforty commented on May 26, 2024

Oooh,

[2020-07-06T17:11:50Z DEBUG neolink::bc_protocol::connection] Ignoring uninteresting message ID 33

that's a new message number.

I'll have to add a line that debug prints any uninteresting messages (or indeed all messages).

from neolink.

hh1209 avatar hh1209 commented on May 26, 2024

Sounds good. I'll run again once you do.

from neolink.

thirtythreeforty avatar thirtythreeforty commented on May 26, 2024

Well, it won't solve the underlying issue. What remains to be seen is if the limit is connections or encoders. I think it's encoders, in which case no amount of changes to Neolink will help - you should just connect your viewers to Neolink, which will correctly share the connection to the camera.

from neolink.

hh1209 avatar hh1209 commented on May 26, 2024

I still can stream the substream in the reolink app though. Even when there are 2 or more connections.

from neolink.

thirtythreeforty avatar thirtythreeforty commented on May 26, 2024

Hm, interesting. I have no immediate idea why that would be the case then.

from neolink.

hh1209 avatar hh1209 commented on May 26, 2024

This is no longer a problem in Neolink v0.3.0.

It must be because Neolink uses one less HD in this update?

from neolink.

thirtythreeforty avatar thirtythreeforty commented on May 26, 2024

Hooray. Yeah, I hosed some things when I merged the substream work (it was requesting a stream named both which is bogus). I'd say it's likely related. Glad it's working.

from neolink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.