Difference between revisions of "Nginx RTMP Ubuntu 22.04"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (Created page with "Sumber: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-video-streaming-server-using-nginx-rtmp-on-ubuntu-22-04 Install nginx sudo apt update sudo apt in...") |
Onnowpurbo (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 38: | Line 38: | ||
+ | Reload | ||
+ | sudo systemctl reload nginx.service | ||
+ | sudo systemctl status nginx.service | ||
+ | |||
+ | Dari Studio Streaming bisa menggunakan OBS, atau ffmpeg | ||
+ | |||
+ | sudo apt install ffmpeg | ||
+ | ffmpeg -re -i "Introducing App Platform by DigitalOcean-iom_nhYQIYk.mp4" -c:v copy -c:a aac -ar 44100 -ac 1 -f flv rtmp://IPSERVER-NGIX-RTMP/live/stream | ||
Latest revision as of 20:06, 14 December 2023
Install nginx
sudo apt update sudo apt install nginx
Cek
systemctl status nginx
Install Nginx RTMP
sudo apt update sudo apt install libnginx-mod-rtmp
Edit nginx.conf
sudo nano /etc/nginx/nginx.conf
Contoh,
. . . rtmp { server { listen 1935; chunk_size 4096; allow publish 127.0.0.1; deny publish all; application live { live on; record off; } } }
Reload
sudo systemctl reload nginx.service sudo systemctl status nginx.service
Dari Studio Streaming bisa menggunakan OBS, atau ffmpeg
sudo apt install ffmpeg ffmpeg -re -i "Introducing App Platform by DigitalOcean-iom_nhYQIYk.mp4" -c:v copy -c:a aac -ar 44100 -ac 1 -f flv rtmp://IPSERVER-NGIX-RTMP/live/stream