rtsp h264 problem

Kyle Rhodes Kyle.Rhodes at vysionics.com
Wed Jan 23 00:58:37 PST 2013


Hi,

I have a problem trying to view a stream from a Bosch Dinion Camera, the gst-launch line I am trying to use is:

gst-launch-1.0 -v rtspsrc name=source location=rtsp://192.168.0.1/video?inst=2 debug=true ! rtph264depay ! avdec_h264 ! autovideosink

I get the following output:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
RTSP request message 0xb4eff0b8
 request line:
   method: 'OPTIONS'
   uri:    'rtsp://192.168.0.1/video?inst=2'
   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 0xb4eff0e4
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '1'
   key: 'Public', value: 'DESCRIBE'
   key: 'Public', value: 'SETUP'
   key: 'Public', value: 'TEARDOWN'
   key: 'Public', value: 'PLAY'
   key: 'Public', value: 'SET_PARAMETER'
   key: 'Public', value: 'PAUSE'
 body: length 0
RTSP request message 0xb4eff0b8
 request line:
   method: 'DESCRIBE'
   uri:    'rtsp://192.168.0.1/video?inst=2'
   version: '1.0'
 headers:
   key: 'Accept', value: 'application/sdp'
 body:
RTSP response message 0xb4eff0e4
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '2'
   key: 'Cache-Control', value: 'no-cache'
   key: 'Content-Type', value: 'application/sdp'
   key: 'Content-Length', value: '266'
 body: length 267
00000000 (0xb4505880): 76 3d 30 0d 0a 6f 3d 2d 20 30 20 30 20 49 4e 20  v=0..o=- 0 0 IN 
00000010 (0xb4505890): 49 50 34 20 31 39 32 2e 31 36 38 2e 30 2e 31 0d  IP4 192.168.0.1.
00000020 (0xb45058a0): 0a 73 3d 4c 49 56 45 20 56 49 45 57 0d 0a 63 3d  .s=LIVE VIEW..c=
00000030 (0xb45058b0): 49 4e 20 49 50 34 20 30 2e 30 2e 30 2e 30 0d 0a  IN IP4 0.0.0.0..
00000040 (0xb45058c0): 74 3d 30 20 30 0d 0a 61 3d 63 6f 6e 74 72 6f 6c  t=0 0..a=control
00000050 (0xb45058d0): 3a 2a 0d 0a 6d 3d 76 69 64 65 6f 20 30 20 52 54  :*..m=video 0 RT
00000060 (0xb45058e0): 50 2f 41 56 50 20 33 35 0d 0a 61 3d 72 74 70 6d  P/AVP 35..a=rtpm
00000070 (0xb45058f0): 61 70 3a 33 35 20 48 32 36 34 2f 39 30 30 30 30  ap:35 H264/90000
00000080 (0xb4505900): 0d 0a 61 3d 63 6f 6e 74 72 6f 6c 3a 76 69 64 65  ..a=control:vide
00000090 (0xb4505910): 6f 0d 0a 61 3d 72 65 63 76 6f 6e 6c 79 0d 0a 61  o..a=recvonly..a
000000a0 (0xb4505920): 3d 66 6d 74 70 3a 33 35 20 70 61 63 6b 65 74 69  =fmtp:35 packeti
000000b0 (0xb4505930): 7a 61 74 69 6f 6e 2d 6d 6f 64 65 3d 31 3b 70 72  zation-mode=1;pr
000000c0 (0xb4505940): 6f 66 69 6c 65 2d 6c 65 76 65 6c 2d 69 64 3d 34  ofile-level-id=4
000000d0 (0xb4505950): 64 34 30 31 65 3b 73 70 72 6f 70 2d 70 61 72 61  d401e;sprop-para
000000e0 (0xb4505960): 6d 65 74 65 72 2d 73 65 74 73 3d 5a 30 31 41 48  meter-sets=Z01AH
000000f0 (0xb4505970): 70 70 6d 42 67 47 39 67 4c 55 46 41 51 55 43 2c  ppmBgG9gLUFAQUC,
00000100 (0xb4505980): 61 4f 34 38 67 41 3d 3d 0d 0a 00                 aO48gA==...     
sdp packet 0xb45051a8:
 version:       '0'
 origin:
  username:     '-'
  sess_id:      '0'
  sess_version: '0'
  nettype:      'IN'
  addrtype:     'IP4'
  addr:         '192.168.0.1'
 session_name:  'LIVE VIEW'
 information:   '(NULL)'
 uri:           '(NULL)'
 connection:
  nettype:      'IN'
  addrtype:     'IP4'
  address:      '0.0.0.0'
  ttl:          '0'
  addr_number:  '0'
 key:
  type:         '(NULL)'
  data:         '(NULL)'
 attributes:
  attribute 'control' : '*'
 medias:
  media 0:
   media:       'video'
   port:        '0'
   num_ports:   '4294967295'
   proto:       'RTP/AVP'
   formats:
    format  '35'
   information: '(NULL)'
   key:
    type:       '(NULL)'
    data:       '(NULL)'
   attributes:
    attribute 'rtpmap' : '35 H264/90000'
    attribute 'control' : 'video'
    attribute 'recvonly' : ''
    attribute 'fmtp' : '35 packetization-mode=1;profile-level-id=4d401e;sprop-parameter-sets=Z01AHppmBgG9gLUFAQUC,aO48gA=='
