1.0 ffmpeg 录制rtsp流保存为视频文件
ffmpeg -i "rtsp://admin:hlhs1234@{ip}:554/Streaming/Channels/101\" -t {sec} {resultfilename}
ffmpeg -i "rtsp://admin:hlhs1234@{ip}:554/Streaming/Channels/101\" -t 20 a.mp4
如上实例
ffmpeg -i "rtsp://地址" -t 录制秒数 文件名.MP4
1.1 ffmpeg 视频文件截图
ffmpeg -i {videopath} -ss 00:00:00 -frames:v 1 {picturepath}