3

As in the question, I need to share a video in lan by broadcasting.

From server, I've tried with:

avconv -i video.mov -c:v libx264 -f mpegts udp://[destinationIP]:1234

From client I can play video with:

omxplayer udp://serverIP:1234

But this works only for one "connection".

What I need is to put the video stream in broadcast that all the clients can read.

Any ideas?

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
Luca Davanzo
  • 313
  • 1
  • 5
  • 14
  • Have you multiple client machines ? you are sending to only one destinationIP. You probally want to use MULTICAST, (or for a quick try BROADCAST) address at destination and client. – X Tian Feb 19 '14 at 11:39
  • I find the solution by my self, I've already answered to this question.. thanks! – Luca Davanzo Feb 19 '14 at 11:46

1 Answers1

2

I found the solution searching on web, especially reading this page.

For transmit video:

avconv -i video.mov -c:v libx264 -f mpegts udp://224.0.0.100:1234

From any client in the lan:

omxplayer udp://224.0.0.100:1234

The trick is to trasmit to the multicast group with the ip range:

. from 224.0.0.0
. to 239.255.255.255

'1234' is the port used to stream.

Luca Davanzo
  • 313
  • 1
  • 5
  • 14