diff --git a/random/pixel_streaming.md b/random/pixel_streaming.md new file mode 100644 index 0000000..2957e1e --- /dev/null +++ b/random/pixel_streaming.md @@ -0,0 +1,74 @@ +# Concise Multi-Camera RTMP Streaming Setup Guide + +## 1. Server Setup +1. Install Nginx with RTMP module on a computer or cloud server +2. Edit Nginx configuration file (usually at /etc/nginx/nginx.conf): + +```nginx +rtmp { + server { + listen 1935; + chunk_size 4096; + + application live { + live on; + record off; + push rtmp://localhost/show/stream1; + push rtmp://localhost/show/stream2; + push rtmp://localhost/show/stream3; + push rtmp://localhost/show/stream4; + } + + application show { + live on; + record off; + } + } +} +``` + +3. Start/restart Nginx: `sudo systemctl restart nginx` + +## 2. Pixel Device Setup +1. Install "Larix Broadcaster" on each Pixel from Google Play Store +2. In each Larix Broadcaster app: + - Tap ≡ > Connections > Add > RTMP + - URL: rtmp://[YOUR_SERVER_IP]/live/stream[1-4] + - (Use a different stream number for each device) + - Name the connection and save + +## 3. Viewer Setup +1. Create an HTML file with this content: + +```html + + +
+ + + + +