本帖最后由 ptlzx 于 2020-6-26 09:29 编辑
大方摄像头破解后通过以下插件和代码接入homebridge,一直正常的,最近这个插件更新了就不行了,查了以下好像现在要在homebridge上安装Camera FFmpeg才行,有什么其他不用Camera FFmpeg就能让rtsp可用的插件吗?原来的代码如下:
npm install -g homebridge-camera-ffmpeg
"platforms": [{
"platform": "Camera-ffmpeg",
"cameras": [{
"name": "Camera",
"videoConfig": {
"source": "-re -i rtsp://root:[email protected]:8554/unicast",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30
}
}]
}
]
换了新的代码也不行
{
"platform": "Camera-ffmpeg",
"cameras": [
{
"name": "Camera Name",
"videoConfig": {
"source": "-re -i rtsp://root:[email protected]:8554/unicast",
"stillImageSource": "-i http://faster_still_image_grab_url/this_is_optional.jpg",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30
}
}
]
}
|