Avconv broadcasting video stream

Luca Davanzo picture Luca Davanzo · Feb 18, 2014 · Viewed 8.5k times · Source

I'm doing some test for broadcasting a video stream.

I try with:

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

And from "destinationIP" I can play the stream.

But, how can I specify a range of IP and not a single IP?

Answer

Luca Davanzo picture Luca Davanzo · Feb 19, 2014

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:

mplayer 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.