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