Page 1 of 1

Multiple multicast audio streams using the same port

Posted: 01 Mar 2013 12:14
by peplote
Hi all.

I want to know if there is a way to get only 1 of 2 audio streams that are at the same multicast address and port, but generated from 2 different PC's.
This is what i'm doing:

PC 1(sender with IP 192.168.1.2):
vlc "a.mp3" --sout udp:233.252.10.130:10000

PC 2(sender with IP 192.168.1.3):
vlc "b.mp3" --sout udp:233.252.10.130:10000

PC 3(receiver with IP 192.168.1.4):
vlc udp://@233.252.10.130:10000

If only PC 1 or PC 2 is sending i can hear correctly with PC 3. But if PC1 and PC2 are sending at the same time I cant hear neither of 2 audios... Is there a way i can filter by source IP, or MAC or assign a ID to the stream?
I say something like this to hear for example "a.mp3" from 192.168.1.2 PC:
PC 3(receiver):
vlc udp://@233.252.10.130:10000 src=192.168.1.2

Is this possible??? Thx very much.

Re: Multiple multicast audio streams using the same port

Posted: 01 Mar 2013 13:27
by TypX
you have to mux both into ts and then multicast the stream.

Re: Multiple multicast audio streams using the same port

Posted: 01 Mar 2013 16:44
by RĂ©mi Denis-Courmont
With raw UDP, you cannot do that. You have to use RTP instead.

Re: Multiple multicast audio streams using the same port

Posted: 02 Mar 2013 00:43
by peplote
Thx for the responses.
Ok. Then i will use RTP.
I dont know how to mux multiple streams into ts. Please, how would be the console code to control each of the streams?

Re: Multiple multicast audio streams using the same port

Posted: 04 Mar 2013 11:07
by peplote
With RTP i dont have the noise i had with UDP. I can hear one or other stream perfectly but i have been trying to control which of them to hear but i can't. RTP has some identifiers but I dont know how to access them with vlc or libvlc.
Please can someone give me a workaround?