Under Windows build environment to achieve plug flow with FFmpeg + nginx + rtmp

1. Download the file:

Link: https: //pan.baidu.com/s/1c2LmIHHw-dwLOlRN6iTIMg
extraction code: g7sj
2, unzip the file:

  Extract to nginx-1.7.11.3-Gryphon

3, into the windows of cmd; 

> Cd nginx-1.7.11.3-Gryphon // into the directory of nginx

> Nginx.exe -c conf \ nginx-win-rtmp.conf // run rtmp profile 

     Note: At this point in the command line will always perform in close and do not ignore

Test: browser and enter localhost: 80, check whether nginx started successfully!
4, plug flow:

ffmpeg -re -i 123.mp4 -vcodec libx264 -acodec aac -f flv rtmp: // your ip address: 1935 / live / home

5, pull stream:

Open the computer vlc player enter the address: rtmp: // your ip address: 1935 / live / home  

 

Guess you like

Origin www.cnblogs.com/liangblog/p/11122237.html