GStreamer and RTCP stream errors

Fabio Cecamore ceca_89 at hotmail.com
Sat Jun 1 17:02:28 PDT 2013


This is the complete OUTPUT with debug..

root at testingVM:~# gst-launch-1.0 rtspsrc 
location=rtsp://192.168.0.253/ch0_0.h264 debug=1 ! decodebin ! v4l2sink 
device=/dev/video0
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
RTSP request message 0x7fb1b2383990
  request line:
    method: 'OPTIONS'
    uri:    'rtsp://192.168.0.253/ch0_0.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 0x7fb1b23839f0
  status line:
    code:   '200'
    reason: 'OK'
    version: '1.0'
  headers:
    key: 'CSeq', value: '1'
    key: 'Date', value: 'Sun, Jun 02 2013 01:59:35 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 0x7fb1b2383990
  request line:
    method: 'DESCRIBE'
    uri:    'rtsp://192.168.0.253/ch0_0.h264'
    version: '1.0'
  headers:
    key: 'Accept', value: 'application/sdp'
  body:
RTSP response message 0x7fb1b23839f0
  status line:
    code:   '200'
    reason: 'OK'
    version: '1.0'
  headers:
    key: 'CSeq', value: '2'
    key: 'Date', value: 'Sun, Jun 02 2013 01:59:35 GMT'
    key: 'Content-Base', value: 'rtsp://192.168.0.253/ch0_0.h264/'
    key: 'Content-Type', value: 'application/sdp'
    key: 'Content-Length', value: '733'
  body: length 734
