# RTSP **Repository Path**: NativeBase/rtsp ## Basic Information - **Project Name**: RTSP - **Description**: 海康摄像头rtsp转视频 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-29 - **Last Updated**: 2026-02-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 安装依赖 ``` pip install -r requirements.txt ``` ### 启动服务 ``` uvicorn main:app --host 0.0.0.0 --port 8006 --reload uvicorn main:app --host 0.0.0.0 --port 8006 --timeout-keep-alive 300 --ws-ping-interval 30 --ws-ping-timeout 10 ``` ### 无网离线-安装 - 步骤 A:在有网络的机器上下载所有依赖 ```bash # 下载所有依赖包到指定目录 pip download -r requirements.txt -d ./packages # 或使用国内镜像加速下载: pip download -r requirements.txt -d ./packages -i https://mirrors.aliyun.com/pypi/simple/ ``` - 步骤 B:将 packages 文件夹复制到离线机器 使用 U盘、网络共享等方式将整个 packages 文件夹复制到 C:\code\hkvideo\ 目录 - 步骤 C:在离线机器上安装 ```bashe cd C:\code\hkvideo pip install --no-index --find-links=./packages -r requirements.txt ```