Comments (6)
Hi @andyjhall
Would you be able to share a screenshot of the "Recording" section of your Swann NVR/DVR?
Thanks!
from homebridge-camera-swann.
Please see below, happy to give it ago with changing the stream to match your screenshots if that might fix it?
from homebridge-camera-swann.
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.
from homebridge-camera-swann.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-camera-swann.