- Golang with Dep
- Linux only: Nginx with nginx-rtmp-module
- Windows only: Mingw-w64 (remember to add mingw-w64 bin folder to environment variables)
- FFmpeg
- Run
dep ensure
- Linux: Replace nginx.conf
- Run nginx (everytime reset computer)
- Window: run nginx.exe in nginx-window folder
- Run main.go from IDE or go run main.go
- Visit http://localhost:3000 to get stream key in settings after logged in
- Run ffmpeg to push stream:
ffmpeg -re -i [fileName] -strict experimental -c:v libx264 -preset veryfast -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 -ar 44100 -f flv rtmp://localhost:1935/app/[streamKey]
- Adjust chat box and player size
- Improve video player UI