# cam_rtsp **Repository Path**: erkuo521/cam-rtsp ## Basic Information - **Project Name**: cam_rtsp - **Description**: 将相机的视频流推送到流媒体服务器 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: https://gitee.com/railway-ai/cam-rtsp - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-07-11 - **Last Updated**: 2023-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cam_rtsp ## 介绍 将相机的视频流推送到流媒体服务器 FFmpeg 推送摄像头 rtsp 流 ## 1. 下载 FFmpeg > 常用命令: ~~~ sh # 本地摄像头 查看 ffmpeg -list_devices true -f dshow -i dumy # 本地摄像头 推送 ffmpeg -f dshow -i video="XiaoMi USB 2.0 Webcam" -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -rtsp_transport tcp -f rtsp rtsp://127.0.0.1/test ffmpeg -f dshow -i video="XiaoMi USB 2.0 Webcam" -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -rtsp_transport tcp -f rtsp rtsp://47.102.120.239:8998/test # 查看 ffmpeg 编码方式 ffmpeg -h encoder=libx264 ffmpeg -h encoder=libx265 ~~~ [浅谈YUV444、YUV422、YUV420](https://www.vtron.com/news/no1239.html) [h264编码速度质量参数设置](https://zhuanlan.zhihu.com/p/454880249) ## 2. 下载 EasyDarwin 1. [EasyDarwin](https://github.com/EasyDarwin/EasyDarwin) 2. [EasyDarwin流媒体服务器的简介和搭建](https://www.cnblogs.com/zgqbky/p/12177207.html) ### 2.1 [天链 EasyDarwin 推流服务器](http://47.102.120.239:8999/#/) 1. **47.102.120.239** 服务器IP 2. **8999 [http]** EasyDarwin 管理端口 3. **8998 [rtsp]** 流媒体发送、接收端口 ### 2.2 安装位置 1. 安装在 **tl 云服务器上 [47.102.120.239]** 2. 安装目录: /var/EasyDarwin 3. 运行方式: **service 方式** ## 3. Opencv 的安装配置 1. Use gstreamer: building a recent gstreamer version 需要安装第三方库 2. **Use ffmpeg directly [当前方式]** standard tl compile environment ## 99. Other Reference ### 1. Python 查看opencv 的详细安装详细命令 > python -c "import cv2; print(cv2.getBuildInformation())" ### 2. Other Useful link [Mysql日志](https://www.jianshu.com/p/db19a1d384bc) [FFmpeg 推送摄像头 rtsp 流](https://blog.csdn.net/weixin_40448140/article/details/113180796) [python利用ffmpeg工具将视频帧推流至rtsp](https://www.cnblogs.com/Manuel/p/15006727.html) [rtsp视频流传输demo](https://zhuanlan.zhihu.com/p/446190374) [takidog/main.py](https://gist.github.com/takidog/2c981c34d5d5b41c0d712f8ef4ac60d3)