RTP/RTSP Disconnect on IP camera

GeoD gdrht at xmlink.net
Wed May 11 10:22:03 PDT 2011


> > Trying to play the RTP/RTSP h264 video stream from an IP camera.
>  <snip>
>
> 1/ specify the make and model of the IP camera: most of them have their own quirks.
>
> 2/ see what happens with
>
> gst-launch rtspsrc location=rtsp://... debug=1 ! decodebin2 ! autovideosink
>
> --
>   greetz, marc
>

1/ Camera is a Samsung / GVI GV-NC-201B

2/ Debug results below, result is the same whether audio is configured
on or off.

Thanks,
~GeoD

dvl:~$ gst-launch -v rtspsrc location=rtsp://10.0.2.101/h264 debug=1 !
decodebin2 ! autovideosink
Setting pipeline to PAUSED ...
RTSP request message 0xbfa01c44
request line:
  method: 'OPTIONS'
  uri:    'rtsp://10.0.2.101/h264'
  version: '1.0'
headers:
  key: 'User-Agent', value: 'RealMedia Player Version 6.0.9.1235
(linux-2.0-libc6-i386-gcc2.95)'
  key: 'ClientChallenge', value: '9e26d33f2984236010ef6253fb1887f7'
  key: 'CompanyID', value: 'KnKV4M4I/B2FjJ1TToLycw=='
  key: 'GUID', value: '00000000-0000-0000-0000-000000000000'
  key: 'RegionData', value: '0'
  key: 'PlayerStarttime', value: '[28/03/2003:22:50:23 00:00]'
  key: 'ClientID', value: 'Linux_2.4_6.0.9.1235_play32_RN01_EN_586'
body:
RTSP response message 0xbfa01c28
status line:
  code:   '200'
  reason: 'OK'
  version: '1.0'
headers:
  key: 'CSeq', value: '1'
  key: 'Date', value: 'Wed, May 11 2011 17:09:39 GMT'
  key: 'Public', value: 'OPTIONS'
  key: 'Public', value: 'DESCRIBE'
  key: 'Public', value: 'SETUP'
  key: 'Public', value: 'TEARDOWN'
  key: 'Public', value: 'PLAY'
  key: 'Public', value: 'PAUSE'
  key: 'Public', value: 'GET_PARAMETER'
  key: 'Public', value: 'SET_PARAMETER'
body: length 0
RTSP request message 0xbfa01c44
request line:
  method: 'DESCRIBE'
  uri:    'rtsp://10.0.2.101/h264'
  version: '1.0'
headers:
  key: 'Accept', value: 'application/sdp'
body:
RTSP response message 0xbfa01c28
status line:
  code:   '200'
  reason: 'OK'
  version: '1.0'
headers:
  key: 'CSeq', value: '2'
  key: 'Date', value: 'Wed, May 11 2011 17:09:39 GMT'
  key: 'Content-Base', value: 'rtsp://10.0.2.101/h264/'
  key: 'Content-Type', value: 'application/sdp'
  key: 'Content-Length', value: '613'
