海康摄像头
ffmpeg
h5前端用Video.js
IIS 支持 m3u8
加上俩 MIME 类型就可以了
<mimeMap fileExtension=".m3u8" mimeType="application/x-mpegURL" />
<mimeMap fileExtension=".ts" mimeType="video/MP2T" />
#linux
ffmpeg -i "rtsp://admin:hik12345@192.168.1.156:554" -c copy -f hls -hls_time 2.0 -hls_list_size 1 -hls_wrap 15 /opt/nginx-1.9.5/html/hls/test.m3u8
#windows
ffmpeg -i "rtsp://admin:hik12345@192.168.1.156:554" -c copy -f hls -hls_time 2.0 -hls_list_size 1 -hls_wrap 5 D:\soft\ffmpeg-20180227-fa0c9d6-win64-static\bin\hls\test.m3u8