00000000 (0x1e9cab0): 76 3d 30 0d 0a 6f 3d 2d 20 31 33 37 30 31 33 38  
v=0..o=- 1370138
00000010 (0x1e9cac0): 33 37 35 37 32 39 36 31 37 20 31 20 49 4e 20 49  
375729617 1 IN I
00000020 (0x1e9cad0): 50 34 20 31 39 32 2e 31 36 38 2e 30 2e 32 35 33  
P4 192.168.0.253
00000030 (0x1e9cae0): 0d 0a 73 3d 48 2e 32 36 34 20 50 72 6f 67 72 61  
..s=H.264 Progra
00000040 (0x1e9caf0): 6d 20 53 74 72 65 61 6d 2c 20 73 74 72 65 61 6d  m 
Stream, stream
00000050 (0x1e9cb00): 65 64 20 62 79 20 74 68 65 20 4c 49 56 45 35 35  
ed by the LIVE55
00000060 (0x1e9cb10): 35 20 4d 65 64 69 61 20 53 65 72 76 65 72 0d 0a  5 
Media Server..
00000070 (0x1e9cb20): 69 3d 63 68 30 5f 30 2e 68 32 36 34 0d 0a 74 3d  
i=ch0_0.h264..t=
00000080 (0x1e9cb30): 30 20 30 0d 0a 61 3d 44 65 76 56 65 72 3a 70 75  0 
0..a=DevVer:pu
00000090 (0x1e9cb40): 73 68 65 72 32 0d 0a 61 3d 47 72 6f 75 70 4e 61  
sher2..a=GroupNa
000000a0 (0x1e9cb50): 6d 65 3a 49 50 43 41 4d 0d 0a 61 3d 4e 69 63 6b  
me:IPCAM..a=Nick
000000b0 (0x1e9cb60): 4e 61 6d 65 3a 43 49 46 0d 0a 61 3d 43 66 67 53  
Name:CIF..a=CfgS
000000c0 (0x1e9cb70): 65 63 74 69 6f 6e 3a 50 52 4f 47 5f 43 48 4e 30  
ection:PROG_CHN0
000000d0 (0x1e9cb80): 0d 0a 61 3d 74 6f 6f 6c 3a 4c 49 56 45 35 35 35  
..a=tool:LIVE555
000000e0 (0x1e9cb90): 20 53 74 72 65 61 6d 69 6e 67 20 4d 65 64 69 61   
Streaming Media
000000f0 (0x1e9cba0): 20 76 32 30 31 31 2e 30 38 2e 31 33 0d 0a 61 3d   
v2011.08.13..a=
00000100 (0x1e9cbb0): 74 79 70 65 3a 62 72 6f 61 64 63 61 73 74 0d 0a  
type:broadcast..
00000110 (0x1e9cbc0): 61 3d 63 6f 6e 74 72 6f 6c 3a 2a 0d 0a 61 3d 72  
a=control:*..a=r
00000120 (0x1e9cbd0): 61 6e 67 65 3a 6e 70 74 3d 30 2d 0d 0a 61 3d 78  
ange:npt=0-..a=x
00000130 (0x1e9cbe0): 2d 71 74 2d 74 65 78 74 2d 6e 61 6d 3a 48 2e 32  
-qt-text-nam:H.2
00000140 (0x1e9cbf0): 36 34 20 50 72 6f 67 72 61 6d 20 53 74 72 65 61  
64 Program Strea
00000150 (0x1e9cc00): 6d 2c 20 73 74 72 65 61 6d 65 64 20 62 79 20 74  
m, streamed by t
00000160 (0x1e9cc10): 68 65 20 4c 49 56 45 35 35 35 20 4d 65 64 69 61  
he LIVE555 Media
00000170 (0x1e9cc20): 20 53 65 72 76 65 72 0d 0a 61 3d 78 2d 71 74 2d   
Server..a=x-qt-
00000180 (0x1e9cc30): 74 65 78 74 2d 69 6e 66 3a 63 68 30 5f 30 2e 68  
text-inf:ch0_0.h
00000190 (0x1e9cc40): 32 36 34 0d 0a 6d 3d 76 69 64 65 6f 20 30 20 52  
264..m=video 0 R
000001a0 (0x1e9cc50): 54 50 2f 41 56 50 20 39 36 0d 0a 63 3d 49 4e 20  
TP/AVP 96..c=IN
000001b0 (0x1e9cc60): 49 50 34 20 30 2e 30 2e 30 2e 30 0d 0a 62 3d 41  
IP4 0.0.0.0..b=A
000001c0 (0x1e9cc70): 53 3a 34 30 30 30 0d 0a 61 3d 72 74 70 6d 61 70  
S:4000..a=rtpmap
000001d0 (0x1e9cc80): 3a 39 36 20 48 32 36 34 2f 39 30 30 30 30 0d 0a  
:96 H264/90000..
000001e0 (0x1e9cc90): 61 3d 63 6f 6e 74 72 6f 6c 3a 74 72 61 63 6b 49  
a=control:trackI
000001f0 (0x1e9cca0): 44 3d 31 0d 0a 61 3d 66 6d 74 70 3a 39 36 20 70  
D=1..a=fmtp:96 p
00000200 (0x1e9ccb0): 61 63 6b 65 74 69 7a 61 74 69 6f 6e 2d 6d 6f 64  
acketization-mod
00000210 (0x1e9ccc0): 65 3d 31 3b 70 72 6f 66 69 6c 65 2d 6c 65 76 65  
e=1;profile-leve
00000220 (0x1e9ccd0): 6c 2d 69 64 3d 34 32 65 30 32 61 3b 73 70 72 6f  
l-id=42e02a;spro
00000230 (0x1e9cce0): 70 2d 70 61 72 61 6d 65 74 65 72 2d 73 65 74 73  
p-parameter-sets
00000240 (0x1e9ccf0): 3d 5a 30 4c 67 4b 74 6f 42 6b 41 6c 78 5a 2c 61  
=Z0LgKtoBkAlxZ,a
00000250 (0x1e9cd00): 4d 34 77 70 49 41 3d 0d 0a 61 3d 66 72 61 6d 65  
M4wpIA=..a=frame
00000260 (0x1e9cd10): 73 69 7a 65 3a 39 36 20 31 36 30 30 2d 31 32 30  
size:96 1600-120
00000270 (0x1e9cd20): 30 0d 0a 61 3d 63 6c 69 70 72 65 63 74 3a 30 2c  
0..a=cliprect:0,
00000280 (0x1e9cd30): 30 2c 31 32 30 30 2c 31 36 30 30 0d 0a 61 3d 66  
0,1200,1600..a=f
00000290 (0x1e9cd40): 72 61 6d 65 72 61 74 65 3a 31 35 0d 0a 6d 3d 61  
ramerate:15..m=a
000002a0 (0x1e9cd50): 75 64 69 6f 20 30 20 52 54 50 2f 41 56 50 20 38  
udio 0 RTP/AVP 8
000002b0 (0x1e9cd60): 0d 0a 61 3d 72 74 70 6d 61 70 3a 38 20 50 43 4d  
..a=rtpmap:8 PCM
000002c0 (0x1e9cd70): 41 2f 38 30 30 30 0d 0a 61 3d 63 6f 6e 74 72 6f  
A/8000..a=contro
000002d0 (0x1e9cd80): 6c 3a 74 72 61 63 6b 49 44 3d 32 0d 0a 00        
l:trackID=2...
sdp packet 0x1da9580:
  version:       '0'
  origin:
   username:     '-'
   sess_id:      '1370138375729617'
   sess_version: '1'
   nettype:      'IN'
   addrtype:     'IP4'
   addr:         '192.168.0.253'
  session_name:  'H.264 Program Stream, streamed by the LIVE555 Media 
