Tools & software needed FFmpeg, NGINX, Python, opencv
https://github.com/sneha358/video_streaming-using-RTMP.git
Streaming(RTMP) using FFmpeg --> Nginx server --> Video(RTMP) on vlc media player
Instalation of NGINX Server
- Update pakages
$ sudo apt update && sudo apt upgrade -y- Install nginx server
$ sudo apt install nginx -y- Start nginx server
$ sudo systemctl start nginx- Enable NGINX to Start on Boot (Optional)
$ sudo systemctl enable nginx- Check NGINX Status
$ sudo systemctl status nginx
note-- Press q to exit the status view.- Configure Firewall (if needed)
$ sudo ufw allow 'Nginx Full'
note-- ufw is not installed, install it using:
$ sudo apt install ufw -y- Stop or Restart NGINX
$ sudo systemctl stop nginx
$ sudo systemctl restart nginx To watch video we need media player which support RTMP. Here we use VLC Paste RTMP url in vlc media player(more options --> new stream)
rtmp://Your_SERVER_IP_address/live
1. start server
2. run python script for streaming
3. play in vlc
Happy to learn