You are here

Video to internet from Mesh

23 posts / 0 new
Last post
kb0vzp
Video to internet from Mesh
hope this is the right category to post this.

Would it be possible to forward a video feed that we have viewing over the mesh network from a tower site 15 miles away to the internet where the nation weather service and the emergency manager can log into over the internet? I am being to it can but its not simple since they are on 2 different IP networks.
KG6JEI
If you have a PC plugged into
If you have a PC plugged into a mesh node LAN port and the WAN port of the mesh node plugged into an internet connection that PC can access the mesh camera and can then relay it to whatever 3rd party service you are using to stream  by following that softwares instructions.if your talking about directly exposing the camera to the internet from a specific mesh node there is a feature request for that but it is held back behind a few other ticks right now but is planned for future as an option. 
w8erd
Do you mean instead "WAN port
Do you mean instead "WAN port of the PC"?  Otherwise I do not understand this.

Bob W8ERD
kb0vzp
Update
Just an update on progress, I just installed an Air Router at the EOC that was flashed with AREDN firmware and that was all that was needed to bridge the gap between the 2 networks. I can now view the Axis camera thru the apps like normal.
AC2OG
AC2OG's picture
Streaming live TV over the Mesh

I setup a mesh with Ubiquity Bullet 5HP consisting of 7 nodes. One of the nodes is located up a hill where my radio club has also a DVB-T ATV repeater.
I would like to stream the  live DVB-T signal over the mesh. To this purpose I prepared a TV server with a DVB-T Tuner, Rpi and tvheadend app, a GPU transcoder from MPEG2 to h264 . All is going well locally and can  watch the TV  in a PC connected to the lan of the node where also the server tv is attached. The protocol used to stream down the mesh is http and the bandwith on the WiFi has been set  to 10 MHz . When I access to the server tv from a remote station over the mesh the video is freezing and interrupts.
Which is the cause and how to work it around?

Tnx for help and regards.
 

K5DLQ
K5DLQ's picture
what's the bandwidth setting
what's the bandwidth setting of the encoded h264 stream?  It sounds like it may be too high and saturating the mesh links.  Also, if your encoder can do h.265 (HEVC) it would be more efficient.
AC2OG
AC2OG's picture
Streaming live TV over the Mesh

Hello, tnx for prompt reply.
Here below the caracteristics of my transcoder:
Source video codec: MPEG2VIDEO 
Codec video: h264_omx: OpenMAX IL H.264 video encoder 
Bitrate video: 1200Kb/s
Codec audio: aac: AAC (Advanced Audio Coding)
Bitrate audio: 128Kb/s

if usefull this is my mesh
 

I3RKE-1 mesh status


         Quit 
 
Local Hosts Services Remote Nodes    ETX    Services

I3RKE-1.local.mesh / Leo   MeshChatARIVV
 I3RKE-CAM.local.mesh   admin
 I3RKE-RASPICAM.local.mesh   Pi
 ServerTV.local.mesh   ServerTV
 

IW3HRW-2.local.mesh / Angelo.local.mesh   2.18   MeshChatARIVV
IZ3JSF-1.local.mesh / Dino.local.mesh   2.18   MeshChatARIVV
 DVR-Dino.local.mesh   DVR
IQ3VV-2.local.mesh / ARIVV.local.mesh   2.30    
IU3BRB-1.local.mesh / Alberto.local.mesh   2.55   MeshChatARIVV
  Current Neighbors    LQ NLQ TxMbps    Services Previous Neighbors When

IR3UFR-1.local.mesh / PIZZOC1.local.mesh   89% 94% 16.9    
 RASPI-PBX.local.mesh   Asterisk
IR3UFR-2.local.mesh / PIZZOC2.local.mesh   94% 89% 23.5    
 UDOOX86TS3Server.local.mesh    
 

I am operating from italy holding also the callsign: I3RKE

AE6XE
AE6XE's picture
If you upload a basic diagram
If you upload a basic diagram of the 7 mesh nodes and the links established between these nodes, we'd see the big picture view and can suggest how to optimize links and channels in use.   Generally if there are multiple hops and multiple nodes all on the same channel, then the handshaking to coordinate access reduces the latency, and can be severe.  This can cause drop outs for voip and video streams.   

In a well designed mesh with links separated on different channels, the latency can be very and be consistent <20ms over many hops and 100miles+.   With lots of channel sharing, the latency can vary between 20ms and over 1 sec -- high range.   voip and video streams drop out and can get to the point of being unusable. 
AC2OG
AC2OG's picture
We have currently 2 nodes on
We have currently 2 nodes on the top of a hill (IR3UFR-1 and IR3UFR-2) each one covering a solid angle of 60 deg.
All the other nodes pass through the nodes on the hill. I understand that this isn't ideal but at the moment this is the only way to connect the nodes.
 

I3RKE-1 mesh status


         Quit 
 
Local Hosts Services Remote Nodes    ETX    Services

I3RKE-1.local.mesh / Leo   MeshChatARIVV
 I3RKE-CAM.local.mesh   admin
 I3RKE-RASPICAM.local.mesh   Pi
 ServerTV.local.mesh   ServerTV
 

IW3HRW-2.local.mesh / Angelo.local.mesh   2.18   MeshChatARIVV
IZ3JSF-1.local.mesh / Dino.local.mesh   2.18   MeshChatARIVV
 DVR-Dino.local.mesh   DVR
IQ3VV-2.local.mesh / ARIVV.local.mesh   2.30    
IU3BRB-1.local.mesh / Alberto.local.mesh   2.55   MeshChatARIVV
  Current Neighbors    LQ NLQ TxMbps    Services Previous Neighbors When

 