Server'
  information:   'ch0_0.h264'
  uri:           '(NULL)'
  connection:
   nettype:      '(NULL)'
   addrtype:     '(NULL)'
   address:      '(NULL)'
   ttl:          '0'
   addr_number:  '0'
  key:
   type:         '(NULL)'
   data:         '(NULL)'
  attributes:
   attribute 'DevVer' : 'pusher2'
   attribute 'GroupName' : 'IPCAM'
   attribute 'NickName' : 'CIF'
   attribute 'CfgSection' : 'PROG_CHN0'
   attribute 'tool' : 'LIVE555 Streaming Media v2011.08.13'
   attribute 'type' : 'broadcast'
   attribute 'control' : '*'
   attribute 'range' : 'npt=0-'
   attribute 'x-qt-text-nam' : 'H.264 Program Stream, streamed by the 
LIVE555 Media Server'
   attribute 'x-qt-text-inf' : 'ch0_0.h264'
  medias:
   media 0:
    media:       'video'
    port:        '0'
    num_ports:   '0'
    proto:       'RTP/AVP'
    formats:
     format  '96'
    information: '(NULL)'
    connections:
     nettype:      'IN'
     addrtype:     'IP4'
     address:      '0.0.0.0'
     ttl:          '0'
     addr_number:  '0'
    bandwidths:
     type:         'AS'
     bandwidth:    '4000'
    key:
     type:       '(NULL)'
     data:       '(NULL)'
    attributes:
     attribute 'rtpmap' : '96 H264/90000'
     attribute 'control' : 'trackID=1'
     attribute 'fmtp' : '96 
packetization-mode=1;profile-level-id=42e02a;sprop-parameter-sets=Z0LgKtoBkAlxZ,aM4wpIA='
     attribute 'framesize' : '96 1600-1200'
     attribute 'cliprect' : '0,0,1200,1600'
     attribute 'framerate' : '15'
   media 1:
    media:       'audio'
    port:        '0'
    num_ports:   '0'
    proto:       'RTP/AVP'
    formats:
     format  '8'
    information: '(NULL)'
    key:
     type:       '(NULL)'
     data:       '(NULL)'
    attributes:
     attribute 'rtpmap' : '8 PCMA/8000'
     attribute 'control' : 'trackID=2'
RTSP request message 0x7fb1b2383780
  request line:
    method: 'SETUP'
    uri:    'rtsp://192.168.0.253/ch0_0.h264/trackID=1'
    version: '1.0'
  headers:
    key: 'Transport', value: 'RTP/AVP;unicast;client_port=40554-40555'
  body:
RTSP response message 0x7fb1b23837e0
  status line:
    code:   '200'
    reason: 'OK'
    version: '1.0'
  headers:
    key: 'CSeq', value: '3'
    key: 'Date', value: 'Sun, Jun 02 2013 01:59:35 GMT'
    key: 'Transport', value: 
'RTP/AVP;unicast;destination=192.168.0.116;source=192.168.0.253;client_port=40554-40555;server_port=7058-7059;ssrc=b80fb887'
    key: 'Session', value: '74E5772B'
  body: length 0
RTSP request message 0x7fb1b2383780
  request line:
    method: 'SETUP'
    uri:    'rtsp://192.168.0.253/ch0_0.h264/trackID=2'
    version: '1.0'
  headers:
    key: 'Transport', value: 'RTP/AVP;unicast;client_port=54238-54239'
  body:
RTSP response message 0x7fb1b23837e0
  status line:
    code:   '200'
    reason: 'OK'
    version: '1.0'
  headers:
    key: 'CSeq', value: '4'
    key: 'Date', value: 'Sun, Jun 02 2013 01:59:35 GMT'
    key: 'Transport', value: 
'RTP/AVP;unicast;destination=192.168.0.116;source=192.168.0.253;client_port=54238-54239;server_port=7060-7061;ssrc=b80fb887'
    key: 'Session', value: '74E5772B'
  body: length 0
