Multiple multicast audio streams using the same port

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
peplote
New Cone
New Cone
Posts: 3
Joined: 01 Mar 2013 11:59

Multiple multicast audio streams using the same port

Postby peplote » 01 Mar 2013 12:14

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.

TypX
Developer
Developer
Posts: 287
Joined: 21 Oct 2011 15:59

Re: Multiple multicast audio streams using the same port

Postby TypX » 01 Mar 2013 13:27

you have to mux both into ts and then multicast the stream.

Rémi Denis-Courmont
Developer
Developer
Posts: 15142
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Multiple multicast audio streams using the same port

Postby Rémi Denis-Courmont » 01 Mar 2013 16:44

With raw UDP, you cannot do that. You have to use RTP instead.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

peplote
New Cone
New Cone
Posts: 3
Joined: 01 Mar 2013 11:59

Re: Multiple multicast audio streams using the same port

Postby peplote » 02 Mar 2013 00:43

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?

peplote
New Cone
New Cone
Posts: 3
Joined: 01 Mar 2013 11:59

Re: Multiple multicast audio streams using the same port

Postby peplote » 04 Mar 2013 11:07

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?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 10 guests