IR3UFR-1.local.mesh / PIZZOC1.local.mesh   89% 94% 16.9    
 RASPI-PBX.local.mesh   Asterisk
IR3UFR-2.local.mesh / PIZZOC2.local.mesh   94% 89% 23.5    
 UDOOX86TS3Server.local.mesh    
 
AC2OG
AC2OG's picture
The distance of the nodes
The distance of the nodes from the two IR3UFR is 7 KM for three nodes and for the other two is 30 KM
AC2OG
AC2OG's picture
moreover please note that at
moreover please note that at the moment, for a testing period, the TVserver is attached to my node I3RKE-1. So, if other nodes try to access the TVserver, they have to go through IR3UFR-2 to reach I3RKE-1 and downstream the video.
w6bi
w6bi's picture
Video from mesh to Internet

We've had to set this up to stream video of recent brushfires from hilltop webcams to a YouTube channel for viewing by the public and some public safety agencies.  One example is here.

In order to stream successfully we had to set each camera resolution to 720p, and frame rate down to about 10 frames per second.  A standard 1920 x 1080 x 30 fps video stream is about 4.2 Megabits/second.   By making the adjustments above the video stream can be held to 600-800 kbps.

To stream those streams out to YouTube, we followed this instructional page:  http://www.georgetimmermans.com/blog/streaming-rtsp-to-youtube-live   It took some research and loading of software, but it works very well.

Since each camera has a different RTSP URL, I've copied all of them into a text file and can copy and paste them to stream any of our cameras at a moment's notice.

Good luck!

73
Orv W6BI
 

AC2OG
AC2OG's picture
Streaming live TV over the Mesh
Tnx W6BI, I am streaming at 1200Kb/s now. I'll try to go down to 800Kb/s. On the other side I can't (or I don't know how to do it) change the fps of the signal out of DVB-T ! 
May be K5DLQ or AE6XE can suggest some solutions !
73 de Leo I3RKE / AC2OG
w6bi
w6bi's picture
Changing framerate
We haven't implemented it yet, but when we need to stream a TV channel out on the mesh, similar to what you want to do, the scheme will be to bring the video stream into a computer, lower the frame rate using ffmpeg, then stream it out again.  Google "ffmpeg change frame rate" to find information on how to implement it.

Orv W6BI
K5DLQ
K5DLQ's picture
Yes.  I was going to suggest
Yes.  I was going to suggest attaching a RPi to the same node as the camera and streaming it to ffmpeg on the pi to drop the frame rate.
AC2OG
AC2OG's picture
I have installed FFmpeg on
I have installed FFmpeg on the Rpi running tvheadend and, in order to lower the fps to 10, with SSH tried the script:
ffmpeg -i input.avi -r 10  output.avi
got the message: 
tvserver:~ # input.avi: No such file or directory

help in using ffmpeg tools.needed.
 
w6bi
w6bi's picture
Input file
"input.avi" is just the name of the file you want to convert.      I haven't investigated yet how you grab a video stream.  Got any ideas, Darryl?

Orv W6BI
K5DLQ
K5DLQ's picture
I think you would need to
I think you would need to spec the input as the stream from the tuner.   something like:
ffmpeg -i rtsp://@k5dlq-dv-stream-device:62159 ........ (other options)
AC2OG
AC2OG's picture
I tried with:
I tried with:
ffmpeg -i rtsp://10.133.133.254:9981/dev/dvb/DVB-T #0 -r 10 rtsp://10.133.
133.254:9981/dev/dvb/DVB-T #0
and got this message:
rtsp://10.133.133.254:9981/dev/dvb/DVB-T: Server returned 400 Bad Request
w6bi
w6bi's picture
rtsp logins
Some cameras can be configured to not require a login/password, but many cannot.  Check your camera's UI and see if you can turn off required logins.

If not, your URL will have to be something like this:  

rtsp://10.133.133.254:9981//user=<a user name you set up>_password=<password for that user_channel=0_stream=dev/dvb/DVB-T:

iSpy has a great listing of cameras and the URLs they present via RTSP. Try looking there for your camera:  https://www.ispyconnect.com/sources.aspx
 
AC2OG
AC2OG's picture
Tnx a lot. Why do you mention
Tnx a lot. Why do you mention CAM ?
I'm trying to stream down the mesh a DVB-T signal from a tuner (Sony CX2880) installed on the Rpi where a tvheadend app (TV server) is running.
tvheadend is viewing the tuner as : adapter # 0 or DVB-T #0. 
It seems to me that the TVserver is not refusing the connection (as if username and password were missing), but is asking for a different request. Anyway I'll try also the script as you suggested.
K5DLQ
K5DLQ's picture
So, it sounds like the tuner

So, it sounds like the tuner is sending to an application called tvheadend on the pi.   It sounds like you need to determine if tvheadend can OUTPUT an RTSP or HTTP stream with downconversion settings to limit the size/framerate of the OUTPUT stream (so no ffmpeg needed).

Sorry.   Not familiar with tvheadend.

AC2OG
AC2OG's picture
Hi K5DLQ,
Hi K5DLQ,
you understood well! Tvheadend is a TV webserver application. Just now I discovered that there is an add on of tvheadend that allow to transcode the DVB-T (mpeg2 coded) stream to one coded h264 using the GPU of the Rpi. The output stream is HTTP ; the add on allow to configure a profile of the stream with lowered down  speed to 500Kb/s for the video component and 32Kb/s for the audio. In this way the stream is passing well from the node where the TV server is connected to  a PC connected to the LAN of an neighbor node.  Unfortunately not to a remote node where it is freezed and interrupted. Too big latency?
I would like to understand if this is a limit of the mesh or of the way I am streaming .

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer