After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 517237 - [rtspsrc] Better error when bandwidth is too small
[rtspsrc] Better error when bandwidth is too small
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.8
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-02-18 15:12 UTC by Bastien Nocera
Modified: 2008-02-22 09:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2008-02-18 15:12:50 UTC
+++ This bug was initially created as a clone of Bug #516911 +++

$ GST_DEBUG=*:5 gst-launch-0.10 rtspsrc location="rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463" ! fakesink 2> log
ERROR: from element /pipeline0/rtspsrc0: Could not write to resource.
Additional debug info:
gstrtspsrc.c(3770): gst_rtspsrc_setup_streams (): /pipeline0/rtspsrc0:
Could not send message. (OK)

$ gst-launch-0.10 rtspsrc debug=1 location="rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463" ! fakesink
Setting pipeline to PAUSED ...
RTSP request message 0xbff609e0
 request line:
   method: 'OPTIONS'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
 body:
RTSP response message 0xbff609c4
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '0'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
   key: 'Public', value: 'DESCRIBE, SETUP, TEARDOWN, PLAY'
 body: length 0
RTSP request message 0xbff609e0
 request line:
   method: 'DESCRIBE'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
   key: 'Accept', value: 'application/sdp'
 body:
RTSP response message 0xbff609c4
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '1'
   key: 'Content-Length', value: '179'
   key: 'Content-Type', value: 'application/sdp'
   key: 'Content-Language', value: 'fr'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
 body: length 180
00000000 (0x9d5e568): 76 3d 30 0a 6f 3d 6c 65 43 44 4e 20 31 32 30 33  v=0.o=leCDN 1203
00000010 (0x9d5e578): 33 34 37 30 33 32 20 31 32 30 33 33 34 37 30 33  347032 120334703
00000020 (0x9d5e588): 32 20 49 4e 20 49 50 34 20 6b 61 70 6f 75 65 68  2 IN IP4 kapoueh
00000030 (0x9d5e598): 2e 70 72 6f 78 61 64 2e 6e 65 74 0a 73 3d 4b 61  .proxad.net.s=Ka
00000040 (0x9d5e5a8): 6e 61 6c 20 44 0a 69 3d 4b 61 6e 61 6c 20 44 0a  nal D.i=Kanal D.
00000050 (0x9d5e5b8): 63 3d 49 4e 20 49 50 34 20 30 2e 30 2e 30 2e 30  c=IN IP4 0.0.0.0
00000060 (0x9d5e5c8): 0a 74 3d 30 20 30 0a 6d 3d 76 69 64 65 6f 20 30  .t=0 0.m=video 0
00000070 (0x9d5e5d8): 20 52 54 50 2f 41 56 50 20 33 33 0a 61 3d 63 6f   RTP/AVP 33.a=co
00000080 (0x9d5e5e8): 6e 74 72 6f 6c 3a 72 74 73 70 3a 2f 2f 32 31 32  ntrol:rtsp://212
00000090 (0x9d5e5f8): 2e 32 37 2e 33 38 2e 32 35 33 2f 66 72 65 65 62  .27.38.253/freeb
000000a0 (0x9d5e608): 6f 78 74 76 2f 73 74 72 65 61 6d 3f 69 64 3d 34  oxtv/stream?id=4
000000b0 (0x9d5e618): 36 33 0a 00                                      63..            
sdp packet 0xbff60964:
 version:       '0'
 origin:
  username:     'leCDN'
  sess_id:      '1203347032'
  sess_version: '1203347032'
  nettype:      'IN'
  addrtype:     'IP4'
  addr:         'kapoueh.proxad.net'
 session_name:  'Kanal D'
 information:   'Kanal D'
 uri:           '(null)'
 connection:
  nettype:      'IN'
  addrtype:     'IP4'
  address:      '0.0.0.0'
  ttl:          '0'
  addr_number:  '0'
 key:
  type:         '(null)'
  data:         '(null)'
 medias:
  media 0:
   media:       'video'
   port:        '0'
   num_ports:   '4294967295'
   proto:       'RTP/AVP'
   formats:
    format  '33'
   information: '(null)'
   key:
    type:       '(null)'
    data:       '(null)'
   attributes:
    attribute 'control' : 'rtsp://212.27.38.253/freeboxtv/stream?id=463'
RTSP request message 0xbff60818
 request line:
   method: 'SETUP'
   uri:    'rtsp://212.27.38.253/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
   key: 'Transport', value: 'RTP/AVP/UDP;unicast;client_port=48626-48627,RTP/AVP/UDP;multicast,RTP/AVP/TCP;unicast;interleaved=0-1'
 body:
RTSP response message 0xbff607fc
 status line:
   code:   '453'
   reason: 'Not Enough Bandwidth'
   version: '1.0'
 headers:
   key: 'CSeq', value: '2'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
 body: length 0
ERROR: Pipeline doesn't want to pause.
ERROR: from element /pipeline0/rtspsrc0: Could not write to resource.
Additional debug info:
gstrtspsrc.c(3770): gst_rtspsrc_setup_streams (): /pipeline0/rtspsrc0:
Could not send message. (OK)
Setting pipeline to NULL ...
FREEING pipeline ...

Additional log in Bug #516911 comment 1
Comment 1 Wim Taymans 2008-02-22 09:56:14 UTC
        * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_setup_streams):
        Post the server response code in an error message instead of a generic
        'error' message. Fixes #517237.