Repository navigation
GstCamera class
GstCamera(source: str | Callable[[], Gst.Bin], options ...)
-
source
When passing a callable assource, it must construct and return a separate, new element chain (Gst.Bin) on every call. Reusing the same instance causes an error because GStreamer attempts to reuse elements that have already been added to another pipeline. -
options-
options["video"]["codec"]
List only profiles and levels supported by the encoder. -
options["video"]["resolutions"]
The list of resolutions advertised to HomeKit. -
options["stream_count"]
The maximum number of simultaneous streams. Set this to1when the source is exclusive.
-
If changes to the camera configuration are not reflected, remove the accessory from the Home app and add it again.
-
GstCamera.pre_encoder_format(str | None)
The format supplied to the encoder. -
GstCamera.encoder_properties(dict | Gst.Structure | None)
Properties passed to the encoder element.
Example:GstCamera.encoder_properties = {"allow-frame-reordering": False, "bitrate": 4500}GstCamera.encoder_properties["bitrate"] = 4000
-
GstCamera.snapshot_warmup_frames(int)
The number of frames to skip when taking a snapshot. -
GstCamera.ignore_reconfig(bool)
Ignore stream reconfiguration requests from HomeKit while streaming. -
GstCamera.ignore_h264_level(bool)
Ignore H.264 level requirements from HomeKit.
English