公网视频流地址:
http://vfx.mtime.cn/Video/2019/02/04/mp4/190204084208765161.mp4
rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
http://cctvalih5ca.v.myalicdn.com/live/cctv1_2/index.m3u8
常见网络摄像机RTSP地址
https://blog.csdn.net/qq_45061258/article/details/111399841
海康
主码流: rtsp://admin:yswy123456@192.168.3.2:554/h264/ch1/main/av_stream
子码流: rtsp://admin:yswy123456@192.168.3.2:554/mpeg4/ch1/sub/av_stream
大华
主码流: rtsp://admin:yswy123456@192.168.3.2/cam/realmonitor?channel=1&subtype=0
子码流: rtsp://admin:yswy123456@192.168.3.2/cam/realmonitor?channel=1&subtype=1
ffmepg
(1)使用rtsp方式推流命令 ffmpeg -re -i "D:/record.mp4" -vcodec h264 -acodec aac -f rtsp -rtsp_transport tcp rtsp://127.0.0.1/live/test
(2)使用rtmp方式推流命令 ffmpeg -re -i "D:/abc.flv" -vcodec h264 -acodec aac -f flv rtmp://127.0.0.1:1935/live/123
ffmpeg -re -i source.200kbps.768x320.flv -vcodec h264 -acodec aac -f flv rtmp://172.16.204.139/live/test
截图
ffmpeg -rtsp_transport tcp -hide_banner -i "rtsp://admin:afmin123456@192.168.3.5:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1" -y -r 0.5 -t 1 -q:v 2 "D:/test.jpeg"
录像
ffmpeg -i "rtsp://admin:afmin123456@192.168.3.5:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1" -y -f mp4 -t 5 -s 1280x720 "D:/record.mp4"