nick8967
Posts: 116
Joined: Fri Mar 25, 2016 11:02 pm

Sending real time video from one room to the other

Wed Nov 06, 2019 2:44 pm

Hello, I want to send live streaming video from Raspberry Pi 3 B+ and the camera from one floor to the other. The problem is that the onboard WiFi that Raspberry has does not work properly.. Maybe the distance is too large... Maybe because they are not on the same floor... I don't know. Any solution to this? Should I use 4G modem? Or a WiFi module with high gain antenna? Something else?

User avatar
topguy
Posts: 6060
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Sending real time video from one room to the other

Wed Nov 06, 2019 3:15 pm

An ethernet cable works best, also it allows you to verify that the streaming works if the bandwidth is good enough.
And you can measure the bandwidth needed so you know what standard Wifi adaptors you might use.
Or what about Powerline networking ?

nick8967
Posts: 116
Joined: Fri Mar 25, 2016 11:02 pm

Re: Sending real time video from one room to the other

Wed Nov 06, 2019 3:42 pm

From a google search a powerline interfaces with ethernet, so I have to send all the information through that. Because I want to implement bidirection communication, meaning, not only get information (images) from the Raspberry + the camera, but also sending commands from my laptop to the raspberry+camera, is sockets programming a solution? Is there any other API/GUI more appropriate or github source code for that?
Thank you...

trejan
Posts: 1103
Joined: Tue Jul 02, 2019 2:28 pm

Re: Sending real time video from one room to the other

Wed Nov 06, 2019 3:50 pm

Powerline networking is a potential headache. The signal doesn't like travelling through circuit breakers so if you've got different circuits for each floor then expect throughput to be bad. It is also very prone to interference from other devices in the building as well. If it works then great but diagnosing problems with it can be difficult.

If you want something ready to deploy then look at https://motion-project.github.io/

nick8967
Posts: 116
Joined: Fri Mar 25, 2016 11:02 pm

Re: Sending real time video from one room to the other

Wed Nov 06, 2019 7:15 pm

Is there a way to calculate the bandwidth usage If I manage to send video? I mean the (bandwidth I use)/(total bandwidth capacity)
And I need to build a function in python that every time I consume bandwidth to capture this. I am googling it, but I would be grateful if you could help me.

Thanks...

User avatar
topguy
Posts: 6060
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Sending real time video from one room to the other

Wed Nov 06, 2019 7:20 pm

Dont overthink it. It seems like you right now havent setteled on how to stream the video between two Pis.

There is a very simple command called "dstat" that will print out every second a line with CPU usage, disk usage and network traffic.

Code: Select all

sudo apt install dstat

pi@raspberrypi:~ $ dstat
You did not select any stats, using -cdngy by default.
--total-cpu-usage-- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai stl| read  writ| recv  send|  in   out | int   csw
  0   0 100   0   0| 566B 3762B|   0     0 |   0     0 | 258    76
  3   2  67  28   0|   0   176k| 684k   43k|   0     0 |1904  1948
 11   5  84   0   0|   0  6144k|5359k  176k|   0     0 |  11k   12k
 11   8  73   8   0|   0  5640k|5452k  145k|   0     0 |  10k   10k
 13   8  79   0   0|   0  4376k|5288k   92k|   0     0 |9412  8737
  9   7  84   0   0|   0  6688k|5375k  125k|   0     0 |  10k   11k
 13   7  80   0   0|   0  4096k|2959k   80k|   0     0 |8398  6879
  9   6  85   0   0|   0  2872k|2406k   44k|   0     0 |5810  4238 ^C
And another tool like "iperf3" can be used to test the max-speed you can get between two machines.

User avatar
clicky
Posts: 419
Joined: Thu Oct 25, 2012 7:34 am

Re: Sending real time video from one room to the other

Thu Nov 07, 2019 10:42 am

This is something I bookmarked some time ago and still quite keen to give it a go when I get chance:

https://befinitiv.wordpress.com/wifibro ... ideo-data/

Return to “General discussion”