سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top