Receiving two audio streams with RTP

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
krusty
New Cone
New Cone
Posts: 4
Joined: 13 Mar 2009 18:24
VLC version: 0.98a
Operating System: Windows

Receiving two audio streams with RTP

Postby krusty » 13 Mar 2009 19:05

Hello all,

I would like to know if it is possible to listen to two simultaneous audio streams via RTP. It seems to be possible, but I can't make it work.

I tried to do that in the two following ways:

Via VLC User Interface:
- went to "Media" -> "Advanced Open File" -> "Network" and entered the first stream address.
- then went to "show more options" -> "Play another media synchronously" and entered the second stream address.

and via SDP file:
v=0
o=root 282212517 282212517 IN IP4 127.0.0.1
s=music.sdp
c=IN IP4 127.0.0.1
t=0 0
m=audio 8000 RTP/AVP 0
a=rtpmap:0 PCMU/8000
m=audio 8002 RTP/AVP 0
a=rtpmap:0 PCMU/8000

In both cases VLC shows me (in the "Media Information ..." window) that I have two streams, but it only plays the first one. Am I missing something or does VLC not support this feature?

thanks,
ps: using VLC 0.9.8a
--
Cristiano Costa

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

Re: Receiving two audio streams with RTP

Postby Rémi Denis-Courmont » 14 Mar 2009 15:49

You can select which audio track to play from the audio track menu.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

krusty
New Cone
New Cone
Posts: 4
Joined: 13 Mar 2009 18:24
VLC version: 0.98a
Operating System: Windows

Re: Receiving two audio streams with RTP

Postby krusty » 16 Mar 2009 00:14

Thanks for your answer.

This is a nice feature that I didn't know. But I would like to MIX both streams and couldn't figure out how to do that. Is that possible?
--
Cristiano Costa

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Receiving two audio streams with RTP

Postby Jean-Baptiste Kempf » 16 Mar 2009 01:00

Thanks for your answer.

This is a nice feature that I didn't know. But I would like to MIX both streams and couldn't figure out how to do that. Is that possible?
No.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

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

Re: Receiving two audio streams with RTP

Postby Rémi Denis-Courmont » 16 Mar 2009 17:25

If you want to mix, you should open two separate streams, and let the OS do the job.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

krusty
New Cone
New Cone
Posts: 4
Joined: 13 Mar 2009 18:24
VLC version: 0.98a
Operating System: Windows

Re: Receiving two audio streams with RTP

Postby krusty » 16 Mar 2009 21:54

Hello,

Thanks again for your answers.

That is what I'm doing now, letting the OS mix them. However, this is not a very nice solution because I have to sync both audio streams, and to do that I have to send both streams and start both VLCs at the same time. Unfortunately, several things can delay one of the streams and desynchronize them.

I was expecting that VLC could sync them through RTCP packets, sent along with the streams. I'm looking forward to this feature in future releases.

Thanks,
--
Cristiano Costa


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 71 guests