uiprotect 6.3.1__py3-none-any.whl → 6.4.0__py3-none-any.whl
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.
Potentially problematic release.
This version of uiprotect might be problematic. Click here for more details.
- uiprotect/data/devices.py +11 -0
- uiprotect/stream.py +2 -6
- {uiprotect-6.3.1.dist-info → uiprotect-6.4.0.dist-info}/METADATA +2 -1
- {uiprotect-6.3.1.dist-info → uiprotect-6.4.0.dist-info}/RECORD +7 -7
- {uiprotect-6.3.1.dist-info → uiprotect-6.4.0.dist-info}/WHEEL +1 -1
- {uiprotect-6.3.1.dist-info → uiprotect-6.4.0.dist-info}/LICENSE +0 -0
- {uiprotect-6.3.1.dist-info → uiprotect-6.4.0.dist-info}/entry_points.txt +0 -0
uiprotect/data/devices.py
CHANGED
|
@@ -273,6 +273,7 @@ class CameraChannel(ProtectBaseObject):
|
|
|
273
273
|
|
|
274
274
|
_rtsp_url: str | None = PrivateAttr(None)
|
|
275
275
|
_rtsps_url: str | None = PrivateAttr(None)
|
|
276
|
+
_rtsps_no_srtp_url: str | None = PrivateAttr(None)
|
|
276
277
|
|
|
277
278
|
@property
|
|
278
279
|
def rtsp_url(self) -> str | None:
|
|
@@ -294,6 +295,16 @@ class CameraChannel(ProtectBaseObject):
|
|
|
294
295
|
self._rtsps_url = f"rtsps://{self._api.connection_host}:{self._api.bootstrap.nvr.ports.rtsps}/{self.rtsp_alias}?enableSrtp"
|
|
295
296
|
return self._rtsps_url
|
|
296
297
|
|
|
298
|
+
@property
|
|
299
|
+
def rtsps_no_srtp_url(self) -> str | None:
|
|
300
|
+
if not self.is_rtsp_enabled or self.rtsp_alias is None:
|
|
301
|
+
return None
|
|
302
|
+
|
|
303
|
+
if self._rtsps_no_srtp_url is not None:
|
|
304
|
+
return self._rtsps_no_srtp_url
|
|
305
|
+
self._rtsps_no_srtp_url = f"rtsps://{self._api.connection_host}:{self._api.bootstrap.nvr.ports.rtsps}/{self.rtsp_alias}"
|
|
306
|
+
return self._rtsps_no_srtp_url
|
|
307
|
+
|
|
297
308
|
@property
|
|
298
309
|
def is_package(self) -> bool:
|
|
299
310
|
return self.fps <= 2
|
uiprotect/stream.py
CHANGED
|
@@ -130,10 +130,6 @@ class TalkbackStream(FfmpegCommand):
|
|
|
130
130
|
if len(input_args) > 0:
|
|
131
131
|
input_args += " "
|
|
132
132
|
|
|
133
|
-
bitrate = camera.talkback_settings.bits_per_sample * 1000
|
|
134
|
-
# 8000 seems to result in best quality without overloading the camera
|
|
135
|
-
udp_bitrate = bitrate + 8000
|
|
136
|
-
|
|
137
133
|
# vn = no video
|
|
138
134
|
# acodec = audio codec to encode output in (aac)
|
|
139
135
|
# ac = number of output channels (1)
|
|
@@ -143,8 +139,8 @@ class TalkbackStream(FfmpegCommand):
|
|
|
143
139
|
"-loglevel info -hide_banner "
|
|
144
140
|
f'{input_args}-i "{content_url}" -vn '
|
|
145
141
|
f"-acodec {camera.talkback_settings.type_fmt.value} -ac {camera.talkback_settings.channels} "
|
|
146
|
-
f"-ar {camera.talkback_settings.sampling_rate} -b:a {
|
|
147
|
-
f'-f adts "udp://{camera.host}:{camera.talkback_settings.bind_port}?bitrate={
|
|
142
|
+
f"-ar {camera.talkback_settings.sampling_rate} -b:a {camera.talkback_settings.sampling_rate} -map 0:a "
|
|
143
|
+
f'-f adts "udp://{camera.host}:{camera.talkback_settings.bind_port}?bitrate={camera.talkback_settings.sampling_rate}"'
|
|
148
144
|
)
|
|
149
145
|
|
|
150
146
|
super().__init__(cmd, ffmpeg_path)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: uiprotect
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.4.0
|
|
4
4
|
Summary: Python API for Unifi Protect (Unofficial)
|
|
5
5
|
Home-page: https://github.com/uilibs/uiprotect
|
|
6
6
|
Author: UI Protect Maintainers
|
|
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
19
|
Classifier: Topic :: Software Development :: Build Tools
|
|
19
20
|
Classifier: Topic :: Software Development :: Libraries
|
|
20
21
|
Requires-Dist: aiofiles (>=24)
|
|
@@ -18,7 +18,7 @@ uiprotect/data/__init__.py,sha256=OcfuJl2qXfHcj_mdnrHhzZ5tEIZrw8auziX5IE7dn-I,29
|
|
|
18
18
|
uiprotect/data/base.py,sha256=sn7IHKQN96uiZL6ImN1gdCHV97EpUmy-X7xWTUAtWsg,35054
|
|
19
19
|
uiprotect/data/bootstrap.py,sha256=OSPHu08p7Ys9KqEb8sq_LFufuECtF4lY7OnAYK27ngo,20454
|
|
20
20
|
uiprotect/data/convert.py,sha256=8h6Il_DhMkPRDPj9F_rA2UZIlTuchS3BQD24peKpk2A,2185
|
|
21
|
-
uiprotect/data/devices.py,sha256=
|
|
21
|
+
uiprotect/data/devices.py,sha256=O6rktT5HVKmq7KMTeDODsXYBvBKlu-J7l5-Wh-d1xCU,111345
|
|
22
22
|
uiprotect/data/nvr.py,sha256=8M-62AG4q1k71eX-DaFcdO52QWG4zO9X5Voj0Tj9D5A,46598
|
|
23
23
|
uiprotect/data/types.py,sha256=neimaKagTYMryaSaMS9hoqJYPHbwPi9M058HgJ9DNjM,18331
|
|
24
24
|
uiprotect/data/user.py,sha256=1o5gyPHafn4lHARpoSMD_NWbo5IbzGPfiSASwqqDvWs,7002
|
|
@@ -26,13 +26,13 @@ uiprotect/data/websocket.py,sha256=m4EV1Qfh08eKOihy70ycViYgEQpeNSGZQJWdtGIYJDA,6
|
|
|
26
26
|
uiprotect/exceptions.py,sha256=kgn0cRM6lTtgLza09SDa3ZiX6ue1QqHCOogQ4qu6KTQ,965
|
|
27
27
|
uiprotect/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
uiprotect/release_cache.json,sha256=NamnSFy78hOWY0DPO87J9ELFCAN6NnVquv8gQO75ZG4,386
|
|
29
|
-
uiprotect/stream.py,sha256=
|
|
29
|
+
uiprotect/stream.py,sha256=MWiTRFIhUfFLPA_csSrKl5-SkUbPZ2VhDu0XW2oVr-U,4800
|
|
30
30
|
uiprotect/test_util/__init__.py,sha256=Ky8mTL61nhp5II2mxTKBAsSGvNqK8U_CfKC5AGwToAI,18704
|
|
31
31
|
uiprotect/test_util/anonymize.py,sha256=f-8ijU-_y9r-uAbhIPn0f0I6hzJpAkvJzc8UpWihObI,8478
|
|
32
32
|
uiprotect/utils.py,sha256=jIWT7n_reL90oY91svBfQ4naRxo28qHzP5jNOL12mQE,20342
|
|
33
33
|
uiprotect/websocket.py,sha256=xCeEGB49IIBoAh1S8dqi6e8GM-SH66joTkf1BItq9vY,8093
|
|
34
|
-
uiprotect-6.
|
|
35
|
-
uiprotect-6.
|
|
36
|
-
uiprotect-6.
|
|
37
|
-
uiprotect-6.
|
|
38
|
-
uiprotect-6.
|
|
34
|
+
uiprotect-6.4.0.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
|
|
35
|
+
uiprotect-6.4.0.dist-info/METADATA,sha256=L4N3ZuvNpc0VA8mRu6pkVUWT8nxLDqnIp9C-j3NYvhY,11096
|
|
36
|
+
uiprotect-6.4.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
37
|
+
uiprotect-6.4.0.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
|
|
38
|
+
uiprotect-6.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|