[Live-devel] RTSP Client and multicast with AXIS cameras

Federico Ares federico.ares at gmail.com
Wed Nov 2 11:31:34 PST 2005


Hi Ross,

I want to thank you for your quick response. I downloaded the code on 
sourceforge, and built it with no problems.

Ive been trying the new code and I am still with the same problem. Some more 
detailed info about it:

The first problem is in RTSPClient::setupMediaSubsession, when building the 
SETUP message: transportTypeStr = IsMulticastAddress(connectionAddress) ? 
";multicast" : ";unicast";

This line is not working well. The function IsMulticastAddress() recognizes 
the null direction in the sdp (c= IN IP4 0.0.0.0) as an unicast address and 
sends a unicast transmission SETUP, instead of a multicast SETUP. So, after 
the PLAY, the server starts streaming unicast.

I added a bool parameter as input to the 
RTSPClient::setupMediaSubsession(.... ,bool useMulticast)
and modified the line to this:

transportTypeStr = useMulticast? ";multicast" : ";unicast";

Second problem: I've been loking at the new parsing of the "destination=" 
field. I dont understand why you are assigning it to the 
foundServerAddressStr variable. The server IP is still the same in 
multicast. What changes is the destination address in the IP packet. Am I 
very wrong?
I think you are missing also the port: field whis comes in the same message, 
and specifies the RTP/RTCP port pair for multicast. e.g. "port: 3456-3457".
AXIS starts sending RTP packets from ServerAddress : 3456 to 
MulticastAddress : 3456,
and  RTCP packets from ServerAddress : 3457 to MulticastAddress : 3457.

The main problem seems to assign these address/port pair to the correct 
variables in the media subsession. Thats what I've been trying to do but 
without success. :)

Like I told you, the packets are there but the client doesnt recognize them.
If you give me some ideas of which variables from mediasession should I look 
to confirm this, I could
do some more useful debugging of the problem.

Well, looking forward to receive your feedbak in this matter,
Thank you for your support.

Sincerely,

Federico


----- Original Message ----- 
From: "Ross Finlayson" <finlayson at live555.com>
To: "LIVE555 Streaming Media - development & use" 
<live-devel at ns.live555.com>
Sent: Wednesday, November 02, 2005 7:51 AM
Subject: Re: [Live-devel] RTSP Client and multicast with AXIS cameras


> FYI, I've now installed a new version (2005.11.02) of the "LIVE555 
> Streaming Media" code that updates the "RTSPClient" class.  For multicast 
> streams, it will now use the "destination=" field in the "SETUP" 
> response's "Transport:" header.  This should make it work with weird 
> servers - like your Axis camera - that do not set the multicast address in 
> the "DESCRIBE" response's SDP.
>
>
> Ross Finlayson
> Live Networks, Inc. (LIVE555.COM)
> <http://www.live555.com/>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel 



More information about the live-devel mailing list