rtmp { server { listen 1935; application live { # Enable livestreaming live on; # Disable recording record off; # Allow only this machine to play back the stream allow play 127.0.0.1; deny play all; # Start omxplayer and play the stream out over HDMI #exec /home/pi/stream.sh $name; } } }