matrice-streaming 0.1.14__py3-none-any.whl → 0.1.65__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.
- matrice_streaming/__init__.py +44 -32
- matrice_streaming/streaming_gateway/camera_streamer/__init__.py +68 -1
- matrice_streaming/streaming_gateway/camera_streamer/async_camera_worker.py +1388 -0
- matrice_streaming/streaming_gateway/camera_streamer/async_ffmpeg_worker.py +966 -0
- matrice_streaming/streaming_gateway/camera_streamer/camera_streamer.py +188 -24
- matrice_streaming/streaming_gateway/camera_streamer/device_detection.py +507 -0
- matrice_streaming/streaming_gateway/camera_streamer/encoding_pool_manager.py +136 -0
- matrice_streaming/streaming_gateway/camera_streamer/ffmpeg_camera_streamer.py +1048 -0
- matrice_streaming/streaming_gateway/camera_streamer/ffmpeg_config.py +192 -0
- matrice_streaming/streaming_gateway/camera_streamer/ffmpeg_worker_manager.py +470 -0
- matrice_streaming/streaming_gateway/camera_streamer/gstreamer_camera_streamer.py +1368 -0
- matrice_streaming/streaming_gateway/camera_streamer/gstreamer_worker.py +1063 -0
- matrice_streaming/streaming_gateway/camera_streamer/gstreamer_worker_manager.py +546 -0
- matrice_streaming/streaming_gateway/camera_streamer/message_builder.py +60 -15
- matrice_streaming/streaming_gateway/camera_streamer/nvdec.py +1330 -0
- matrice_streaming/streaming_gateway/camera_streamer/nvdec_worker_manager.py +412 -0
- matrice_streaming/streaming_gateway/camera_streamer/platform_pipelines.py +680 -0
- matrice_streaming/streaming_gateway/camera_streamer/stream_statistics.py +111 -4
- matrice_streaming/streaming_gateway/camera_streamer/video_capture_manager.py +223 -27
- matrice_streaming/streaming_gateway/camera_streamer/worker_manager.py +694 -0
- matrice_streaming/streaming_gateway/debug/__init__.py +27 -2
- matrice_streaming/streaming_gateway/debug/benchmark.py +727 -0
- matrice_streaming/streaming_gateway/debug/debug_gstreamer_gateway.py +599 -0
- matrice_streaming/streaming_gateway/debug/debug_streaming_gateway.py +245 -95
- matrice_streaming/streaming_gateway/debug/debug_utils.py +29 -0
- matrice_streaming/streaming_gateway/debug/test_videoplayback.py +318 -0
- matrice_streaming/streaming_gateway/dynamic_camera_manager.py +656 -39
- matrice_streaming/streaming_gateway/metrics_reporter.py +676 -139
- matrice_streaming/streaming_gateway/streaming_action.py +71 -20
- matrice_streaming/streaming_gateway/streaming_gateway.py +1026 -78
- matrice_streaming/streaming_gateway/streaming_gateway_utils.py +175 -20
- matrice_streaming/streaming_gateway/streaming_status_listener.py +89 -0
- {matrice_streaming-0.1.14.dist-info → matrice_streaming-0.1.65.dist-info}/METADATA +1 -1
- matrice_streaming-0.1.65.dist-info/RECORD +56 -0
- matrice_streaming-0.1.14.dist-info/RECORD +0 -38
- {matrice_streaming-0.1.14.dist-info → matrice_streaming-0.1.65.dist-info}/WHEEL +0 -0
- {matrice_streaming-0.1.14.dist-info → matrice_streaming-0.1.65.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice_streaming-0.1.14.dist-info → matrice_streaming-0.1.65.dist-info}/top_level.txt +0 -0
|
@@ -29,14 +29,39 @@ Example usage:
|
|
|
29
29
|
|
|
30
30
|
from .debug_streaming_gateway import DebugStreamingGateway, DebugStreamingAction
|
|
31
31
|
from .debug_stream_backend import DebugStreamBackend
|
|
32
|
-
from .debug_utils import
|
|
32
|
+
from .debug_utils import (
|
|
33
|
+
MockSession,
|
|
34
|
+
MockRPC,
|
|
35
|
+
create_debug_input_streams,
|
|
36
|
+
create_camera_configs_from_streams,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
# GStreamer debug classes (optional import)
|
|
40
|
+
try:
|
|
41
|
+
from .debug_gstreamer_gateway import DebugGStreamerGateway
|
|
42
|
+
from .gstreamer_benchmark import GStreamerBenchmark, BenchmarkResult
|
|
43
|
+
_GSTREAMER_DEBUG_AVAILABLE = True
|
|
44
|
+
except (ImportError, ValueError):
|
|
45
|
+
# ImportError: gi module not available
|
|
46
|
+
# ValueError: gi.require_version fails when GStreamer not installed
|
|
47
|
+
_GSTREAMER_DEBUG_AVAILABLE = False
|
|
33
48
|
|
|
34
49
|
__all__ = [
|
|
35
|
-
|
|
50
|
+
# Main debug gateway classes (support both single-threaded and worker modes)
|
|
51
|
+
"DebugStreamingGateway", # Modes 1 & 2 (CameraStreamer / WorkerManager)
|
|
36
52
|
"DebugStreamingAction",
|
|
53
|
+
# Backend and utilities
|
|
37
54
|
"DebugStreamBackend",
|
|
38
55
|
"MockSession",
|
|
39
56
|
"MockRPC",
|
|
40
57
|
"create_debug_input_streams",
|
|
58
|
+
"create_camera_configs_from_streams",
|
|
41
59
|
]
|
|
42
60
|
|
|
61
|
+
if _GSTREAMER_DEBUG_AVAILABLE:
|
|
62
|
+
__all__.extend([
|
|
63
|
+
"DebugGStreamerGateway", # Modes 3 & 4 (GStreamerCameraStreamer / GStreamerWorkerManager)
|
|
64
|
+
"GStreamerBenchmark",
|
|
65
|
+
"BenchmarkResult",
|
|
66
|
+
])
|
|
67
|
+
|