-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
camera support #176
base: master
Are you sure you want to change the base?
camera support #176
Conversation
hey, nice work! I can perform a pairing with my iPhone using this demoserver.json
but it never tries to start the ffmpeg part (which will fail anyway because i will have to adjust at leas the cam device). |
Good question, because the specs are also stating in table 14-2:
|
Good point, can we check what an iOS device is sending/expecting? As stated at least one 'real' accessory uses 2 bytes here. |
The Apple Homekit Accessory Simulator has following value for
Strange is the fact that codec types 0 and 1 do not appear in the specification |
Theres some relevant discussion that might be useful here. There are some additional codecs that were found in the homekit binaries but not in the spec, as you noticed with the simulator:
Theres also some discussion around how e.g. opus is problematic. Someone has also figured out how to make secure video work here. |
@wiomoc I started merging your branch under wiomoc_camera and an own branch camera. There I will add some commands to work with your democamserver and the circle2 camera. This ffmpeg stuff is pretty complicated for figuring out the parameters 😅 |
@wiomoc i am not fully sure if i understand Take 9.105 Supported Video Stream Configuration for example. We can have multiple instances of The code from the democameraserver returns the following data for 2 entries:
But the Circle2 camera returns:
I think this is consistent with "An IP camera accessory supporting encoding video at different resolutions must include multiple instances of Video attributes TLV." (page 221 / Spec Revision 2) and "There may be multiple, separate TLV items of the same type if separated by a TLV item of a different type." (page 254 / Spec Revision 2). Page 51 / Table 5-6 lists |
Hey @wiomoc, i tried to pull out the whole TLV generation to a module of itself: https://github.com/jlusiardi/tlv8_python This might simplify using TLV8 and I think I can code some examples how to use it in the camera area of the code. Can you please have a look on the module? |
No description provided.