一、软件准备由于nginx原生是为linux服务的,因此官方并没有编译好的windows版本可以下载,要在windows上使用nginx,要么下载源码进行编译,要么使用其他人已经编译好的文件。而要让nginx支持视频直播和点播,还需要第三方的nginx模块:nginx-rtmp-module所幸,已经有大神做好了nginx的编译,而且集成了很多nginx模块,其中就已经包括了nginx-rtmp-module。下载地址:/live/hks-vcodeclibx264-preset:vultrafast-tune:opy-fflvrtmp://localhost:/hls/mystream-loglevelquiet3.rtmp直播ffmpegffplay"rtmp://127.0.0.1:/hls/mystream"4.hls直播ffmpegffplay"http://127.0.0.1:/hls/mystream.m3u8"
5.开始录制http://127.0.0.1:/control/record/start?app=hls