body: length 614
00000000 (0x90a52f0): 76 3d 30 0d 0a 6f 3d 2d 20 31 33 30 34 39 38 36
v=0..o=- 1304986
00000010 (0x90a5300): 33 39 30 31 30 38 35 34 35 20 31 20 49 4e 20 49
390108545 1 IN I
00000020 (0x90a5310): 50 34 20 30 2e 30 2e 30 2e 30 0d 0a 73 3d 53 65
P4 0.0.0.0..s=Se
00000030 (0x90a5320): 73 73 69 6f 6e 20 73 74 72 65 61 6d 65 64 20 62
ssion streamed b
00000040 (0x90a5330): 79 20 22 6e 65 73 73 79 4d 65 64 69 61 53 65 72
y "nessyMediaSer
00000050 (0x90a5340): 76 65 72 22 0d 0a 69 3d 68 32 36 34 0d 0a 74 3d
ver"..i=h264..t=
00000060 (0x90a5350): 30 20 30 0d 0a 61 3d 74 6f 6f 6c 3a 4c 49 56 45
0 0..a=tool:LIVE
00000070 (0x90a5360): 35 35 35 20 53 74 72 65 61 6d 69 6e 67 20 4d 65
555 Streaming Me
00000080 (0x90a5370): 64 69 61 20 76 32 30 31 30 2e 30 34 2e 30 39 5f
dia v2010.04.09_
00000090 (0x90a5380): 64 79 6e 61 5f 6d 6f 64 69 5f 32 30 31 30 2e 30
dyna_modi_2010.0
000000a0 (0x90a5390): 35 2e 30 35 0d 0a 61 3d 74 79 70 65 3a 62 72 6f
5.05..a=type:bro
000000b0 (0x90a53a0): 61 64 63 61 73 74 0d 0a 61 3d 63 6f 6e 74 72 6f
adcast..a=contro
000000c0 (0x90a53b0): 6c 3a 2a 0d 0a 61 3d 72 61 6e 67 65 3a 6e 70 74
l:*..a=range:npt
000000d0 (0x90a53c0): 3d 30 2d 0d 0a 61 3d 78 2d 71 74 2d 74 65 78 74
=0-..a=x-qt-text
000000e0 (0x90a53d0): 2d 6e 61 6d 3a 53 65 73 73 69 6f 6e 20 73 74 72
-nam:Session str
000000f0 (0x90a53e0): 65 61 6d 65 64 20 62 79 20 22 6e 65 73 73 79 4d
eamed by "nessyM
00000100 (0x90a53f0): 65 64 69 61 53 65 72 76 65 72 22 0d 0a 61 3d 78
ediaServer"..a=x
00000110 (0x90a5400): 2d 71 74 2d 74 65 78 74 2d 69 6e 66 3a 68 32 36
-qt-text-inf:h26
00000120 (0x90a5410): 34 0d 0a 6d 3d 76 69 64 65 6f 20 30 20 52 54 50
4..m=video 0 RTP
00000130 (0x90a5420): 2f 41 56 50 20 39 39 0d 0a 63 3d 49 4e 20 49 50
/AVP 99..c=IN IP
00000140 (0x90a5430): 34 20 30 2e 30 2e 30 2e 30 0d 0a 61 3d 72 74 70
4 0.0.0.0..a=rtp
00000150 (0x90a5440): 6d 61 70 3a 39 39 20 48 32 36 34 2f 39 30 30 30
map:99 H264/9000
00000160 (0x90a5450): 30 0d 0a 61 3d 66 6d 74 70 3a 39 39 20 70 61 63
0..a=fmtp:99 pac
00000170 (0x90a5460): 6b 65 74 69 7a 61 74 69 6f 6e 2d 6d 6f 64 65 3d
ketization-mode=
00000180 (0x90a5470): 32 38 3b 70 72 6f 66 69 6c 65 2d 6c 65 76 65 6c
28;profile-level
00000190 (0x90a5480): 2d 69 64 3d 34 32 45 30 32 30 2e 3b 20 73 70 72
-id=42E020.; spr
000001a0 (0x90a5490): 6f 70 2d 70 61 72 61 6d 65 74 65 72 2d 73 65 74
op-parameter-set
000001b0 (0x90a54a0): 73 3d 4a 30 4c 67 49 49 31 6f 43 30 50 62 41 57
s=J0LgII1oC0PbAW
000001c0 (0x90a54b0): 79 41 41 41 48 30 67 41 41 64 54 41 65 63 39 51
yAAAH0gAAdTAec9Q
000001d0 (0x90a54c0): 3d 3d 2c 4b 4d 34 4e 79 41 3d 3d 0d 0a 61 3d 63
==,KM4NyA==..a=c
000001e0 (0x90a54d0): 6f 6e 74 72 6f 6c 3a 74 72 61 63 6b 31 0d 0a 61
ontrol:track1..a
000001f0 (0x90a54e0): 3d 63 6c 69 70 72 65 63 74 3a 30 2c 30 2c 37 32
=cliprect:0,0,72
00000200 (0x90a54f0): 30 2c 34 38 30 0d 0a 61 3d 66 72 61 6d 65 72 61
0,480..a=framera
00000210 (0x90a5500): 74 65 3a 31 34 2e 39 39 30 30 30 30 0d 0a 6d 3d
te:14.990000..m=
00000220 (0x90a5510): 61 75 64 69 6f 20 37 38 37 38 20 52 54 50 2f 41
audio 7878 RTP/A
00000230 (0x90a5520): 56 50 20 39 38 0d 0a 61 3d 72 74 70 6d 61 70 3a
VP 98..a=rtpmap:
00000240 (0x90a5530): 39 38 20 47 37 32 36 2d 31 36 2f 38 30 30 30 2f
98 G726-16/8000/
00000250 (0x90a5540): 31 0d 0a 61 3d 63 6f 6e 74 72 6f 6c 3a 74 72 61
1..a=control:tra
00000260 (0x90a5550): 63 6b 32 0d 0a 00
ck2...
sdp packet 0xbfa01bc8:
version:       '0'
origin:
 username:     '-'
 sess_id:      '1304986390108545'
 sess_version: '1'
 nettype:      'IN'
 addrtype:     'IP4'
 addr:         '0.0.0.0'
