<div dir="ltr"><div><div><div><div><div><div><div><div><div>I need to receive multiple 
RTP streams and combine them to one output.   The problem is that when I
 run ffmpeg, it only opens the first rtp stream multicast address, and 
doesn't open any subsequent RTP URLs.   So ffmpeg doesn't get any input 
unless some packets come in on the first stream.   My application is 
such that packets are bursty and may come in at any time on any of the 
RTP address URLs.  <br><br></div>I went through the code and the socket 
is opened in non-blocking mode but ff_id3v2_read blocks waiting for a 
header, so the other RTP streams dont get accessed.<br><br></div>I need to find a fix for this as soon as possible, so any help is appreciated.<br><br></div>I have three senders:<br><br></div>Sender one:<br>avconv -v 0 -f alsa -ac 2 -ar 48000 -i hw:1,0 -acodec mp2 -f rtp rtp://<a href="http://224.255.0.1:11111" target="_blank">224.255.0.1:11111</a><br><br></div>Sender Two:<br>avconv -v 0 -f alsa -ac 2 -ar 48000 -i hw:1,0 -acodec mp2 -f rtp rtp://<a href="http://224.255.0.2:11111" target="_blank">224.255.0.2:11111</a><br><br></div>Sender Three:<br>avconv -v 0 -f alsa -ac 2 -ar 48000 -i hw:1,0 -acodec mp2 -f rtp rtp://<a href="http://224.255.0.3:11111" target="_blank">224.255.0.3:11111</a><br><br></div>Recever:<br>avconv -v 48 -f mpegts -i udp://<a href="http://224.255.0.3:11111" target="_blank">224.255.0.3:11111</a> -f mpegts -i udp://<a href="http://224.255.0.2:11111" target="_blank">224.255.0.2:11111</a> -f mpegts -i udp://<a href="http://224.255.0.3:11111" target="_blank">224.255.0.3:11111</a> out.mp2<br><br></div>I need ffmpeg to open and listen on all multicast addresses (listed above) simultaneously for input from anyone of them.<br><br></div>Thanks<br></div>