Live streaming with Gopro and GL-AXT1800

Thanks Bruce for his suggestions and here is a guide of how to set up live streaming using GL-AXT1800 and a Gopro cam.

You need:

  • Gopro Heros 7/8/9/10/11 which support live streaming
  • GL-AXT1800 router with firmware 4.1
  • A player which can play rtmp streams on your phone or pc

Step 1: Set up AXT1800 nginx server

AXT1800 comes with nginx server but no rtmp protocol compile. Pls upload this ipk to your router and install it.
nginx-ssl_1.17.7-2_arm_cortex-a7.ipk.zip (420.7 KB)

opkg update
opkg install nginx-ssl_1.17.7-2_arm_cortext-a7.ipk --force-reinstall 

Then add the rtmp config to the end of /etc/nginx/nginx.conf

rtmp {
        server {
                listen 1935;
                chunk_size 4096;
                application live {
                        live on;
                        record off;
                }
        }
}

Then use nginx -t to check if the config is valid and restart nginx.

root@GL-AXT1800:~# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
root@GL-AXT1800:~# /etc/init.d/nginx restart

#Step 2: Config Gopro

You need to connect Gopro to AXT1800’s wifi.
Click Live Stream

Then choose RTMP

Then input the RTMP URL

The live is what we configured previous in the router and the me is a key that can be anything

Then in the app you can click “Set Up Live Stream”

#Step 3: View the stream

In the app the next screen you have “Go Live” button. Click it to start live streaming

Now you can view the video stream using a player e.g. vlcplayer

rtmp://192.168.8.1:1935/live/me

5 Likes

Will this procedure work for other RTMP streaming devices, such as some webcams?

I do not work for and I am not directly associated with GL.iNet

1 Like

I suppose so. Which cam model do you have in mind?

I am thinking to set up RTMP surveillance cameras (not really webcams), but have not decided on a camera model. It would be ideal if the camera video/audio could be recorded on the router also.

Hi,

first if i test my nginx config with nginx -t i got synatx is ok. But the test got errors.

I must add on the top these comment to get run my rtmp server:
events {
}

after i add this an restart the service i got at the test a successfull.

if anyone other got the problem.

1 Like