top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Live video streaming using raspberry pi-3 and nginx-rtmp server over the internet (without port forwarding)?

0 votes
335 views

I am doing live video streaming over the internet with raspberry pi-3 from any where i want to access the live stream (without port forwarding).

So finally I have setup the nginx-rtmp server AWS on Ubuntu, and successfully completed single client streaming pi camera feed with raspberry pi-3 on the Internet using this server but the delay is about 6 to 9 seconds.

Our Approach

Set up nignx rtmp webserver on AWS EC ubuntu 16.04. sucessfully complete single client streaming Pi Camera Feed with raspberry pi 3 on internet using this server.

Our Problem
We are not able to stream multiple Pi camera with different raspberry pi 3 on nginx rtmp server with delay. We facing a larger delay of 8~10 second.

We want

We want to setup nginx rtmp server with multiple client (Raspberry Pi /Android APP user) which can handle all client load balance.

we have setup configuration file on linux based nginx rtmp server as follows:-

#user  nobody;
worker_processes  1;

error_log  logs/rtmp_error.log debug;
pid        logs/nginx.pid;

events {
    worker_connections  1024;
}

rtmp {
         server {
                listen 1935;
                chunk_size 4096;
                buflen 1ms;
                application cam_id {
                        live on;
                         allow publish 127.0.0.1;
                        allow publish all;
                        allow play all;
                        record all;
                        record_path /home/video_recordings;
                        record_unique on;
                        hls on;
                        hls_nested on;
                        hls_path /home/hls;
                        hls_fragment 10s;
                        dash on;
                        dash_path /home/dash;
                        dash_nested on;
        }

    }
}

We can play video streaming with

rtmp://server-ip/cam_id/live
posted Apr 5, 2019 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+2 votes

In my AWS Environment:
1. What is the optimum utilization of NGINX?
2. What are the features of NGINX that I can implement?

0 votes

How to run Java Oracle on command line on Raspberry Pi? Linux terminal, not installation...

+1 vote

After testing and looking at the kernel source, I realize that this mapping:

iptables -t nat -I PREROUTING -p tcp -m tcp --dport 30000:40000 -j DNAT --to [local_ip]:10000-2000

Doesn't do a one-to-one port mapping
e.g.:

100.0.0.1:30000 > 192.168.0.5:10000
100.0.0.1.30001 > 192.168.0.5:10001
100.0.0.1.30002 > 192.168.0.5:10002

I was wondering if it was possible to do the 1:1 port range forwarding to different port ranges or if you have to use individual rules.

+1 vote

Consider a case where eNB has only one IP address and it has to act as both SCTP server and SCTP client. Then, how can we do this using same port number as source and destination "36422" (as mention in 3GPP spec 36.422)?

...