随笔 - 669  文章 - 0  评论 - 56  阅读 - 320万

python rtsp

 

rtsp 拉流服务容器 
docker pull aler9/rtsp-simple-server
docker run  -it -e RTSP_RTMPDISABLE=true -e RTSP_HLSDISABLE=true -e RTSP_PROTOCOLS=tcp -p 8081:8554 aler9/rtsp-simple-server
docker start xxxxxx

 

ffmpeg -re -stream_loop -1 -i 2.mp4 -c copy -f rtsp rtsp://192.168.1.100:8554/mystream

 

rtmp://192.168.1.100:8554//mystream
ffplay -fflags nobuffer rtsp://192.168.1.100:8554/mystream

 

https://ruidu-dev2.oss-cn-shanghai.aliyuncs.com/images/2022/03/29/16485182498655957.mp4
通过文档命令执行:
python restapi.py --rtsp_url 'https://ruidu-dev2.oss-cn-shanghai.aliyuncs.com/images/2022/03/29/16485182498655957.mp4' --post_url 'http://www.yushangcc.com:81/video_data'
docker 容器地址:/app/yolov5/utils/flask_rest_api/static

posted on   adolfmc  阅读(405)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示