1.进入nginx目录,cmd启动nginx:start nginx
stop nginx
nginx -s reload
nginx -s quit
2.验证nginx是否启动成功http:localhost:8080
3.
ffmpeg -re -i F:/video/yiqi.mp4 -vcodec libx264 -acodec aac -f flv rtmp://172.16.0.162:1935/live/home
ffmpeg -re -i "F:videoyiqi.mp4" -vcodec libx264 -vprofile baseline -acodec aac -ar 44100 -strict -2 -ac 1 -f flv -s 1280x720 -q 10 rtmp://172.16.0.162:1935/hls/test2
点播搞了2天才出来
配置文件:
rtmp {
server {
listen 1935;
application live {
live on;
}
application hls {
live on;
hls on;
hls_path temp/hls;
hls_fragment 8s;
}
application vod {
play temp/vod/; //!!!!!!!!!!!!!!!!!!!这一步一定要是temp文件夹
}
}
}
vlc播放 rtmp://172.16.0.162:1935/vod/orange.mp4。暂时还不能拖动,接下来再寻找方案