This should restart NGINX and show no errors. Start NGINX with RTMP sudo systemctl stop rvice Add the following line at the top of the file to load the above created nf file. Change nf to load the above created nf file. sudo vim nfĮnable RTMP configuration in NGINX. This is the URL RTMP clients will connect to. The configuration will make RTMP listen on port 1935 and expose a RTMP URL named live. In this file will contain the RTMP server configuration. Enable RTMPĬreate file nf in /etc/nginx/. Status so far: NGINX is installed and running. Here the local server is configured to listen on port 80.ĭeleting this symlink in sites-enabled will deactivate the localhost server and NGINX will start, as it now no longer tries to start a server on port 80 (that is already in use by Apache). The actual server is located in /etc/nginx/sites-enabled/default.The master configuration file is nf, where the http connector is configured.The NGINX configuration is located in directory /etc/nginx/. To solve this “problem”, I’ll change NGINX configuration and deactivate the HTTP server listening on port 80. This is OK, as I do not want NGINX as a web server, just for RTMP and OBS. The port 80 is already used and NGINX startup fails. This fails in my case, as I already have a web server (Apache) running. sudo apt-get updateĭuring the installation, NGINX will be started.
#INSTALL GSTREAMER RASPBERRY PI STRETCH INSTALL#
It’s easier to install software via apt than having to compile it manually. If you are not on buster, consider upgrading Raspbian.
My Raspberry Pi is using the armv7l architecture (uname -m), and for that architecture, the RTMP module is available for Debian buster. NGINX installationĭebian has a package for NGINX and RTMP.
#INSTALL GSTREAMER RASPBERRY PI STRETCH UPDATE#
As my 2014 architecture is still valid, I decided to use my old solution architecture, review it and update it where necessary. 5+ years later and my architecture is still valid and an example of good solution architecture (and another proof of my visionary skills).Įnd of 2019 I decided to record videos: capture content of a computer with OBS and stream it to NGINX and recapture it with OBS or watch it with VLC.
I even managed to provide live streaming to iPhone devices via an event app I wrote! OBS was not a very well-known software in 2014, and today it is like the de-facto standard for YouTubers when it comes to streaming game videos. In the end, my idea was accepted and SITSP video was captured with OBS and streamed through NGINX to YouTube.
I had quite some time to convince the co-organizers that streaming to an app and YouTube at the same time is a good idea, and that OBS is a good software for achieving this. In 2014, I started using OBS as a streaming solution for an event in Sao Paulo. Some time passed since I last wrote about OBS.