

You can use the Live Streamer for GoPro Heros app, which is also available for the Raspberry Pi, if you want to live stream from GoPro cameras. For instance, the following two urls represent two live streams: rtmp://192.168.1.105/live/1 Raspberry Pi is just a computer to process the data before and after sending to the server.

Each “key” represents a new video stream. No, RPi is not mandatory for IOT device to send data to cloud. You can use a different string instead of “key”. The RTMP url looks like this (the IP address has to be replaced with your IP address): rtmp://192.168.1.105/live/key The RTMP server is now ready for receiving streams. The command should return a single line indicating that the server is listening at port “ 1935” (red letters). Then we restart the nginx server: sudo systemctl stop rviceįinally we can check if everything is correctly setup: netstat -an | grep 1935 With the following line (the location in the file is not important): include /etc/nginx/nf Then we tell the nginx configuration about the RTMP file by modifying the “nf” file sudo nano /etc/nginx/nf Therefore we create a new file “nf”: sudo nano /etc/nginx/nf

If you are running a web server on your Pi (for instance an Apache instance) then the following lines can be used for deactivating the nginx web server which listens on port 80 (generally you can just copy and paste the lines into the terminal): sudo rm sites-enabled/default Sudo apt-get install nginx libnginx-mod-rtmp Therefore open a terminal on the Raspberry Pi and copy and paste the following lines: sudo apt-get update As a first step we have to update the packages and install the nginx webserver.