RTSP request message 0xb4efefb8
 request line:
   method: 'SETUP'
   uri:    'rtsp://192.168.0.1/video?inst=2/video'
   version: '1.0'
 headers:
   key: 'Transport', value: 'RTP/AVP;unicast;client_port=48736-48737'
 body:
RTSP response message 0xb4efefe4
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'Transport', value: 'RTP/AVP/UDP;unicast;client_port=48736-48737;server_port=15344-15345;ssrc=FFFFFFFF'
   key: 'CSeq', value: '3'
   key: 'Session', value: '35e61e735696648;timeout=60'
 body: length 0
/GstPipeline:pipeline0/GstRTSPSrc:source/GstRtpBin:rtpbin0: latency = 2000
/GstPipeline:pipeline0/GstRTSPSrc:source/GstRtpBin:rtpbin0: drop-on-latency = false
/GstPipeline:pipeline0/GstRTSPSrc:source/GstRtpBin:rtpbin0: buffer-mode = Slave receiver to sender clock
/GstPipeline:pipeline0/GstRTSPSrc:source/GstUDPSrc:udpsrc0: timeout = 5000000
RTSP request message 0xb4eff098
 request line:
   method: 'PLAY'
   uri:    'rtsp://192.168.0.1/video?inst=2'
   version: '1.0'
 headers:
   key: 'Range', value: 'npt=0-'
 body:
RTSP response message 0xb4eff0c4
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '4'
   key: 'Session', value: '35e61e735696648'
 body: length 0
/GstPipeline:pipeline0/GstRTSPSrc:source/GstUDPSrc:udpsrc0: timeout = 0
/GstPipeline:pipeline0/GstRTSPSrc:source/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:sync_src: caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:source/GstRtpBin:rtpbin0/GstRtpSsrcDemux:rtpssrcdemux0.GstPad:rtcp_src_4294967295: caps = application/x-r
tcp, ssrc=(uint)4294967295
/GstPipeline:pipeline0/GstRTSPSrc:source/GstRtpBin:rtpbin0/GstRtpJitterBuffer:rtpjitterbuffer0.GstPad:sink_rtcp: caps = application/x-rtcp,
 ssrc=(uint)4294967295
/GstPipeline:pipeline0/GstRTSPSrc:source/GstRtpBin:rtpbin0/GstRtpSsrcDemux:rtpssrcdemux0.GstPad:rtcp_sink: caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:source/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_0_4294967295_35: caps = application/x-rtp, media=(strin
g)video, payload=(int)35, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)4d401e,
 sprop-parameter-sets=(string)"Z01AHppmBgG9gLUFAQUC\,aO48gA\=\=", a-recvonly=(string)"", npt-start=(guint64)0, play-speed=(double)1, play-s
cale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:source.GstGhostPad:recv_rtp_src_0_4294967295_35: caps = application/x-rtp, media=(string)video, payload=(
int)35, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)4d401e, sprop-parameter-s
ets=(string)"Z01AHppmBgG9gLUFAQUC\,aO48gA\=\=", a-recvonly=(string)"", npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:source.GstGhostPad:recv_rtp_src_0_4294967295_35.GstProxyPad:proxypad5: caps = application/x-rtp, media=(s
tring)video, payload=(int)35, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)4d4
01e, sprop-parameter-sets=(string)"Z01AHppmBgG9gLUFAQUC\,aO48gA\=\=", a-recvonly=(string)"", npt-start=(guint64)0, play-speed=(double)1, pl
ay-scale=(double)1
/GstPipeline:pipeline0/GstRTSPSrc:source/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_0_4294967295_35.GstProxyPad:proxypad4: caps = applicati
on/x-rtp, media=(string)video, payload=(int)35, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-le
vel-id=(string)4d401e, sprop-parameter-sets=(string)"Z01AHppmBgG9gLUFAQUC\,aO48gA\=\=", a-recvonly=(string)"", npt-start=(guint64)0, play-s
peed=(double)1, play-scale=(double)1
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:source/GstUDPSrc:udpsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2791): gst_base_src_loop (): /GstPipeline:pipeline0/GstRTSPSrc:source/GstUDPSrc:udpsrc0:
streaming task paused, reason not-linked (-1)
Execution ended after 2246212709 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
RTSP request message 0xb4eff0c8
 request line:
   method: 'PAUSE'
   uri:    'rtsp://192.168.0.1/video?inst=2'
   version: '1.0'
 headers:
 body:
Setting pipeline to NULL ...
RTSP request message 0xb4eff0c8
 request line:
   method: 'TEARDOWN'
   uri:    'rtsp://192.168.0.1/video?inst=2'
   version: '1.0'
 headers:
 body:
Freeing pipeline ...

Any help would be fantastic.

Thanks

K.


More information about the gstreamer-devel mailing list