[Live-devel] Multiple sources question

Ivo Vachkov ivo.vachkov at gmail.com
Tue Apr 28 06:25:18 PDT 2009


I'm using Ubuntu Linux with 2.6.27-11-generic (Ubuntu Desktop 8.10)
for my tests and the multicast addresses of the streams are different
(239.255.255.10 and 239.255.255.20). However the port is the same.
Looks like a reasonable explanation for the problem. I will confirm it
later today. Thanks.

I also found another problem with that source code i posted in the
original message. The RTSP Server just provides information for the
multicast streams. Which is not my intention. Can you provide me with
pointers or additional information how to construct Multicast-to-RTSP
gateway, i.e. I have a multicast streams that I want to restream using
unicast RTSP towards another network.

Thanks in advance.

On Tue, Apr 28, 2009 at 11:01 AM, Ross Finlayson <finlayson at live555.com> wrote:
>> With one source everything is working fine. However when I have
>> several multicast sources I get them overlapping on every rtsp url.
>> For some reason (I guess in my code :) ) different multicast streams
>> don't go to different sessions. All packets go to all sessions and it
>> becomes a complete mess.
>
> Perhaps you're using the same port number for different multicast streams?
>  You shouldn't do this.  Some OSs (e.g., some versions of Linux) have a bug
> that causes them to deliver packets intended for different multicast
> addresses to the same socket if they use the same port number.
>
> To be on the safe side, when you have multiple multicast streams, you should
> use different multicast addresses, *and* different port numbers.
> --
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>



-- 
"UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity." Dennis Ritchie


More information about the live-devel mailing list