homebridge-nest-cam_old
homebridge-nest-cam_old copied to clipboard
Use 4:3 resolution for Nest Hello
Nest Hello native resolution is 4:3 but the current plugin stretches the image to 16:9. Is it possible to maintain the 4:3 resolution within HomeKit?
@schmittx - I'm sure I probably broke something in a way I do not yet understand (I need to find a list of supported Homekit resolutions), but I was able to get the Nest Hello to show as a 4:3 video feed when viewed in the Home app. I only have the one camera, so I do not need to support a mixture of 16:9 and 4:3 feeds which would probably require a lot more code changes.
Home App =
Nest App =
In the local copy of nestcam.js in my C:\Users\muzzymate\AppData\Roaming\npm\node_modules\homebridge-nest-cam\lib, lines 45-51, I replaced the contents with the below list to maintain the 4:3 aspect ratio. I then restarted the Homebridge instance running homebridge-nest-cam and now the Nest Hello's video stream is 4:3.
[320, 240, 30],
[480, 360, 30],
[640, 480, 30],
[1280, 960, 30],
[1600, 1200, 30]
@muzzymate Glad to hear you got 4:3 working. Thanks for the settings, I'll give these a shot and see how it works for me. I have both a Hello and an Indoor IQ, so I'll probably try adding some method to change the resolution for each camera (if possible).
I’m having the same problem, but I installed everything over an Homebridge iOS app(I’m not so tech-savvy) on my pi3. This app only lets me change the config.json and has a (linux)terminal. Is there any way for me to adjust the resolutions(16:9->4:3) manually? If not, an implementation of some 4:3 resolutions for the nest hello in the next update would be awesome :)
My Pi3 only sees the nest cams as motion sensors. What did you do to make them work as cameras?
Thanks!
On Sep 20, 2019, at 10:53 AM, karmin0 [email protected] wrote:
I’m having the same problem, but I installed everything over an Homebridge iOS app(I’m not so tech-savvy) on my pi3. This app only lets me change the config.json and has a (linux)terminal. Is there any way for me to adjust the resolutions(16:9->4:3) manually? If not, an implementation of some 4:3 resolutions for the nest hello in the next update would be awesome :)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
@pipdog05 I just followed the instructions and it worked so...idk really if i can help you out. For installing FFmpeg i used these instructions: https://github.com/legotheboss/YouTube-files/wiki/(RPi)-Compile-FFmpeg-with-the-OpenMAX-H.264-GPU-acceleration
@muzzymate I worked on this a bit and figured out a solution that sets resolution based on camera type, check out #75.
Nice job @schmittx! I only have a Nest Hello but will try and merge in your code changes with my local instance soon.
Unfortunately, I'm running into a Homebridge/HomeKit/potentially mesh network problem that is preventing me from utilizing Homebridge. https://github.com/nfarina/homebridge/issues/2348 All of my instances when using the Home app are all reporting "No Response".
As soon as I'm able, I'll test your code changes.
Does anyone know how to go about setting it back to 4:3 if you are running homebridge via MacOS? Is there a line I can add to my config.json file?