Closed x23piracy closed 4 years ago
Hi,
i started to use camera-ffmpeg streaming is working there with the S1 while audio vise versa isn't working. Anyway the audio i receive when i enable audio is some kind of broken, i just hear cracks no matter which audio settings i try.
The auto switching between day and night only started to work after you at least on time hit the safe button in the auto night settings on the camera webif, i you don't do that no configuration is written to make the service work (there should be a default config).
with camera-ffmpeg there is also no need to reduce the stream quality i can leave everything at max but it seems that homekit uses its own streaming settings when watching the camera live, same for the still picture... you can see it in the homebridge log the dimensions for still pictures are nothing i have configured for home, it seems home has fixed values for this and home is forcing them.
additionally, it's not possible for some kind of reason to grab the still picture from cgi-bin so i take a frame directly from the rtsp stream.
I use the same camera with the plugin. Heres my Config for 1S ===>
{
"cameraName": "My XiaoFang Camera",
"cameraRTSPStreamUrl": "rtsp://192.168.0.191:8554/unicast",
"mqttTopic": "kshome/xiaofang/#",
"folder": "/Users/sahilchaddha/Documents/XiaoFang",
"segmentLength": 60,
"maxDirSize": 8192,
"checkStorageSizeInterval": 300,
"videoConfig": {
"source": "-rtsp_transport tcp -i rtsp://192.168.0.191:8554/unicast",
"stillImageSource": "-rtsp_transport http -i rtsp://192.168.0.191:8554/unicast -vframes 1 -r 1",
"maxStreams": 5,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30,
"debug": true,
"audio": true
},
"accessories": [
{
"name": "Fang Motion",
"type": "motionSensor",
"threshold": 15000
},
{
"name": "Fang Rich Motion",
"type": "richMotionSensor",
"threshold": 15000
},
{
"name": "Fang Night Vision",
"type": "nightVisionSensor"
},
{
"name": "Fang Night Vision Switch",
"type": "nightVisionSwitch"
},
{
"name": "Fang Auto Night Vision",
"type": "autoNightVisionSwitch"
},
{
"name": "Fang Clear Storage",
"type": "clearStorage"
},
{
"name": "Fang Capture Image",
"type": "captureImage"
},
{
"name": "Fang Record Video",
"type": "recordVideo"
},
{
"name": "Fang Record Audio",
"type": "recordAudio"
},
{
"name": "Fang RPi Storage",
"type": "storageSensor"
},
{
"name": "Fang Motion Detection",
"type": "motionDetection"
},
{
"name": "Fang RTSPSwitch",
"type": "rtspSwitch"
},
{
"name": "Fang Restart",
"type": "restartSwitch"
},
{
"name": "Fang ReMount",
"type": "remountSwitch"
}
]
}
Hi,
is here anyone around whos using this project with a Xiaomi Xiaofang 1S?
I am a searching for a working setup where also streaming is working.
First only snapshots worked and ffmpeg always exited with error code 1, then with the help of @renedivx: https://github.com/sahilchaddha/homebridge-dafang/issues/27
I could compile a ffmpeg version that at least starts streaming for a little while without exiting with error code 1 but in the end the rtsp server on the camera crashes.
Before it crashes video starts for a little second, i can hear a sound flick and then the picture stucks or it moves like in slomotion for 1-3 seconds and then it stops finally...
So is someone here with this cam were streaming is working and if yes can you please report your steps and post your configuration settings?
Regards X23