ffmpeg
-i"rtsp://admin:a1234567@192.168.2.128:554/cam/realmonitor?channel=1&subtype=1"? -vcodec copy -acodec copy
-vbsf h264_mp4toannexb? -f hls -hls_time 2 -hls_wrap 10"D:\xampp\htdocs\hb.m3u8"
這里采集軟件和存放的播放文件一定是在同一臺服務(wù)器上卓囚。
查看生成的文件:
開啟本地的http服務(wù)后訪問:播放文件所在目錄為http服務(wù)的根目錄。