RTSP Stream Not working, Response Fails for Play request.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

RTSP Stream Not working, Response Fails for Play request.

Shrishty Deorari
Hi All,

I am trying to play a RTSP stream which has Audio+Video data. But the stream fails to play with the error:

gstrtspsrc.c:5564:gst_rtspsrc_send:<rtspsrc0> [00m got error -8
which is GST_RTSP_EPARSE (-8)

Following is the Pipeline I ran:

./gst-launch-1.0  --gst-debug=rtspsrc:7 rtspsrc location="rtsp://65.254.18.61:555/StdCh1" debug=1 ! rtph264depay ! avdec_h264 ! videoconvert ! xvimagesink

This is a very simple pipeline, but somehow this particular stream is not able to get played, while the same works fine with VLC and mplayer.
Below are the logs for rtsp communication and error:

LOgs for Describe Request Respose:

sdp packet 0x7ff18c026140:
 version:       '0'
 origin:
  username:     '-'
  sess_id:      '0'
  sess_version: '0'
  nettype:      'IN'
  addrtype:     'IP4'
  addr:         '192.168.56.61'
 session_name:  'SPECOServer'
 information:   '(NULL)'
 uri:           '(NULL)'
 emails:
  email 'NONE'
 connection:
  nettype:      'IN'
  addrtype:     'IP4'
  address:      '0.0.0.0'
  ttl:          '0'
  addr_number:  '0'
 key:
  type:         '(NULL)'
  data:         '(NULL)'
 attributes:
  attribute 'control' : '*'
  attribute 'range' : 'npt=0.000000-'
 medias:
  media 0:
   media:       'video'
   port:        '0'
   num_ports:   '0'
   proto:       'RTP/AVP'
   formats:
    format  '97'
   information: '(NULL)'
   bandwidths:
    type:         'AS'
    bandwidth:    '2560000'
   key:
    type:       '(NULL)'
    data:       '(NULL)'
   attributes:
    attribute 'framerate' : '30.0'
    attribute 'control' : 'trackID=0'
    attribute 'rtpmap' : '97 H264/90000'
    attribute 'fmtp' : '97 packetization-mode=1; profile-level-id=4d0029;sprop-parameter-sets=Z00AKZpkA8ARPy4C3AQEBQAAAwPoAADqYOhgAMNkAAMNkLvLjQwAGGyAAGGyF3lwoA==,aO48gA==;'
    attribute 'framesize' : '97 1920-1080'
    attribute 'recvonly' : ''
  media 1:
   media:       'audio'
   port:        '0'
   num_ports:   '0'
   proto:       'RTP/AVP'
   formats:
    format  '0'
   information: '(NULL)'
   bandwidths:
    type:         'AS'
    bandwidth:    '64000'
   key:
    type:       '(NULL)'
    data:       '(NULL)'
   attributes:
    attribute 'control' : 'trackID=1'
    attribute 'rtpmap' : '0 PCMU/8000/1'
    attribute 'recvonly' : ''
  media 2:
   media:       'application'
   port:        '0'
   num_ports:   '0'
   proto:       'RTP/AVP'
   formats:
    format  '107'
   information: '(NULL)'
   key:
    type:       '(NULL)'
    data:       '(NULL)'
   attributes:
    attribute 'control' : 'trackID=2'
    attribute 'rtpmap' : '107 vnd.onvif.metadata/90000'
----------------------------------------------------------
Logs for RTSP play request:

RTSP request message 0x7ff191d41c90
 request line:
   method: 'PLAY'
   uri:    'rtsp://65.254.18.61:555/StdCh1'
   version: '1.0'
 headers:
Progress: (request) Sending PLAY request
   key: 'User-Agent', value: 'GStreamer/1.12.1'
   key: 'Range', value: 'npt=0-'
 body:
 
** (gst-launch-1.0:1944): WARNING **: Sending Data :PLAY rtsp://65.254.18.61:555/StdCh1 RTSP/1.0 
CSeq: 7 
User-Agent: GStreamer/1.12.1 
Range: npt=0- 
Session: 0305430776 
Authorization: Digest username="admin", realm="RtspServer_5cf20718d3ab", nonce="62c8897f0ca73ee635ec360f24919836", uri="rtsp://65.254.18.61:555/StdCh1", response="ff0ae5efd9529ae2b19670fdc1388e1e" 
Date: Wed, 11 Oct 2017 05:07:35 GMT 
 
 
 
0:00:03.353165276 [331m 1944 [00m      0x25e9190 [33;01mWARN   [00m [00m             rtspsrc gstrtspsrc.c:5462:gst_rtspsrc_try_send:<rtspsrc0> [00m error: Could not receive message. (Parse error)
0:00:03.353408957 [331m 1944 [00m      0x25e9190 [37mDEBUG  [00m [00m             rtspsrc gstrtspsrc.c:5564:gst_rtspsrc_send:<rtspsrc0> [00m got error -8
0:00:03.353450387 [331m 1944 [00m      0x25e9190 [33;01mWARN   [00m [00m             rtspsrc gstrtspsrc.c:7397:gst_rtspsrc_play:<rtspsrc0> [00m error: Could not send message. (Parse error)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5462): gst_rtspsrc_try_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (Parse error)
Execution ended after 0:00:00.212607666
Setting pipeline to PAUSED ...




If anyone ever faced this same issue please let me know. The complete log file is attached below.
 



With Warm Regards,

Shrishty Deorari

VVDN Technologies Pvt Ltd

Cell : +91 7773980237 | Skype : shrishty_vvdn



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

logs_1.txt (105K) Download Attachment