Giter VIP home page Giter VIP logo

Comments (6)

SupImDos avatar SupImDos commented on June 22, 2024

Hi @andyjhall

Would you be able to share a screenshot of the "Recording" section of your Swann NVR/DVR?

e.g.
16AEFE98-D87E-46D5-80C6-5EA4E86EC83F
14B54EDB-2D5E-4D3A-9BDD-F04FB7A975BD

Thanks!

from homebridge-camera-swann.

andyjhall avatar andyjhall commented on June 22, 2024

Please see below, happy to give it ago with changing the stream to match your screenshots if that might fix it?
mainstream
substream

from homebridge-camera-swann.

SupImDos avatar SupImDos commented on June 22, 2024

@andyjhall

In order for this specific plugin to work, the streams must be set to h264 rather than h265 as per your mainstream screenshot (HomeKit only accepts h264).

On a separate note, you may also experience some stuttering at high resolutions and bitrates (especially 4K @ 6kbps, but you may as well try it first).

You might be able to play around with the settings, and find what is suitable for your network/setup, while still being an appropriately high quality (in case you actually need to use the stored footage from the NVR).

Alternatively, if you can't compromise the high quality for smooth playback in HomeKit, you might be able to look at using the homebridge-camera-ffmpeg plugin to transcode your high quality stream, but this would cost a large amount of cpu usage (which is the main advantage of this plugin - directly copying the h264 stream instead of transcoding it).

Hope some of this info was useful.

Thanks!

from homebridge-camera-swann.

andyjhall avatar andyjhall commented on June 22, 2024

from homebridge-camera-swann.

SupImDos avatar SupImDos commented on June 22, 2024

@andyjhall

I'm not 100% sure about much to do with a Docker setup, sorry.

In terms of incoming traffic, the RTSP stream is on port 554.

For outgoing traffic, the SRTP video and audio streams are on separate ports, but are chosen differently each time by HomeKit.

As shown in your example log above:

Output file #0 (srtp://192.168.0.132:53772?rtcpport=53772&localrtcpport=53772&pkt_size=1378):
 Output stream #0:0 (video): 37 packets muxed (2284418 bytes);
 Total: 37 packets (2284418 bytes) muxed
Output file #1 (srtp://192.168.0.132:51152?rtcpport=51152&localrtcpport=51152&pkt_size=188):

The ports were 53772 and 51152 in that particular request. I'm sure it would be possible to find the range of ports it can select somewhere in the HAP specifications though.

from homebridge-camera-swann.

andyjhall avatar andyjhall commented on June 22, 2024

Ok tried changing the streams to match your screenshots and that doesnt work, also made the docker container host mode so it can use any port it likes. Seems like an issue with my setup rather than the plugin so Im going to close this and deal with it on my side.

Thanks for your help!

from homebridge-camera-swann.

Related Issues (7)

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.