python-aidot-cameras 1.0.0rc54__tar.gz → 1.0.0rc55__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_aidot_cameras-1.0.0rc54/python_aidot_cameras.egg-info → python_aidot_cameras-1.0.0rc55}/PKG-INFO +1 -1
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/aac_track.py +1 -1
- python_aidot_cameras-1.0.0rc55/aidot_cameras/camera/agc.py +173 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/protocol.py +8 -58
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/rtsp_publish.py +7 -156
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/pyproject.toml +1 -1
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55/python_aidot_cameras.egg-info}/PKG-INFO +1 -1
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/python_aidot_cameras.egg-info/SOURCES.txt +1 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_audio_mux_offline.py +45 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/MANIFEST.in +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/README.md +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/__main__.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_log_redaction.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_upstream.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/events.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/client.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/constants.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/controls.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/health.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/hls_ts.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/hwaccel.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/models.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/recording.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/sd_events.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/sdes.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/sdes_open.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/webrtc.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/webrtc_open.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/client.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/cloud_auth.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/const.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/credentials.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/crypto.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/device_client.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/discover.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/lan_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/py.typed +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/python_aidot_cameras.egg-info/requires.txt +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/python_aidot_cameras.egg-info/top_level.txt +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/setup.cfg +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_aac_track.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_aioice_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_alarm_event.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_answer_pt_kinds.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_answer_sdp_video_pt.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_answer_section_selection.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_arrival_timestamps.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_auth_error_routing.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_auto_alarm.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_auto_light_settings.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_avio_request.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_avio_response_parse.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_avio_response_router.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_battery_cap_spans_sessions.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_battery_detection.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_battery_evidence_corroboration.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_battery_wake_settles_before_the_command.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_ble_gateway_is_gone.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_bridge_state_sentinels.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_busy_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_camera_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_canary_log_names_the_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_cloud_count.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_cloud_error_log_names_the_exception.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_cloud_error_severity.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_cloud_plan.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_constants_imports_resolve.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_control_verdicts.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_declared_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_deferred_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_detection_types.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_device_cmd_seq_match.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_device_login_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_device_user_info_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_direct_ts_keyframe_signal.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_direct_ts_serve.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_direct_ts_serve_only_for_http.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dormant_camera_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_drain_is_cancellable.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_mux_terminal_write.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_not_ready_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_pinning.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_recorder_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_resolution_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_serve_decode_skip.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_serve_ice_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_serve_open_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_skip_signaling_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_slow_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_stdout_producer.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_tap_states_no_reorder.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_ts_copy_recording.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_dtls_video_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_egress_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_env_seams.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_feature_probe_needs_a_live_session.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_first_media_abandon_rules.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_futile_keepalive.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_gate_requires_a_decoded_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_go2rtc_cli.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_h264_decode_rate_limit.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_health_line.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_highport_nomination.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_hls_ts_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_hls_ts_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_hwaccel_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_ice_config_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_ice_credentials_match_the_app.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_ice_peer_reflexive.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_idle_release_both_loops.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_keepalive_renew.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_key_restart_sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_keyframe_prompter.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_lan_login_accessors.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_lan_retry_stops_on_close.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_lan_sweep_only_with_lights.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_late_repeats_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_light_active_color_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_live_session_carries_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_live_stream_param.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_live_validate_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_live_validate_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_live_video_canary.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_liveplay_echo_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_local_only_controls.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_log_hygiene.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_logging_caps.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_login_connect_deadline.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_login_reconnect_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_media_counted_only_when_plaintext.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_media_path_is_reported.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_media_socket_rcvbuf.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_media_wait_floor.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_motion_poll.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_mqtt_client_id_is_exact.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_mqtt_credential_refetch.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_mqtt_credential_self_heal.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_mqtt_password_not_persisted.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_mqtt_session_reconnect.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_mqtt_thread_not_orphaned.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_nack.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_narrow_pc_ice.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_no_key_material_in_logs.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_no_self_referential_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_no_unbounded_hex_dumps.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_no_undefined_names.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_off_subnet_candidate.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_offline_keepalive_pause.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_on_frame_is_an_av_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_open_fail_logger.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_open_gate_delay.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_peer_id_class_env.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_peer_id_client_type.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_peerid_reuse.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_persistent_mqtt.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_persistent_mqtt_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_post_merge_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_public_signature_matches_impl.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_publish_target_readiness.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_quality_campaign_in_session.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_reboot_action.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_recent_recordings.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_remb.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_resent_frames_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_resolution_persists.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_restart_cycle.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_retry_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_review_lan_retry_and_graces.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_rtsp_publish.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_rtsp_publish_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_scripts_importable.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sctp_init_ack_tsn.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sctp_reassembly.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sctp_sack.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sd_card_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sd_event_decode.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sd_event_probe_payloads.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_avio_dispatch.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_bridge_break_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_connection_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_echo_wait_is_not_dead_time.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_fast_liveplay.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_first_media_stall_report.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_ice_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_idle_release.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_nack_bridge.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_offer_video_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_open_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_pinned_codec_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_sctp_abort.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_serve_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_serve_cmd.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_serve_stderr_drain.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_session_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_sprop.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_teardown_exit_log.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_terminal_ack_latency.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdes_watchdog.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdp_narrowing_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sdp_payload_type_narrowing.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_security_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_serializable_login_info.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_serve_input_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_serve_loop_releases_on_error.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_serve_loss_tolerance.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_serve_pt_respects_the_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_serve_relay.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_session_stats.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_session_stop_twice.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_shared_house_seam.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_skip_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_snapshot_cancellation.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_speak.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sprop_capture_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sprop_staleness.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sprop_unstable_public.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_srtp_rx_rekey.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_srtp_tx_key_note.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stable_terminal_id.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stall_nudge_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stall_reports_reach_the_artifact.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_status_and_trace_channels.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stream_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stream_drain_ownership.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stream_idle.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stream_slot_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_stream_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_tap_to_mux_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_tmmbr.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_token_file_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_transport_failure_reporting.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_turn_create_permission.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_unreachable_nominee_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_upstream_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_upstream_seam_adapter.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_upstream_secrets_redacted.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_validator_shares_one_token.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_vendored_aiortc_integrity.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_video_presence_needs_a_keyframe.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_video_profile_log.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_video_pts_dts.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_video_ts_unwrap.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_viewer_check_throttle.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_viewer_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_viewer_present_push_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_wait_or_event.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_wake_gate_camera_evidence.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_wake_readiness_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_webrtc_answer_race.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-aidot-cameras
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0rc55
|
|
4
4
|
Summary: Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)
|
|
5
5
|
Author-email: cbrightly <chris.brightly@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"""Audio conditioning on A-law bytes, shared by every path that serves audio.
|
|
2
|
+
|
|
3
|
+
One level normalizer: the DTLS and SDES direct publishers run it on the
|
|
4
|
+
camera's A-law payload before the bytes leave the process, and the PyAV
|
|
5
|
+
mux behind the ffmpeg serve runs it on the same bytes before it decodes
|
|
6
|
+
them to AAC. It used to exist twice - here as a translate table, and in
|
|
7
|
+
the mux as a numpy loop over decoded samples - with the same four
|
|
8
|
+
environment variables and the gate and the clamp in opposite orders, so
|
|
9
|
+
the two paths disagreed by up to 12 dB on a silent room. The class is the
|
|
10
|
+
version every default path has run since 1.0.0rc52 and was checked live.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import annotations
|
|
14
|
+
|
|
15
|
+
import math
|
|
16
|
+
import os
|
|
17
|
+
from typing import Optional
|
|
18
|
+
|
|
19
|
+
# --------------------------------------------------------------------------- #
|
|
20
|
+
# Audio gain on A-law bytes #
|
|
21
|
+
# --------------------------------------------------------------------------- #
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
#: A-law byte -> linear sample, and the squares of those, precomputed. The
|
|
25
|
+
#: publish loop runs per 20 ms audio frame on every camera, so the decode and
|
|
26
|
+
#: the level measurement must not be per-sample Python.
|
|
27
|
+
_ALAW_TO_LINEAR: tuple = ()
|
|
28
|
+
_ALAW_SQUARES: tuple = ()
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _alaw_mean_square(payload: bytes) -> float:
|
|
32
|
+
"""Mean square of an A-law frame, by table lookup."""
|
|
33
|
+
sq = _ALAW_SQUARES
|
|
34
|
+
return sum(sq[b] for b in payload) / len(payload)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _alaw_encode(sample: int) -> int:
|
|
38
|
+
from ..g711 import linear2alaw
|
|
39
|
+
|
|
40
|
+
return linear2alaw(sample)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _db2amp(db: float) -> float:
|
|
44
|
+
"""Decibels (full scale) to a linear amplitude factor."""
|
|
45
|
+
return 10.0 ** (db / 20.0)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _alaw_to_linear(a: int) -> int:
|
|
49
|
+
a ^= 0x55
|
|
50
|
+
t = (a & 0x0F) << 4
|
|
51
|
+
seg = (a & 0x70) >> 4
|
|
52
|
+
if seg == 0:
|
|
53
|
+
t += 8
|
|
54
|
+
elif seg == 1:
|
|
55
|
+
t += 0x108
|
|
56
|
+
else:
|
|
57
|
+
t = (t + 0x108) << (seg - 1)
|
|
58
|
+
return t if (a & 0x80) else -t
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def alaw_gain_table(gain_db: float) -> Optional[bytes]:
|
|
62
|
+
"""A 256-byte translate table applying ``gain_db`` to A-law, or None at 0 dB."""
|
|
63
|
+
if not gain_db:
|
|
64
|
+
return None
|
|
65
|
+
from ..g711 import linear2alaw
|
|
66
|
+
|
|
67
|
+
k = 10 ** (gain_db / 20.0)
|
|
68
|
+
out = bytearray(256)
|
|
69
|
+
for a in range(256):
|
|
70
|
+
v = round(_alaw_to_linear(a) * k)
|
|
71
|
+
out[a] = linear2alaw(max(-32768, min(32767, v)))
|
|
72
|
+
return bytes(out)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
_ALAW_TO_LINEAR = tuple(_alaw_to_linear(b) for b in range(256))
|
|
76
|
+
_ALAW_SQUARES = tuple(float(v) * v for v in _ALAW_TO_LINEAR)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class AlawAgc:
|
|
80
|
+
"""The audio conditioning every served path applies to A-law payloads.
|
|
81
|
+
|
|
82
|
+
The PyAV mux the DTLS publisher replaces did not send the camera's audio
|
|
83
|
+
as it arrived: it decoded, ran a level tracker with a gain clamp, a noise
|
|
84
|
+
gate and a tanh soft-limiter toward a target level, and re-encoded.
|
|
85
|
+
Publishing raw A-law would quietly drop all of that, so the same
|
|
86
|
+
conditioning runs here, reading the same environment variables.
|
|
87
|
+
|
|
88
|
+
The SDES publisher runs it too (since the release after 1.0.0rc51). It
|
|
89
|
+
had only a fixed trim, sized in 0.7.34 for a hot microphone, and the
|
|
90
|
+
measured truth on 2026-10-14 was the opposite: an A001064 and an A001513
|
|
91
|
+
send their rooms at -68 and -70 dBFS RMS, so after the trim every sample
|
|
92
|
+
sat under the first A-law step and the published audio was digital zero,
|
|
93
|
+
while the same room through an A000088 came out at a listening level.
|
|
94
|
+
The two transports now get the same conditioning, and the trim is an
|
|
95
|
+
offset applied after it. The PyAV mux behind the ffmpeg serve runs this
|
|
96
|
+
class too (since the release after 1.0.0rc54; it used to carry its own
|
|
97
|
+
numpy copy of the same algorithm). Variables:
|
|
98
|
+
|
|
99
|
+
``AIDOT_AUDIO_TARGET_DBFS`` (-15), ``AIDOT_AUDIO_MAXGAIN_DB`` (30),
|
|
100
|
+
``AIDOT_AUDIO_MINGAIN_DB`` (-12), ``AIDOT_AUDIO_GATE_DBFS`` (-45).
|
|
101
|
+
|
|
102
|
+
The gate matters: below it the gain is scaled down quadratically rather
|
|
103
|
+
than cranked toward maximum, which is what stops a quiet camera's A-law
|
|
104
|
+
quantization floor being amplified into audible clicking.
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
def __init__(self, env=None):
|
|
108
|
+
env = os.environ if env is None else env
|
|
109
|
+
|
|
110
|
+
def _f(name, default):
|
|
111
|
+
try:
|
|
112
|
+
val = float(env.get(name, default))
|
|
113
|
+
except (TypeError, ValueError):
|
|
114
|
+
return float(default)
|
|
115
|
+
# "inf"/"nan" parse as floats and then poison the gain: a
|
|
116
|
+
# non-finite gain reaches math.log() when the translate table is
|
|
117
|
+
# keyed and raises *inside the publish loop*, taking the stream
|
|
118
|
+
# down. The per-sample path this replaced merely saturated.
|
|
119
|
+
return val if math.isfinite(val) else float(default)
|
|
120
|
+
|
|
121
|
+
self.enabled = True
|
|
122
|
+
self.target = _db2amp(_f("AIDOT_AUDIO_TARGET_DBFS", -15)) * 32767.0
|
|
123
|
+
self.maxg = _db2amp(_f("AIDOT_AUDIO_MAXGAIN_DB", 30))
|
|
124
|
+
self.ming = _db2amp(_f("AIDOT_AUDIO_MINGAIN_DB", -12))
|
|
125
|
+
self.gate = _db2amp(_f("AIDOT_AUDIO_GATE_DBFS", -45)) * 32767.0
|
|
126
|
+
self._ms = None # smoothed mean square
|
|
127
|
+
self._tables: dict = {} # quantized gain -> 256-entry translate table
|
|
128
|
+
|
|
129
|
+
#: Gain is quantized to this many dB before a table is built for it, so a
|
|
130
|
+
#: slowly-moving level tracker reuses one table instead of rebuilding it
|
|
131
|
+
#: per frame. 0.5 dB is well under audible.
|
|
132
|
+
_GAIN_STEP_DB = 0.5
|
|
133
|
+
|
|
134
|
+
def process(self, payload: bytes) -> bytes:
|
|
135
|
+
"""One A-law frame in, one conditioned A-law frame out.
|
|
136
|
+
|
|
137
|
+
The conditioning is deterministic given the gain, so the gain, the
|
|
138
|
+
limiter and the A-law round trip are baked into a 256-entry translate
|
|
139
|
+
table and applied by ``bytes.translate`` at C speed. Measured on ARM
|
|
140
|
+
before the table: 0.858 ms per 20 ms frame, 4.3% of a core per stream,
|
|
141
|
+
all of it inside the publish loop.
|
|
142
|
+
|
|
143
|
+
The level measurement below is still per-sample Python, and is now
|
|
144
|
+
~90% of what this costs; the conditioning itself is ~0.0007 ms. That
|
|
145
|
+
is where to look if more headroom is ever wanted.
|
|
146
|
+
"""
|
|
147
|
+
if not self.enabled or not payload:
|
|
148
|
+
return payload
|
|
149
|
+
ms = _alaw_mean_square(payload)
|
|
150
|
+
self._ms = ms if self._ms is None else self._ms * 0.95 + ms * 0.05
|
|
151
|
+
rms = (self._ms**0.5) + 1.0
|
|
152
|
+
gain = self.target / rms
|
|
153
|
+
if rms < self.gate:
|
|
154
|
+
# Below the gate: fade the gain down with the square of how far
|
|
155
|
+
# under it we are, instead of cranking toward maximum.
|
|
156
|
+
gain *= (rms / self.gate) ** 2
|
|
157
|
+
gain = max(self.ming, min(self.maxg, gain))
|
|
158
|
+
return payload.translate(self._table(gain))
|
|
159
|
+
|
|
160
|
+
def _table(self, gain: float) -> bytes:
|
|
161
|
+
step = 10 ** (self._GAIN_STEP_DB / 20.0)
|
|
162
|
+
key = round(math.log(max(gain, 1e-9), step))
|
|
163
|
+
table = self._tables.get(key)
|
|
164
|
+
if table is None:
|
|
165
|
+
g = step**key
|
|
166
|
+
table = bytes(
|
|
167
|
+
_alaw_encode(
|
|
168
|
+
int(max(-32768, min(32767, math.tanh(x * (g / 32767.0)) * 32767.0)))
|
|
169
|
+
)
|
|
170
|
+
for x in _ALAW_TO_LINEAR
|
|
171
|
+
)
|
|
172
|
+
self._tables[key] = table
|
|
173
|
+
return table
|
{python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/protocol.py
RENAMED
|
@@ -25,6 +25,7 @@ import time
|
|
|
25
25
|
import zlib
|
|
26
26
|
from typing import Any, Callable, Optional, NamedTuple
|
|
27
27
|
|
|
28
|
+
from .agc import AlawAgc
|
|
28
29
|
from .constants import TALK_PCM_FRAME_BYTES, TALK_PCM_RATE
|
|
29
30
|
|
|
30
31
|
_LOGGER = logging.getLogger(__name__)
|
|
@@ -1842,6 +1843,8 @@ def _dtls_av_mux_run(
|
|
|
1842
1843
|
timestamps, so DTS is clean/monotonic (fixes HA's "No dts" stutter).
|
|
1843
1844
|
- MPEG-TS can't carry G.711 PCMA, so audio is transcoded to AAC (trivial CPU
|
|
1844
1845
|
at 8 kHz mono).
|
|
1846
|
+
The A-law is conditioned by ``AlawAgc`` first, the same normalizer the
|
|
1847
|
+
direct publishers run, so a serve and a publish sound the same.
|
|
1845
1848
|
- ``progress[0]`` is bumped on every successful mux so the serve loop can
|
|
1846
1849
|
detect "no consumer pulling" (the pipe fills and mux blocks -> stale).
|
|
1847
1850
|
- ``align_audio_start`` (file recordings): video is presented from the
|
|
@@ -1935,32 +1938,10 @@ def _dtls_av_mux_run(
|
|
|
1935
1938
|
resampler = av.AudioResampler(format="fltp", layout="mono", rate=48000)
|
|
1936
1939
|
fifo = av.AudioFifo()
|
|
1937
1940
|
|
|
1938
|
-
#
|
|
1939
|
-
#
|
|
1940
|
-
#
|
|
1941
|
-
|
|
1942
|
-
def _db2amp(_d):
|
|
1943
|
-
return 10.0 ** (_d / 20.0)
|
|
1944
|
-
|
|
1945
|
-
try:
|
|
1946
|
-
_target = (
|
|
1947
|
-
_db2amp(float(os.environ.get("AIDOT_AUDIO_TARGET_DBFS", "-15")))
|
|
1948
|
-
* 32767.0
|
|
1949
|
-
)
|
|
1950
|
-
_maxg = _db2amp(float(os.environ.get("AIDOT_AUDIO_MAXGAIN_DB", "30")))
|
|
1951
|
-
_ming = _db2amp(float(os.environ.get("AIDOT_AUDIO_MINGAIN_DB", "-12")))
|
|
1952
|
-
# Noise gate: below this RMS the input is (near) silence, so the AGC
|
|
1953
|
-
# must NOT crank toward +maxg - doing so amplifies the A-law
|
|
1954
|
-
# quantization floor into audible high-frequency clicking on a quiet
|
|
1955
|
-
# camera. Gain is scaled down quadratically below the gate. Set very
|
|
1956
|
-
# low (e.g. -120) to disable.
|
|
1957
|
-
_gate = (
|
|
1958
|
-
_db2amp(float(os.environ.get("AIDOT_AUDIO_GATE_DBFS", "-45"))) * 32767.0
|
|
1959
|
-
)
|
|
1960
|
-
except (ValueError, TypeError):
|
|
1961
|
-
_target, _maxg, _ming = _db2amp(-15) * 32767.0, _db2amp(30), _db2amp(-12)
|
|
1962
|
-
_gate = _db2amp(-45) * 32767.0
|
|
1963
|
-
_agc_ms = [None] # smoothed mean-square (level tracker)
|
|
1941
|
+
# The level normalizer every served path runs (see agc.py): it works
|
|
1942
|
+
# on the A-law bytes before they are decoded, so the mux conditions
|
|
1943
|
+
# exactly what the direct publishers condition.
|
|
1944
|
+
agc = AlawAgc()
|
|
1964
1945
|
try:
|
|
1965
1946
|
import numpy as _np
|
|
1966
1947
|
except Exception:
|
|
@@ -2077,40 +2058,9 @@ def _dtls_av_mux_run(
|
|
|
2077
2058
|
"_flush_audio",
|
|
2078
2059
|
exc_info=True,
|
|
2079
2060
|
)
|
|
2080
|
-
for fr in adec.decode(av.Packet(data)):
|
|
2061
|
+
for fr in adec.decode(av.Packet(agc.process(data))):
|
|
2081
2062
|
_ndec = fr.samples
|
|
2082
2063
|
fr.pts = None
|
|
2083
|
-
if _np is not None:
|
|
2084
|
-
try:
|
|
2085
|
-
_x = fr.to_ndarray().astype(_np.float64)
|
|
2086
|
-
# Track the level (smoothed mean-square ~0.4s) and aim
|
|
2087
|
-
# the gain at the -15 dBFS target, clamped [min, max].
|
|
2088
|
-
_ms = float(_np.mean(_x * _x))
|
|
2089
|
-
if _agc_ms[0] is None:
|
|
2090
|
-
_agc_ms[0] = _ms
|
|
2091
|
-
else:
|
|
2092
|
-
_agc_ms[0] = _agc_ms[0] * 0.95 + _ms * 0.05
|
|
2093
|
-
_rms = (_agc_ms[0] ** 0.5) + 1.0
|
|
2094
|
-
_gain = min(_maxg, max(_ming, _target / _rms))
|
|
2095
|
-
# Noise gate: when the level is below the gate floor the
|
|
2096
|
-
# signal is essentially silence; scale the gain down
|
|
2097
|
-
# quadratically so the A-law quantization noise is not
|
|
2098
|
-
# amplified into audible clicking.
|
|
2099
|
-
if _rms < _gate:
|
|
2100
|
-
_gain *= (_rms / _gate) ** 2
|
|
2101
|
-
# tanh soft-limiter catches transient peaks past target.
|
|
2102
|
-
_y = _np.tanh(_x * (_gain / 32767.0)) * 32767.0
|
|
2103
|
-
_g = av.AudioFrame.from_ndarray(
|
|
2104
|
-
_y.astype(_np.int16), format="s16", layout="mono"
|
|
2105
|
-
)
|
|
2106
|
-
_g.sample_rate = 8000
|
|
2107
|
-
fr = _g
|
|
2108
|
-
except Exception:
|
|
2109
|
-
_LOGGER.debug(
|
|
2110
|
-
"swallowed exception in %s",
|
|
2111
|
-
"_flush_audio",
|
|
2112
|
-
exc_info=True,
|
|
2113
|
-
)
|
|
2114
2064
|
for rfr in resampler.resample(fr): # 8k PCMA -> 48k fltp
|
|
2115
2065
|
fifo.write(rfr)
|
|
2116
2066
|
a_in[0] += _ndec
|
|
@@ -28,7 +28,6 @@ from __future__ import annotations
|
|
|
28
28
|
import base64
|
|
29
29
|
import collections
|
|
30
30
|
import logging
|
|
31
|
-
import math
|
|
32
31
|
import os
|
|
33
32
|
import queue as _queue
|
|
34
33
|
import random
|
|
@@ -51,6 +50,13 @@ from .aac_track import (
|
|
|
51
50
|
make_aac_track,
|
|
52
51
|
)
|
|
53
52
|
from .protocol import is_resent_video_frame
|
|
53
|
+
from .agc import ( # re-exported: the publishers' callers and tests use these names here
|
|
54
|
+
AlawAgc as AlawAgc,
|
|
55
|
+
_alaw_encode as _alaw_encode,
|
|
56
|
+
_alaw_to_linear as _alaw_to_linear,
|
|
57
|
+
_db2amp as _db2amp,
|
|
58
|
+
alaw_gain_table as alaw_gain_table,
|
|
59
|
+
)
|
|
54
60
|
from .rtp_h264 import H264Depacketizer
|
|
55
61
|
|
|
56
62
|
_LOGGER = logging.getLogger(__name__)
|
|
@@ -927,161 +933,6 @@ class RtpReorderBuffer:
|
|
|
927
933
|
return [*out, item]
|
|
928
934
|
|
|
929
935
|
|
|
930
|
-
# --------------------------------------------------------------------------- #
|
|
931
|
-
# Audio gain on A-law bytes #
|
|
932
|
-
# --------------------------------------------------------------------------- #
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
#: A-law byte -> linear sample, and the squares of those, precomputed. The
|
|
936
|
-
#: publish loop runs per 20 ms audio frame on every camera, so the decode and
|
|
937
|
-
#: the level measurement must not be per-sample Python.
|
|
938
|
-
_ALAW_TO_LINEAR: tuple = ()
|
|
939
|
-
_ALAW_SQUARES: tuple = ()
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
def _alaw_mean_square(payload: bytes) -> float:
|
|
943
|
-
"""Mean square of an A-law frame, by table lookup."""
|
|
944
|
-
sq = _ALAW_SQUARES
|
|
945
|
-
return sum(sq[b] for b in payload) / len(payload)
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
def _alaw_encode(sample: int) -> int:
|
|
949
|
-
from ..g711 import linear2alaw
|
|
950
|
-
|
|
951
|
-
return linear2alaw(sample)
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
def _db2amp(db: float) -> float:
|
|
955
|
-
"""Decibels (full scale) to a linear amplitude factor."""
|
|
956
|
-
return 10.0 ** (db / 20.0)
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
def _alaw_to_linear(a: int) -> int:
|
|
960
|
-
a ^= 0x55
|
|
961
|
-
t = (a & 0x0F) << 4
|
|
962
|
-
seg = (a & 0x70) >> 4
|
|
963
|
-
if seg == 0:
|
|
964
|
-
t += 8
|
|
965
|
-
elif seg == 1:
|
|
966
|
-
t += 0x108
|
|
967
|
-
else:
|
|
968
|
-
t = (t + 0x108) << (seg - 1)
|
|
969
|
-
return t if (a & 0x80) else -t
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
def alaw_gain_table(gain_db: float) -> Optional[bytes]:
|
|
973
|
-
"""A 256-byte translate table applying ``gain_db`` to A-law, or None at 0 dB."""
|
|
974
|
-
if not gain_db:
|
|
975
|
-
return None
|
|
976
|
-
from ..g711 import linear2alaw
|
|
977
|
-
|
|
978
|
-
k = 10 ** (gain_db / 20.0)
|
|
979
|
-
out = bytearray(256)
|
|
980
|
-
for a in range(256):
|
|
981
|
-
v = round(_alaw_to_linear(a) * k)
|
|
982
|
-
out[a] = linear2alaw(max(-32768, min(32767, v)))
|
|
983
|
-
return bytes(out)
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
_ALAW_TO_LINEAR = tuple(_alaw_to_linear(b) for b in range(256))
|
|
987
|
-
_ALAW_SQUARES = tuple(float(v) * v for v in _ALAW_TO_LINEAR)
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
class AlawAgc:
|
|
991
|
-
"""The audio conditioning both direct publishers apply to A-law payloads.
|
|
992
|
-
|
|
993
|
-
The PyAV mux the DTLS publisher replaces did not send the camera's audio
|
|
994
|
-
as it arrived: it decoded, ran a level tracker with a gain clamp, a noise
|
|
995
|
-
gate and a tanh soft-limiter toward a target level, and re-encoded.
|
|
996
|
-
Publishing raw A-law would quietly drop all of that, so the same
|
|
997
|
-
conditioning runs here, reading the same environment variables.
|
|
998
|
-
|
|
999
|
-
The SDES publisher runs it too (since the release after 1.0.0rc51). It
|
|
1000
|
-
had only a fixed trim, sized in 0.7.34 for a hot microphone, and the
|
|
1001
|
-
measured truth on 2026-10-14 was the opposite: an A001064 and an A001513
|
|
1002
|
-
send their rooms at -68 and -70 dBFS RMS, so after the trim every sample
|
|
1003
|
-
sat under the first A-law step and the published audio was digital zero,
|
|
1004
|
-
while the same room through an A000088 came out at a listening level.
|
|
1005
|
-
The two transports now get the same conditioning, and the trim is an
|
|
1006
|
-
offset applied after it. Variables:
|
|
1007
|
-
|
|
1008
|
-
``AIDOT_AUDIO_TARGET_DBFS`` (-15), ``AIDOT_AUDIO_MAXGAIN_DB`` (30),
|
|
1009
|
-
``AIDOT_AUDIO_MINGAIN_DB`` (-12), ``AIDOT_AUDIO_GATE_DBFS`` (-45).
|
|
1010
|
-
|
|
1011
|
-
The gate matters: below it the gain is scaled down quadratically rather
|
|
1012
|
-
than cranked toward maximum, which is what stops a quiet camera's A-law
|
|
1013
|
-
quantization floor being amplified into audible clicking.
|
|
1014
|
-
"""
|
|
1015
|
-
|
|
1016
|
-
def __init__(self, env=None):
|
|
1017
|
-
env = os.environ if env is None else env
|
|
1018
|
-
|
|
1019
|
-
def _f(name, default):
|
|
1020
|
-
try:
|
|
1021
|
-
val = float(env.get(name, default))
|
|
1022
|
-
except (TypeError, ValueError):
|
|
1023
|
-
return float(default)
|
|
1024
|
-
# "inf"/"nan" parse as floats and then poison the gain: a
|
|
1025
|
-
# non-finite gain reaches math.log() when the translate table is
|
|
1026
|
-
# keyed and raises *inside the publish loop*, taking the stream
|
|
1027
|
-
# down. The per-sample path this replaced merely saturated.
|
|
1028
|
-
return val if math.isfinite(val) else float(default)
|
|
1029
|
-
|
|
1030
|
-
self.enabled = True
|
|
1031
|
-
self.target = _db2amp(_f("AIDOT_AUDIO_TARGET_DBFS", -15)) * 32767.0
|
|
1032
|
-
self.maxg = _db2amp(_f("AIDOT_AUDIO_MAXGAIN_DB", 30))
|
|
1033
|
-
self.ming = _db2amp(_f("AIDOT_AUDIO_MINGAIN_DB", -12))
|
|
1034
|
-
self.gate = _db2amp(_f("AIDOT_AUDIO_GATE_DBFS", -45)) * 32767.0
|
|
1035
|
-
self._ms = None # smoothed mean square
|
|
1036
|
-
self._tables: dict = {} # quantized gain -> 256-entry translate table
|
|
1037
|
-
|
|
1038
|
-
#: Gain is quantized to this many dB before a table is built for it, so a
|
|
1039
|
-
#: slowly-moving level tracker reuses one table instead of rebuilding it
|
|
1040
|
-
#: per frame. 0.5 dB is well under audible.
|
|
1041
|
-
_GAIN_STEP_DB = 0.5
|
|
1042
|
-
|
|
1043
|
-
def process(self, payload: bytes) -> bytes:
|
|
1044
|
-
"""One A-law frame in, one conditioned A-law frame out.
|
|
1045
|
-
|
|
1046
|
-
The conditioning is deterministic given the gain, so the gain, the
|
|
1047
|
-
limiter and the A-law round trip are baked into a 256-entry translate
|
|
1048
|
-
table and applied by ``bytes.translate`` at C speed. Measured on ARM
|
|
1049
|
-
before the table: 0.858 ms per 20 ms frame, 4.3% of a core per stream,
|
|
1050
|
-
all of it inside the publish loop.
|
|
1051
|
-
|
|
1052
|
-
The level measurement below is still per-sample Python, and is now
|
|
1053
|
-
~90% of what this costs; the conditioning itself is ~0.0007 ms. That
|
|
1054
|
-
is where to look if more headroom is ever wanted.
|
|
1055
|
-
"""
|
|
1056
|
-
if not self.enabled or not payload:
|
|
1057
|
-
return payload
|
|
1058
|
-
ms = _alaw_mean_square(payload)
|
|
1059
|
-
self._ms = ms if self._ms is None else self._ms * 0.95 + ms * 0.05
|
|
1060
|
-
rms = (self._ms**0.5) + 1.0
|
|
1061
|
-
gain = self.target / rms
|
|
1062
|
-
if rms < self.gate:
|
|
1063
|
-
# Below the gate: fade the gain down with the square of how far
|
|
1064
|
-
# under it we are, instead of cranking toward maximum.
|
|
1065
|
-
gain *= (rms / self.gate) ** 2
|
|
1066
|
-
gain = max(self.ming, min(self.maxg, gain))
|
|
1067
|
-
return payload.translate(self._table(gain))
|
|
1068
|
-
|
|
1069
|
-
def _table(self, gain: float) -> bytes:
|
|
1070
|
-
step = 10 ** (self._GAIN_STEP_DB / 20.0)
|
|
1071
|
-
key = round(math.log(max(gain, 1e-9), step))
|
|
1072
|
-
table = self._tables.get(key)
|
|
1073
|
-
if table is None:
|
|
1074
|
-
g = step**key
|
|
1075
|
-
table = bytes(
|
|
1076
|
-
_alaw_encode(
|
|
1077
|
-
int(max(-32768, min(32767, math.tanh(x * (g / 32767.0)) * 32767.0)))
|
|
1078
|
-
)
|
|
1079
|
-
for x in _ALAW_TO_LINEAR
|
|
1080
|
-
)
|
|
1081
|
-
self._tables[key] = table
|
|
1082
|
-
return table
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
936
|
# --------------------------------------------------------------------------- #
|
|
1086
937
|
# Popen-compatible SDES publisher #
|
|
1087
938
|
# --------------------------------------------------------------------------- #
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-aidot-cameras"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.0rc55"
|
|
8
8
|
description = "Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-aidot-cameras
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0rc55
|
|
4
4
|
Summary: Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)
|
|
5
5
|
Author-email: cbrightly <chris.brightly@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -53,6 +53,7 @@ aidot_cameras/_vendor/aiortc/contrib/media.py
|
|
|
53
53
|
aidot_cameras/_vendor/aiortc/contrib/signaling.py
|
|
54
54
|
aidot_cameras/camera/__init__.py
|
|
55
55
|
aidot_cameras/camera/aac_track.py
|
|
56
|
+
aidot_cameras/camera/agc.py
|
|
56
57
|
aidot_cameras/camera/client.py
|
|
57
58
|
aidot_cameras/camera/constants.py
|
|
58
59
|
aidot_cameras/camera/controls.py
|
{python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/tests/test_audio_mux_offline.py
RENAMED
|
@@ -149,3 +149,48 @@ def test_quiet_input_still_produces_audio_stream():
|
|
|
149
149
|
ts = _run_mux(wire)
|
|
150
150
|
y, _sr = _decode_aac(ts)
|
|
151
151
|
assert len(y) > 0
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def _alaw_rms_dbfs(payload: bytes) -> float:
|
|
155
|
+
from aidot_cameras.camera.agc import _alaw_to_linear
|
|
156
|
+
|
|
157
|
+
vals = [float(_alaw_to_linear(b)) for b in payload]
|
|
158
|
+
return 20 * np.log10((sum(v * v for v in vals) / len(vals)) ** 0.5 / 32767.0)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def test_mux_conditions_audio_like_the_direct_publishers():
|
|
162
|
+
"""The mux used to run its own numpy copy of the publishers' normalizer.
|
|
163
|
+
Now it runs ``AlawAgc`` on the A-law before decoding, so a quiet camera
|
|
164
|
+
comes out of the ffmpeg serve at the same level the direct publish gives
|
|
165
|
+
it: lifted toward -15 dBFS, and within a couple of dB of what the shared
|
|
166
|
+
class produces on the same bytes (the rest is AAC)."""
|
|
167
|
+
from aidot_cameras.camera.agc import AlawAgc
|
|
168
|
+
|
|
169
|
+
wire, _n_in = _make_pcma_packets(level_dbfs=-35.0)
|
|
170
|
+
ts = _run_mux(wire)
|
|
171
|
+
y, sr = _decode_aac(ts)
|
|
172
|
+
# Skip the first second: the level tracker settles over ~0.4 s.
|
|
173
|
+
tail = y[sr:]
|
|
174
|
+
out_dbfs = 20 * np.log10(np.sqrt(np.mean(tail**2)) + 1e-9)
|
|
175
|
+
|
|
176
|
+
agc = AlawAgc(env={})
|
|
177
|
+
conditioned = b"".join(agc.process(w) for w, _ts in wire)
|
|
178
|
+
ref_dbfs = _alaw_rms_dbfs(conditioned[SR:])
|
|
179
|
+
|
|
180
|
+
assert out_dbfs > -25.0, f"quiet input was not lifted: {out_dbfs:.1f} dBFS"
|
|
181
|
+
assert abs(out_dbfs - ref_dbfs) < 2.5, (
|
|
182
|
+
f"mux output {out_dbfs:.1f} dBFS vs AlawAgc on the same bytes "
|
|
183
|
+
f"{ref_dbfs:.1f} dBFS - the mux is not running the shared normalizer"
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
def test_mux_has_no_normalizer_of_its_own():
|
|
188
|
+
"""Pin the dedup: the knobs are read in one place, ``agc.py``."""
|
|
189
|
+
import inspect
|
|
190
|
+
|
|
191
|
+
from aidot_cameras.camera import protocol
|
|
192
|
+
|
|
193
|
+
src = inspect.getsource(protocol._dtls_av_mux_run)
|
|
194
|
+
assert "agc.process(" in src
|
|
195
|
+
assert "tanh" not in src and "AIDOT_AUDIO_" not in src
|
|
196
|
+
assert "AIDOT_AUDIO_" not in inspect.getsource(protocol)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_log_redaction.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_upstream.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/_vendor/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0rc54 → python_aidot_cameras-1.0.0rc55}/aidot_cameras/camera/__init__.py
RENAMED
|
File without changes
|