session_name:  'Session streamed by "nessyMediaServer"'
information:   'h264'
uri:           '(NULL)'
connection:
 nettype:      '(NULL)'
 addrtype:     '(NULL)'
 address:      '(NULL)'
 ttl:          '0'
 addr_number:  '0'
key:
 type:         '(NULL)'
 data:         '(NULL)'
attributes:
 attribute 'tool' : 'LIVE555 Streaming Media v2010.04.09_dyna_modi_2010.05.05'
 attribute 'type' : 'broadcast'
 attribute 'control' : '*'
 attribute 'range' : 'npt=0-'
 attribute 'x-qt-text-nam' : 'Session streamed by "nessyMediaServer"'
 attribute 'x-qt-text-inf' : 'h264'
medias:
 media 0:
  media:       'video'
  port:        '0'
  num_ports:   '4294967295'
  proto:       'RTP/AVP'
  formats:
   format  '99'
  information: '(NULL)'
  connections:
   nettype:      'IN'
   addrtype:     'IP4'
   address:      '0.0.0.0'
   ttl:          '0'
   addr_number:  '0'
  key:
   type:       '(NULL)'
   data:       '(NULL)'
  attributes:
   attribute 'rtpmap' : '99 H264/90000'
   attribute 'fmtp' : '99
packetization-mode=28;profile-level-id=42E020.;
sprop-parameter-sets=J0LgII1oC0PbAWyAAAH0gAAdTAec9Q==,KM4NyA=='
   attribute 'control' : 'track1'
   attribute 'cliprect' : '0,0,720,480'
   attribute 'framerate' : '14.990000'
 media 1:
  media:       'audio'
  port:        '7878'
  num_ports:   '4294967295'
  proto:       'RTP/AVP'
  formats:
   format  '98'
  information: '(NULL)'
  key:
   type:       '(NULL)'
   data:       '(NULL)'
  attributes:
   attribute 'rtpmap' : '98 G726-16/8000/1'
   attribute 'control' : 'track2'
RTSP request message 0xbfa01af4
request line:
  method: 'SETUP'
  uri:    'rtsp://10.0.2.101/h264/track1'
  version: '1.0'
headers:
  key: 'Transport', value: 'RTP/AVP/UDP;unicast;client_port=51330-51331'
body:
RTSP response message 0xbfa01ad8
status line:
  code:   '200'
  reason: 'OK'
  version: '1.0'
headers:
  key: 'CSeq', value: '3'
  key: 'Cache-Control', value: 'must-revalidate'
  key: 'Date', value: 'Wed, May 11 2011 17:09:39 GMT'
  key: 'Transport', value:
'RTP/AVP;unicast;destination=10.0.0.40;source=10.0.2.101;client_port=51330-51331;server_port=6970-6971'
  key: 'Session', value: '2'
body: length 0
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: latency = 2000
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: timeout = 5000000
RTSP request message 0xbfa01af4
request line:
  method: 'SETUP'
  uri:    'rtsp://10.0.2.101/h264/track2'
  version: '1.0'
headers:
  key: 'Transport', value: 'RTP/AVP/UDP;unicast;client_port=53572-53573'
body:

(gst-launch-0.10:3533): GStreamer-WARNING **: Element udpsrc3 is not
in bin rtspsrc0

(gst-launch-0.10:3533): GStreamer-WARNING **: Element udpsrc4 is not
in bin rtspsrc0
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could
not read from resource.
Additional debug info:
gstrtspsrc.c(3847): gst_rtspsrc_try_send ():
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (Parse error)
Setting pipeline to NULL ...
Freeing pipeline ...


More information about the gstreamer-devel mailing list