Closed neuhausf closed 2 years ago
how about this config?
"cameras": [
{
"name": "Eingang",
"manufacturer": "Tapo",
"model": "C210",
"motion": true,
"motionTimeout": "",
"unbridge": true,
"hsv": true,
"prebuffering": true,
"prebufferLength": 4,
"videoConfig": {
"source": "-use_wallclock_as_timestamps 1 -i rtsp://192.168.1.137:8554/stream1",
"subSource": "-use_wallclock_as_timestamps 1 -i rtsp://192.168.1.137:8554/stream2",
"stillImageSource": "-i rtsp://192.168.1.137:8554/stream1",
"maxWidth": 1920,
"maxHeight": 1080,
"vcodec": "libx264",
"acodec": "libfdk_aac",
"audio": true,
"debug": true,
"rtspTransport": "tcp"
},
"smtp": {
"email": "tapo"
},
"videoanalysis": {
"active": true
},
"mqtt": {}
}
]
I have a TP-Link Tapo C210 camera which works well with your plugin. I've tried several config to minimize latenceny and maximize streaming quality. Whatever I do, the HSV motion detection (and clip recording) stops working after around a day. Streaming keeps running. I guess it's an issue with prebuffering: When I restart the prebuffer-process, the motion detection works immediatly again (without restarting HB). Probably it's an issue with audio out of sync, that's why I'm using https://github.com/seydx/homebridge-camera-ui/issues/441. I also tried some improvements for latency here https://github.com/Sunoo/homebridge-camera-ffmpeg/issues/1257
Do you have some hints?
My config: (I'm using rtsp-simple-server as a RTSP-proxy to allow multiple streams from the same cam)
Non-Working:
After prebuffer restart in camera-ui: