[Live-devel] RTSP server behind a router

Giovanni Iamonte giovanni.iamonte at quintetto.it
Thu Sep 24 09:23:54 PDT 2015


Hi Ross,

    we have an issue regarding a RTSP server behind a router.

                

The client is able to access the streaming but it displays the first
frame 

after more than 12 seconds from the start time, 

then usually playback stops after about 40 seconds.

 

If we access the streaming using testRTSPClient, no video/audio packet
is logged.

 

We found a work around for the issue by removing
'destination=%s;source=%s;' from SETUP command response for 

UDP RTP in the file RTSPServer.cpp at line 1731 as follows:

 

snprintf((char*)ourClientConnection->fResponseBuffer, sizeof
ourClientConnection->fResponseBuffer,

                 "RTSP/1.0 200 OK\r\n"

                 "CSeq: %s\r\n"

                 "%s"

                 "Transport:
RTP/AVP;unicast;destination=%s;source=%s;client_port=%d-%d;server_port=%
d-%d\r\n"

                 "Session: %08X%s\r\n\r\n",

                 ourClientConnection->fCurrentCSeq,

                 dateHeader(),

                 destAddrStr.val(), sourceAddrStr.val(),
ntohs(clientRTPPort.num()), ntohs(clientRTCPPort.num()),
ntohs(serverRTPPort.num()), ntohs(serverRTCPPort.num()),

                 fOurSessionId, timeoutParameterString);

 

becames

 

snprintf((char*)ourClientConnection->fResponseBuffer, sizeof
ourClientConnection->fResponseBuffer,

                 "RTSP/1.0 200 OK\r\n"

                 "CSeq: %s\r\n"

                 "%s"

                 "Transport:
RTP/AVP;unicast;client_port=%d-%d;server_port=%d-%d\r\n"

                 "Session: %08X%s\r\n\r\n",

                 ourClientConnection->fCurrentCSeq,

                 dateHeader(),

                 ntohs(clientRTPPort.num()),
ntohs(clientRTCPPort.num()), ntohs(serverRTPPort.num()),
ntohs(serverRTCPPort.num()),

                 fOurSessionId, timeoutParameterString);

 

With the modified version of the streaming server, the client displays
the first frame 

in 2 sec, the playback never stops and also testRTSPClient shows
video/audio packet.

 

Do you have any idea about this behavior?

 

 

Thanks for your help

 

________________________________________________________________

Ing. Giovanni Iamonte

Area Tecnologie e sviluppi

Quintetto Srl - Pont Saint Martin (AO)

( mobile: +39 393 9196310

( tel: +39 0165 1845290

+ e-mail: iamonte at quintetto.it <mailto:iamonte at quintetto.it> 

[ web: www.quintetto.it <http://www.quintetto.it/> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150924/0936f117/attachment.html>


More information about the live-devel mailing list