- Added endpoints to start and stop RTSP streaming for cameras in the API. - Enhanced CameraManager and CameraStreamer classes to manage RTSP streaming state and processes. - Updated API documentation to include new RTSP streaming commands. - Modified Docker configurations to include FFmpeg for RTSP streaming support. - Adjusted MediaMTX settings for improved stream handling and timeout configurations.
21 lines
718 B
Docker
21 lines
718 B
Docker
# API development image with Huateng Vision SDK (local bundle)
|
|
FROM python:3.11-slim
|
|
|
|
# Install system dependencies required by SDK and tooling
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
bash ca-certificates tar sudo \
|
|
libusb-1.0-0 libgl1 libx11-6 libxext6 libxcb1 libgtk-3-0 \
|
|
libusb-1.0-0-dev udev \
|
|
ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Set environment variables for library paths and Python path
|
|
ENV LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/lib
|
|
ENV PYTHONPATH=/app:/app/camera_sdk
|
|
|
|
# The actual app code and SDK will be bind-mounted by docker-compose at runtime
|
|
# SDK installation will be handled in the docker-compose command
|