Samfox2 / homebridge-videodoorbell

Video-Doorbell plugin based on homebridge-camera-ffmpeg for Homebridge.
Apache License 2.0
97 stars 17 forks source link

What should the config.json file look like? #10

Closed t6cmh closed 6 years ago

t6cmh commented 6 years ago

I am new to this. What should the config.json file look like with both ffmpeg and videodoorbell plugins installed?

Samfox2 commented 6 years ago

{ "platform": "Camera-ffmpeg", "cameras": [ { "name": "Camera Name", "videoConfig": { "source": "-re -i rtsp://myfancy_rtsp_stream", "stillImageSource": "-i http://faster_still_image_grab_url/this_is_optional.jpg", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 30 } } ] }, { "platform": "Video-doorbell", "cameras": [ { "name": "Camera Name", "videoConfig": { "source": "-re -i rtsp://myfancy_rtsp_stream", "stillImageSource": "-i http://faster_still_image_grab_url/this_is_optional.jpg", "maxStreams": 2, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 30, "port": 5005
} } ] }

t6cmh commented 6 years ago

Thank you, I will try that. I am running a raspberry pi 3 with jessie. Would you suggest I use ffmpeg or ffmpeg-omx? Is this an either-or decision or does the -omx plugin run alongside the regular ffmpeg plugin? Depending on the answer to this question, how does this change what I need to do to the config.json file and/or the other .js files? Thank you for your help.

Samfox2 commented 6 years ago

omx uses grafix card for calculation (which means higher frame rates). So I would uses this. It runs alongside with the regular ffmpeg plugin. The number of parallel streams running at you grafix card depends on the memory, you have to try this with your config.

t6cmh commented 6 years ago

Thanks. Sorry for the trouble, but what would the config.json file looks like with all three plugins running? Would I need to edit any of the index.js files?

Samfox2 commented 6 years ago

I am sure you found a solution 😀