RTSP request message 0x7fb1b2383b80
  request line:
    method: 'PLAY'
    uri:    'rtsp://192.168.0.253/ch0_0.h264'
    version: '1.0'
  headers:
    key: 'Range', value: 'npt=0-'
  body:
RTSP response message 0x7fb1b2383be0
  status line:
    code:   '200'
    reason: 'OK'
    version: '1.0'
  headers:
    key: 'CSeq', value: '5'
    key: 'Date', value: 'Sun, Jun 02 2013 01:59:35 GMT'
    key: 'Range', value: 'npt=0.000-'
    key: 'Session', value: '74E5772B'
    key: 'RTP-Info', value: 'url=trackID=1;seq=56977;rtptime=78539308'
    key: 'RTP-Info', value: 'url=trackID=2;seq=54234;rtptime=2166059714'
  body: length 0
*ERROR: from element 
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: Internal 
data flow error.*
Additional debug info:
gstbasesrc.c(2812): gst_base_src_loop (): 
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-linked (-1)
Execution ended after 199848747 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
RTSP request message 0x7fb1b2383b80
  request line:
    method: 'PAUSE'
    uri:    'rtsp://192.168.0.253/ch0_0.h264'
    version: '1.0'
  headers:
  body:
Setting pipeline to NULL ...
Freeing pipeline ...
root at testingVM:~#


> I tried with last version 1.0.7 by sources on a new installation of
> debian 7.0 .
> The results is absolutely the same..
>
> root at testingVM  <http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>:~/code# gst-launch-1.0 rtspsrc
> location=rtsp://192.168.0.253/ch0_0.h264  ! decodebin ! v4l2sink
> device=/dev/video0
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> ERROR: from element
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3: Internal
> data flow error.
> Additional debug info:
> gstbasesrc.c(2812): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3:
> streaming task paused, reason not-linked (-1)
> Execution ended after 1246241464 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
> root at testingVM  <http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>:~/code#
>
> Help please..
>
>
>
> Il 31/05/2013 09.00, Fabio Cecamore ha scritto:
> >/  Hello all,
> />/  i'm new of GStreamer and i'm getting a lot of troubles :)
> />/
> />/  I'm trying to stream a RTCP via loopback (/dev/video0) for use a IP
> />/  CAM with a surveillance software (Motion).
> />/
> />/  I'm using latest v4l2loopback on a Debian with gstreamer-0.10 .
> />/
> />/  This is the problems:
> />/  sometimes when i launch with this command:
> />/  gst-launch rtspsrc location=rtsp://192.168.0.253/ch0_0.h264  !
> />/  decodebin ! v4l2sink device=/dev/video0
> />/
> />/  it start with a warning, but work:
> />/  [begin]
> />/  Impostazione della pipeline a PAUSED ...
> />/  La pipeline è viva e non necessita il PREROLL ...
> />/  Impostazione della pipeline a PLAYING ...
> />/  New clock: GstSystemClock
> />/
> />/  ** (gst-launch-0.10:1400): CRITICAL **:
> />/  gst_v4l2sink_sync_overlay_fields: assertion `v4l2_ioctl (fd,
> />/  VIDIOC_G_FMT, &format) >= 0' failed
> />/  [end]
> />/  And I've a good stream.
> />/
> />/
> />/  But sometimes it didn't with this error:
> />/  [begin]
> />/  Impostazione della pipeline a PAUSED ...
> />/  La pipeline è viva e non necessita il PREROLL ...
> />/  Impostazione della pipeline a PLAYING ...
> />/  New clock: GstSystemClock
> />/  ERRORE: dall'elemento
> />/  /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3: Errore
> />/  interno nel flusso di dati.
> />/  Informazioni di debug aggiuntive:
> />/  gstbasesrc.c(2550): gst_base_src_loop ():
> />/  /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3:
> />/  streaming task paused, reason not-linked (-1)
> />/  Execution ended after 159787077 ns.
> />/  Impostazione della pipeline a PAUSED ...
> />/  Impostazione della pipeline a READY ...
> />/  Impostazione della pipeline a NULL ...
> />/  Caught SIGSEGV accessing address 0x28
> />/  Spinning.  Please run 'gdb gst-launch 1366' to continue debugging,
> />/  Ctrl-C to quit, or Ctrl-\ to dump core.
> />/  [end]
> />/
> />/  The command is absolutly the same all time.
> />/  Any help is appreciated.
> />/
> />/  Thank you/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130602/1bf18bdd/attachment-0001.html>


More information about the gstreamer-devel mailing list