uiprotect 6.3.0__py3-none-any.whl → 6.3.2__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/_compat.py +9 -4
- uiprotect/stream.py +2 -6
- {uiprotect-6.3.0.dist-info → uiprotect-6.3.2.dist-info}/METADATA +2 -1
- {uiprotect-6.3.0.dist-info → uiprotect-6.3.2.dist-info}/RECORD +7 -7
- {uiprotect-6.3.0.dist-info → uiprotect-6.3.2.dist-info}/WHEEL +1 -1
- {uiprotect-6.3.0.dist-info → uiprotect-6.3.2.dist-info}/LICENSE +0 -0
- {uiprotect-6.3.0.dist-info → uiprotect-6.3.2.dist-info}/entry_points.txt +0 -0
uiprotect/_compat.py
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
"""Compat for external lib versions."""
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
from
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
from functools import cached_property
|
|
7
|
+
else:
|
|
8
|
+
try:
|
|
9
|
+
from propcache.api import cached_property
|
|
10
|
+
except ImportError:
|
|
11
|
+
from propcache import cached_property
|
|
7
12
|
|
|
8
13
|
__all__ = ("cached_property",)
|
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.
|
|
3
|
+
Version: 6.3.2
|
|
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)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
uiprotect/__init__.py,sha256=GDRM9WvWUBbOyBVgltq6Qv8i7LVdWEbG8q5EzYvOFbE,636
|
|
2
2
|
uiprotect/__main__.py,sha256=C_bHCOkv5qj6WMy-6ELoY3Y6HDhLxOa1a30CzmbZhsg,462
|
|
3
|
-
uiprotect/_compat.py,sha256=
|
|
3
|
+
uiprotect/_compat.py,sha256=HThmb1zQZCEssCxYYbQzFhJq8zYYlVaSnIEZabKc-6U,302
|
|
4
4
|
uiprotect/api.py,sha256=RkaGtvzIkWg0OCM429uKnqklHbqruCjVTwo-iEo5uKU,67954
|
|
5
5
|
uiprotect/cli/__init__.py,sha256=1MO8rJmjjAsfVx2x01gn5DJo8B64xdPGo6gRVJbWd18,8868
|
|
6
6
|
uiprotect/cli/backup.py,sha256=ZiS7RZnJGKI8TJKLW2cOUzkRM8nyTvE5Ov_jZZGtvSM,36708
|
|
@@ -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.3.
|
|
35
|
-
uiprotect-6.3.
|
|
36
|
-
uiprotect-6.3.
|
|
37
|
-
uiprotect-6.3.
|
|
38
|
-
uiprotect-6.3.
|
|
34
|
+
uiprotect-6.3.2.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
|
|
35
|
+
uiprotect-6.3.2.dist-info/METADATA,sha256=QeCe6ORJftN18LyU4zyFp6j-dheRHFid3qWA82AvWbw,11096
|
|
36
|
+
uiprotect-6.3.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
37
|
+
uiprotect-6.3.2.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
|
|
38
|
+
uiprotect-6.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|