Hi,

I am trying to receive video from a Samsung IP camera (Samsung SNB-6010)
using testRTSPClient (I get the same error with openRTSP) but it doesn't
work.

The problem appears during RTSP negotiation. Live555 send DESCRIBE and
SETUP, but it
doesn't send PLAY command.

This is the traffic captured with Wireshark:

===========================================================
DESCRIBE rtsp://
admin:[email protected]:554/onvif/profile2/media.smp RTSP/1.0
CSeq: 2
User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2014.11.12)
Accept: application/sdp

RTSP/1.0 200 OK
CSeq: 2
Date: Thu, 12 Feb 2015 10:07:29 GMT
Expires: Thu, 12 Feb 2015 10:07:29 GMT
Cache-Control: must-revalidate
Content-Base: rtsp://
admin:[email protected]:554/onvif/profile2/media.smp
Content-Type: application/sdp
Content-Length: 694
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1

v=0
o=- 0 0 IN IP4 88.26.249.208
s=Media Presentation
i=samsung
c=IN IP4 0.0.0.0
b=AS:2632
t=0 0
a=control:rtsp://
admin:[email protected]:554/onvif/profile2/media.smp
a=range:npt=now-
m=video 41008 RTP/AVP 98
b=AS:2560
a=rtpmap:98 H264/90000
a=control:rtsp://
admin:[email protected]:554/onvif/profile2/media.smp/trackID=v
a=cliprect:0,0,720,1280
a=framesize:98 1280-720
a=framerate:15.0
a=fmtp:98
packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QAKKy0AoAtyA==,aM4BniwA
m=application 41012 RTP/AVP 107
b=AS:8
a=rtpmap:107 vnd.onvif.metadata/90000
a=control:rtsp://
admin:[email protected]:554/onvif/profile2/media.smp/trackID=m
a=recvonly
SETUP rtsp://
admin:[email protected]:554/onvif/profile2/media.smp/trackID=v
RTSP/1.0
CSeq: 3
User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2014.11.12)
Transport: RTP/AVP/TCP;unicast;interleaved=0-1

RTSP/1.0 200 OK
CSeq: 3
Date: Thu, 12 Feb 2015 10:07:30 GMT
Expires: Thu, 12 Feb 2015 10:07:30 GMT
Cache-Control: must-revalidate
Session: 43694;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
===========================================================


I guess the problem is that SDP response isn't received in one  'recv'
command. Debugging
 RTSPClient::handleResponseBytes I have seen that fResponseBuffer contains:

Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 2
Date: Thu, 12 Feb 2015 10:57:15 GMT
Expires: Thu, 12 Feb 2015 10:57:15 GMT
Cache-Control: must-revalidate
Content-Base: rtsp://
admin:[email protected]:554/onvif/profile2/media.smp
Content-Type: application/sdp
Content-Length: 694
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1

v=0
o=- 0 0 IN IP4 88.26.249.208
s=Media Presentation
i=samsung
c=IN IP4 0.0.0.0
b=AS:2632
t=0 0
a=control:rtsp://
admin:[email protected]:554/onvif/profile2/media.smp
a=range:npt=now-
m=video 41112 RTP/AVP 98
b=AS:2560
a=rtpmap:98 H264/90000
a=control:rtsp://
admin:[email protected]:554/onvif/profile2/media.smp/trackID=v
a=cliprect:0,0,720,1280
a=framesize:98 1280-720
a=framerate:15.0
a=fmtp:98
packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=Z2QAKKy0AoAtyA==,aM4BniwA
m=application 41116 RTP/AVP 107
b=AS:8
a=rtpmap:107 vnd.onvif.metadata/90000
a=control:rtsp://
admin:[email protected]:554/onvif/profile2/media.smp/trackID=m

        (plus 12 additional bytes)


The 'plus 12 additional bytes'  are:
a=recvonly


I am debugging RTSPClient::handleResponseBytes in order to solve the
problem.

Any ideas to solve the problem?

Best regards,


Paco


-- 


*Francisco Javier Cabello Torres*
*Director de I+D R&D Manager*
--------------------------------------

*V I S U A L   T O O L S*C/Isla Graciosa, 1.
28034 Madrid, Spain.
T: + 34 91 729 48 44
Skype: franciscojaviercabello
Mobile: +34 681 101 852
--------------------------------------

*[email protected] <[email protected]>*
Clave pública: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x1890E879

Este mensaje, y cualquier fichero anexo al mismo, contiene información de
carácter confidencial dirigida exclusivamente a su(s) destinatario(s) y, en
su caso, sometida a secreto profesional. Queda prohibida su difusión, copia
o distribución a terceros sin la previa autorización escrita de Visual
Tools, S.A. Si usted ha recibido este mensaje por error, se ruega lo
comunique por esta misma vía y proceda a su completa eliminación.

POR RESPETO AL MEDIO AMBIENTE, POR FAVOR SÓLO IMPRIMA ESTE CORREO SI ES
ESTRICTAMENTE NECESARIO
________________________

The information in this e-mail, and in any attachments, is confidential
and, if any, protected by a professional privilege, and intended solely for
the attention and use of the named addressee(s). You are hereby notified
that any dissemination, copy or distribution of this information is
prohibited without the prior written consent of Visual Tools, S.A. If you
have received this communication in error, please notify the sender by
reply e-mail and delete it.
TO RESPECT THE ENVIRONMENT, PLEASE ONLY PRINT THIS EMAIL IF STRICTLY
NECESSARY
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to