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 516911 - [rtspsrc] Can't connect to freebox multiroom streams
[rtspsrc] Can't connect to freebox multiroom streams
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-02-16 22:04 UTC by Bastien Nocera
Modified: 2008-06-13 14:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
log.bz2 (162.65 KB, application/x-bzip2)
2008-02-16 22:06 UTC, Bastien Nocera
  Details
generate better error (1.49 KB, patch)
2008-02-18 15:25 UTC, Wim Taymans
committed Details | Review
log2.bz2 (239.77 KB, application/x-bzip2)
2008-02-18 15:26 UTC, Bastien Nocera
  Details
Totem output (vlc is the same) (365.14 KB, image/png)
2008-02-18 19:33 UTC, Baptiste Mille-Mathias
  Details

Description Bastien Nocera 2008-02-16 22:04:53 UTC
$ 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)

Streaming works with VLC
Comment 1 Bastien Nocera 2008-02-16 22:06:49 UTC
Created attachment 105410 [details]
log.bz2

bzipped2 log
Comment 2 Wim Taymans 2008-02-18 14:47:05 UTC
The server returns a 453 error, Not enough Bandwidth. I have no idea where this bandwidth should be negotiated. Can you add the debug=1 property to rtspsrc and also the RTSP requests with a working client for comparision?
Comment 3 Bastien Nocera 2008-02-18 15:22:13 UTC
Moved the bandwidth error message problem to bug 517237.

$ totem rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463

0:00:20.702965405  7932 0x9bb9458 ERROR                totem bacon-video-widget-gst-0.10.c:324:bvw_error_msg: message = The stream is in the wrong format.
0:00:20.703103481  7932 0x9bb9458 ERROR                totem bacon-video-widget-gst-0.10.c:326:bvw_error_msg: domain  = 2521 (gst-stream-error-quark)
0:00:20.703168783  7932 0x9bb9458 ERROR                totem bacon-video-widget-gst-0.10.c:327:bvw_error_msg: code    = 11
0:00:20.703228008  7932 0x9bb9458 ERROR                totem bacon-video-widget-gst-0.10.c:328:bvw_error_msg: debug   = gstrtspsrc.c(3783): gst_rtspsrc_setup_streams (): /play/source:
No supported stream was found.
0:00:20.703357285  7932 0x9bb9458 ERROR                totem bacon-video-widget-gst-0.10.c:329:bvw_error_msg: source  = <source>
0:00:20.703467494  7932 0x9bb9458 ERROR                totem bacon-video-widget-gst-0.10.c:330:bvw_error_msg: uri     = rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463
** Message: Error: The stream is in the wrong format.
gstrtspsrc.c(3783): gst_rtspsrc_setup_streams (): /play/source:
No supported stream was found.

Log below.
Comment 4 Wim Taymans 2008-02-18 15:25:31 UTC
Created attachment 105509 [details] [review]
generate better error
Comment 5 Bastien Nocera 2008-02-18 15:26:50 UTC
Created attachment 105510 [details]
log2.bz2

Log with enough bandwidth, and in totem.
Comment 6 Wim Taymans 2008-02-18 15:31:11 UTC
Now it fails to negotiate a transport (server returns 461). Can you do a debug=1 log of rtspsrc to see what is exchanged with the server?
Comment 7 Bastien Nocera 2008-02-18 15:37:54 UTC
$ gst-launch-0.10 rtspsrc debug=1 location="rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463" ! fakesink
Setting pipeline to PAUSED ...
RTSP request message 0xbfa84500
 request line:
   method: 'OPTIONS'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
 body:
RTSP response message 0xbfa844e4
 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 0xbfa84500
 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 0xbfa844e4
 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 (0x9253578): 76 3d 30 0a 6f 3d 6c 65 43 44 4e 20 31 32 30 33  v=0.o=leCDN 1203
00000010 (0x9253588): 33 34 38 39 32 34 20 31 32 30 33 33 34 38 39 32  348924 120334892
00000020 (0x9253598): 34 20 49 4e 20 49 50 34 20 6b 61 70 6f 75 65 68  4 IN IP4 kapoueh
00000030 (0x92535a8): 2e 70 72 6f 78 61 64 2e 6e 65 74 0a 73 3d 4b 61  .proxad.net.s=Ka
00000040 (0x92535b8): 6e 61 6c 20 44 0a 69 3d 4b 61 6e 61 6c 20 44 0a  nal D.i=Kanal D.
00000050 (0x92535c8): 63 3d 49 4e 20 49 50 34 20 30 2e 30 2e 30 2e 30  c=IN IP4 0.0.0.0
00000060 (0x92535d8): 0a 74 3d 30 20 30 0a 6d 3d 76 69 64 65 6f 20 30  .t=0 0.m=video 0
00000070 (0x92535e8): 20 52 54 50 2f 41 56 50 20 33 33 0a 61 3d 63 6f   RTP/AVP 33.a=co
00000080 (0x92535f8): 6e 74 72 6f 6c 3a 72 74 73 70 3a 2f 2f 32 31 32  ntrol:rtsp://212
00000090 (0x9253608): 2e 32 37 2e 33 38 2e 32 35 33 2f 66 72 65 65 62  .27.38.253/freeb
000000a0 (0x9253618): 6f 78 74 76 2f 73 74 72 65 61 6d 3f 69 64 3d 34  oxtv/stream?id=4
000000b0 (0x9253628): 36 33 0a 00                                      63..            
sdp packet 0xbfa84484:
 version:       '0'
 origin:
  username:     'leCDN'
  sess_id:      '1203348924'
  sess_version: '1203348924'
  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 0xbfa84338
 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=39844-39845,RTP/AVP/UDP;multicast,RTP/AVP/TCP;unicast;interleaved=0-1'
 body:
RTSP response message 0xbfa8431c
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '2'
   key: 'Session', value: 'CWQcDgx8raZlCjNUOHapGI5g790vIQnbD4e7aB5sCUD44hPIPPYloTslTiGsZUt'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
   key: 'Transport', value: 'RTP/AVP;unicast;mode=play;destination=212.27.38.254;client_port=39844-39845;server_port=32768-32769'
 body: length 0

(gst-launch-0.10:9092): GLib-GObject-WARNING **: gsignal.c:1669: signal `on-bye-ssrc' is invalid for instance `0x9261038'

(gst-launch-0.10:9092): GLib-GObject-WARNING **: gsignal.c:1669: signal `on-bye-timeout' is invalid for instance `0x9261038'

(gst-launch-0.10:9092): GLib-GObject-WARNING **: gsignal.c:1669: signal `on-timeout' is invalid for instance `0x9261038'
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
RTSP request message 0xbfa845d4
 request line:
   method: 'PLAY'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
   key: 'Range', value: 'npt=0-'
 body:
RTSP response message 0xbfa845b8
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '3'
   key: 'Session', value: 'CWQcDgx8raZlCjNUOHapGI5g790vIQnbD4e7aB5sCUD44hPIPPYloTslTiGsZUt'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
 body: length 0
New clock: GstSystemClock
RTSP request message 0xb6a64140
 request line:
   method: 'PAUSE'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
 body:
WARNING: from element /pipeline0/rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(2797): gst_rtspsrc_loop_udp (): /pipeline0/rtspsrc0:
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a TCP connection.
RTSP response message 0xb6a64124
 status line:
   code:   '501'
   reason: 'Not Implemented'
   version: '1.0'
 headers:
   key: 'CSeq', value: '4'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
 body: length 0
RTSP request message 0xb6a64140
 request line:
   method: 'TEARDOWN'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
 body:
RTSP response message 0xb6a64124
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '5'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
 body: length 0
RTSP request message 0xb6a64130
 request line:
   method: 'OPTIONS'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
 body:
RTSP response message 0xb6a64114
 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 0xb6a64130
 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 0xb6a64114
 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 (0x926f900): 76 3d 30 0a 6f 3d 6c 65 43 44 4e 20 31 32 30 33  v=0.o=leCDN 1203
00000010 (0x926f910): 33 34 38 39 33 37 20 31 32 30 33 33 34 38 39 33  348937 120334893
00000020 (0x926f920): 37 20 49 4e 20 49 50 34 20 6b 61 70 6f 75 65 68  7 IN IP4 kapoueh
00000030 (0x926f930): 2e 70 72 6f 78 61 64 2e 6e 65 74 0a 73 3d 4b 61  .proxad.net.s=Ka
00000040 (0x926f940): 6e 61 6c 20 44 0a 69 3d 4b 61 6e 61 6c 20 44 0a  nal D.i=Kanal D.
00000050 (0x926f950): 63 3d 49 4e 20 49 50 34 20 30 2e 30 2e 30 2e 30  c=IN IP4 0.0.0.0
00000060 (0x926f960): 0a 74 3d 30 20 30 0a 6d 3d 76 69 64 65 6f 20 30  .t=0 0.m=video 0
00000070 (0x926f970): 20 52 54 50 2f 41 56 50 20 33 33 0a 61 3d 63 6f   RTP/AVP 33.a=co
00000080 (0x926f980): 6e 74 72 6f 6c 3a 72 74 73 70 3a 2f 2f 32 31 32  ntrol:rtsp://212
00000090 (0x926f990): 2e 32 37 2e 33 38 2e 32 35 33 2f 66 72 65 65 62  .27.38.253/freeb
000000a0 (0x926f9a0): 6f 78 74 76 2f 73 74 72 65 61 6d 3f 69 64 3d 34  oxtv/stream?id=4
000000b0 (0x926f9b0): 36 33 0a 00                                      63..            
sdp packet 0xb6a640b4:
 version:       '0'
 origin:
  username:     'leCDN'
  sess_id:      '1203348937'
  sess_version: '1203348937'
  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 0xb6a63f68
 request line:
   method: 'SETUP'
   uri:    'rtsp://212.27.38.253/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
   key: 'Transport', value: 'RTP/AVP/TCP;unicast;interleaved=0-1'
 body:
RTSP response message 0xb6a63f4c
 status line:
   code:   '461'
   reason: 'Unsupported Transport'
   version: '1.0'
 headers:
   key: 'CSeq', value: '2'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
 body: length 0
ERROR: from element /pipeline0/rtspsrc0: The stream is in the wrong format.
Additional debug info:
gstrtspsrc.c(3783): gst_rtspsrc_setup_streams (): /pipeline0/rtspsrc0:
No supported stream was found.
Execution ended after 12138748066 ns.
Setting pipeline to PAUSED ...
RTSP request message 0xbfa845e0
 request line:
   method: 'PAUSE'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
 body:
RTSP response message 0xbfa845c4
 status line:
   code:   '501'
   reason: 'Not Implemented'
   version: '1.0'
 headers:
   key: 'CSeq', value: '3'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
 body: length 0
Setting pipeline to READY ...
RTSP request message 0xbfa845e0
 request line:
   method: 'TEARDOWN'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463'
   version: '1.0'
 headers:
 body:
RTSP response message 0xbfa845c4
 status line:
   code:   '455'
   reason: 'Method Not Valid In This State'
   version: '1.0'
 headers:
   key: 'CSeq', value: '4'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
 body: length 0
Setting pipeline to NULL ...
FREEING pipeline ...
Comment 8 Bastien Nocera 2008-02-18 17:34:21 UTC
I wasn't able to get the stream running with VLC either, so it might be a red herring. The error message shown in Totem ("Could not open resource for reading and writing.") could still be improved upon as well.

Any of the people on CC: having luck getting the streams to work with VLC/GStreamer?
Comment 9 Vincent Untz 2008-02-18 17:44:52 UTC
(In reply to comment #8)
> Any of the people on CC: having luck getting the streams to work with
> VLC/GStreamer?

Can't test right now. My computer is in a bad state :/ Maybe Baptiste can test?

I expect it to work, though, else it means it's totally broken for everybody. Or maybe it only works with vlc on windows (?).
Comment 10 Baptiste Mille-Mathias 2008-02-18 18:16:25 UTC
youp, I'll do that tonight.

If you need to run test with various command, please put comments or contact me on IRC, my nick is crevette
Comment 11 Baptiste Mille-Mathias 2008-02-18 19:33:13 UTC
it seems rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=463 is not a free channel, I recieved an error "RTSP/1.0 402 Payment Required" when I accessed to it.
I took another channel from http://mafreebox.freebox.fr/freeboxtv/playlist.m3u, like France 2 (rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=201). I can see some output on vlc and totem with the same quality (some sound sometimes with jitter, and some video (look at the screenshot).

gstreamer0.10-alsa 0.10.17-2
gstreamer0.10-esd 0.10.6.3-1
gstreamer0.10-ffmpeg 0.10.3-5
gstreamer0.10-fluendo-mp3 0.10.6.debian-1
gstreamer0.10-fluendo-mpegdemux 0.10.15-1
gstreamer0.10-gnomevfs 0.10.17-2
gstreamer0.10-pitfdll 0.9.1.1+cvs20070321-2
gstreamer0.10-plugins-bad 0.10.5.3-1ubuntu1
gstreamer0.10-plugins-bad-multiverse 0.10.5-3ubuntu1
gstreamer0.10-plugins-base 0.10.17-2
gstreamer0.10-plugins-base-apps 0.10.17-2
gstreamer0.10-plugins-farsight 0.12.5-1ubuntu2
gstreamer0.10-plugins-good 0.10.6.3-1
gstreamer0.10-plugins-ugly 0.10.6.3-1
gstreamer0.10-plugins-ugly-multiverse 0.10.6-0ubuntu1
gstreamer0.10-pulseaudio 0.9.7-1
gstreamer0.10-tools 0.10.17-1ubuntu1
gstreamer0.10-x 0.10.17-2
libgstreamer-plugins-base0.10-0 0.10.17-2
libgstreamer-plugins-base0.10-dev 0.10.17-2
libgstreamer-plugins-pulse0.10-0 0.9.7-1
libgstreamer0.10-0 0.10.17-1ubuntu1
libgstreamer0.10-dev 0.10.17-1ubuntu1
totem-gstreamer 2.21.93-0ubuntu1
Comment 12 Baptiste Mille-Mathias 2008-02-18 19:33:58 UTC
Created attachment 105532 [details]
Totem output (vlc is the same)
Comment 13 Baptiste Mille-Mathias 2008-02-18 19:40:02 UTC
It seems the bad quality comes from a lack a bandwidth when my freebox in on. I f I switch it off; I can see the rtsp stream without any issue.
Comment 14 Baptiste Mille-Mathias 2008-02-18 20:17:11 UTC
I paste the output of gst-launch.

~> gst-launch-0.10 rtspsrc debug=1 location="rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=497" ! fakesink
Mise du pipeline en PAUSE...
RTSP request message 0xbf902590
 request line:
   method: 'OPTIONS'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=497'
   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 0xbf902574
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '0'
   key: 'Server', value: 'fbxrtspd/1.1 Freebox minimal RTSP server'
   key: 'Public', value: 'DESCRIBE, SETUP, TEARDOWN, PLAY'
 body: length 0
RTSP request message 0xbf902590
 request line:
   method: 'DESCRIBE'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=497'
   version: '1.0'
 headers:
   key: 'Accept', value: 'application/sdp'
   key: 'Bandwidth', value: '10485800'
   key: 'GUID', value: '00000000-0000-0000-0000-000000000000'
   key: 'RegionData', value: '0'
   key: 'ClientID', value: 'Linux_2.4_6.0.9.1235_play32_RN01_EN_586'
   key: 'SupportsMaximumASMBandwidth', value: '1'
   key: 'Language', value: 'en-US'
 body:
RTSP response message 0xbf902574
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '1'
   key: 'Content-Length', value: '171'
   key: 'Content-Type', value: 'application/sdp'
   key: 'Content-Language', value: 'fr'
   key: 'Server', value: 'fbxrtspd/1.1 Freebox minimal RTSP server'
 body: length 172
00000000 (0x813a308): 76 3d 30 0a 6f 3d 6c 65 43 44 4e 20 31 32 30 33  v=0.o=leCDN 1203
00000010 (0x813a318): 33 36 35 35 36 37 20 31 32 30 33 33 36 35 35 36  365567 120336556
00000020 (0x813a328): 37 20 49 4e 20 49 50 34 20 6b 61 70 6f 75 65 68  7 IN IP4 kapoueh
00000030 (0x813a338): 2e 70 72 6f 78 61 64 2e 6e 65 74 0a 73 3d 54 4d  .proxad.net.s=TM
00000040 (0x813a348): 43 0a 69 3d 54 4d 43 0a 63 3d 49 4e 20 49 50 34  C.i=TMC.c=IN IP4
00000050 (0x813a358): 20 30 2e 30 2e 30 2e 30 0a 74 3d 30 20 30 0a 6d   0.0.0.0.t=0 0.m
00000060 (0x813a368): 3d 76 69 64 65 6f 20 30 20 52 54 50 2f 41 56 50  =video 0 RTP/AVP
00000070 (0x813a378): 20 33 33 0a 61 3d 63 6f 6e 74 72 6f 6c 3a 72 74   33.a=control:rt
00000080 (0x813a388): 73 70 3a 2f 2f 32 31 32 2e 32 37 2e 33 38 2e 32  sp://212.27.38.2
00000090 (0x813a398): 35 33 2f 66 72 65 65 62 6f 78 74 76 2f 73 74 72  53/freeboxtv/str
000000a0 (0x813a3a8): 65 61 6d 3f 69 64 3d 34 39 37 0a 00              eam?id=497..    
sdp packet 0xbf902514:
 version:       '0'
 origin:
  username:     'leCDN'
  sess_id:      '1203365567'
  sess_version: '1203365567'
  nettype:      'IN'
  addrtype:     'IP4'
  addr:         'kapoueh.proxad.net'
 session_name:  'TMC'
 information:   'TMC'
 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=497'
RTSP request message 0xbf9023f8
 request line:
   method: 'SETUP'
   uri:    'rtsp://212.27.38.253/freeboxtv/stream?id=497'
   version: '1.0'
 headers:
   key: 'Transport', value: 'RTP/AVP/UDP;unicast;client_port=46694-46695,RTP/AVP/UDP;multicast,RTP/AVP/TCP;unicast;interleaved=0-1'
 body:
RTSP response message 0xbf9023dc
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '2'
   key: 'Session', value: 'RMc1vr5L5NzJXIYb0ZmBoNY6PGERJlhqXjiiAeUwSj6GSUIIKU9YxYVdvqV5B2m'
   key: 'Server', value: 'fbxrtspd/1.1 Freebox minimal RTSP server'
   key: 'Transport', value: 'RTP/AVP;unicast;mode=play;destination=192.168.0.12;client_port=46694-46695;server_port=32771-32772'
 body: length 0
Le pipeline est en vie et ne nécessite pas de redémarrer ...
Assignant le pipeline à PLAYING ...
RTSP request message 0xbf902634
 request line:
   method: 'PLAY'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=497'
   version: '1.0'
 headers:
   key: 'Range', value: 'npt=0-'
 body:
RTSP response message 0xbf902618
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '3'
   key: 'Session', value: 'RMc1vr5L5NzJXIYb0ZmBoNY6PGERJlhqXjiiAeUwSj6GSUIIKU9YxYVdvqV5B2m'
   key: 'Server', value: 'fbxrtspd/1.1 Freebox minimal RTSP server'
 body: length 0
New clock: GstSystemClock
Comment 15 Bastien Nocera 2008-02-18 23:09:41 UTC
FWIW, it seems to work (a bit) better without any firewalls in between, and probably much better with better bandwidth. I managed to get some video frames out of "France 2", but any other attempts threw similar errors to before. I guess my attempts with VLC were aborted by the same bandwidth problems.
Comment 16 Wim Taymans 2008-02-22 09:57:41 UTC
Commited patch in Comment #4

        * 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.
Comment 17 Julien Isorce 2008-03-09 01:11:44 UTC
Hi, can you write here the command line which works ?
On kubuntu-kde4 alpha released the following commandline works : 
gst-launch-0.10 -v rtspsrc location="rtsp://mafreebox.freebox.fr/freeboxtv/201" ! fakesink 
(it works because a lot of output text is written ...)

But to see video :P, I tried this one :
gst-launch-0.10 rtspsrc location="rtsp://mafreebox.freebox.fr/freeboxtv/201" ! decodebin ! ffmpegcolorspace ! ximagesink
All seems ok but no video appears.

log=

gst-launch-0.10 -v rtspsrc location="rtsp://mafreebox.freebox.fr/freeboxtv/201" ! decodebin ! ffmpegcolorspace ! ximagesink
Mise du pipeline en PAUSE...
/pipeline0/rtspsrc0/rtpbin0: latency = 3000
/pipeline0/rtspsrc0/udpsrc0: timeout = 5000000
Le pipeline est en vie et ne nécessite pas de redémarrer ...
Assignant le pipeline à PLAYING ...
/pipeline0/rtspsrc0/rtpbin0/rtpsession0: ntp-ns-base = 3414013826523355000
New clock: GstSystemClock
/pipeline0/rtspsrc0/udpsrc0: timeout = 0
/pipeline0/decodebin0/typefind.src: caps = application/x-rtp, media=(string)video, payload=(int)33, clock-rate=(int)90000, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/pipeline0/decodebin0/typefind.sink: caps = application/x-rtp, media=(string)video,payload=(int)33, clock-rate=(int)90000, npt-start=(guint64)0, play-speed=(double)1,play-scale=(double)1
/pipeline0/decodebin0.sink: caps = application/x-rtp, media=(string)video, payload=(int)33, clock-rate=(int)90000, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/pipeline0/rtspsrc0.recv_rtp_src_0_0_33: caps = application/x-rtp, media=(string)video, payload=(int)33, clock-rate=(int)90000, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/pipeline0/rtspsrc0.recv_rtp_src_0_0_33.proxypad5: caps = application/x-rtp, media=(string)video, payload=(int)33, clock-rate=(int)90000, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/pipeline0/rtspsrc0/rtpbin0.recv_rtp_src_0_0_33: caps = application/x-rtp, media=(string)video, payload=(int)33, clock-rate=(int)90000, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/pipeline0/rtspsrc0/rtpbin0.recv_rtp_src_0_0_33.proxypad4: caps = application/x-rtp, media=(string)video, payload=(int)33, clock-rate=(int)90000, npt-start=(guint64)0,play-speed=(double)1, play-scale=(double)1
/pipeline0/decodebin0.sink: caps = application/x-rtp, media=(string)video, payload=(int)33, clock-rate=(int)90000, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/pipeline0/decodebin0.sink.proxypad0: caps = application/x-rtp, media=(string)video, payload=(int)33, clock-rate=(int)90000, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/pipeline0/decodebin0/rtpmp2tdepay0.src: caps = video/mpegts, packetsize=(int)188, systemstream=(boolean)true
/pipeline0/decodebin0/rtpmp2tdepay0.sink: caps = application/x-rtp, media=(string)video, payload=(int)33, clock-rate=(int)90000, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1
/pipeline0/decodebin0/flutsdemux0.sink: caps = video/mpegts, packetsize=(int)188, systemstream=(boolean)true
/pipeline0/decodebin0/flutsdemux0: pat-info = ((GValueArray*) 0x8143880)
/pipeline0/decodebin0/flutsdemux0: pmt-info = ((FluTsPmtInfo*) 0x82ec040)
/pipeline0/decodebin0/queue0.sink: caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/pipeline0/decodebin0/queue0.src: caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/pipeline0/decodebin0/mpegvideoparse0.sink: caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false
/pipeline0/decodebin0/mpegvideoparse0.src: caps = video/mpeg, systemstream=(boolean)false, parsed=(boolean)true, mpegversion=(int)2, width=(int)480, height=(int)576, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)8/5, codec_data=(buffer)000001b31e024023249f238110111113121314141414161516151617171817181719191a191a18191a1a1b1b1c1b1b1a1c1d1d1e1d1d1c1f1f201f201e21222122212423242326272629282b000001b5148200010000
/pipeline0/rtspsrc0/rtpbin0/rtpsession0.send_rtcp_src: caps = application/x-rtcp
/pipeline0/rtspsrc0/udpsink0.sink: caps = application/x-rtcp
/pipeline0/rtspsrc0/rtpbin0.send_rtcp_src_0: caps = application/x-rtcp
/pipeline0/rtspsrc0/rtpbin0.send_rtcp_src_0.proxypad3: caps = application/x-rtcp

and nothing else happens.

Where am I wrong ?
thx
Comment 18 Julien Isorce 2008-03-09 01:15:55 UTC
and debug=1 :

gst-launch-0.10 rtspsrc debug=1 location="rtsp://mafreebox.freebox.fr/freeboxtv/201" ! decodebin ! ffmpegcolorspace ! ximagesink
Mise du pipeline en PAUSE...
RTSP request message 0xbfd368f0
 request line:
   method: 'OPTIONS'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/201'
   version: '1.0'
 headers:
 body:
RTSP response message 0xbfd368d4
 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 0xbfd368f0
 request line:
   method: 'DESCRIBE'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/201'
   version: '1.0'
 headers:
   key: 'Accept', value: 'application/sdp'
 body:
RTSP response message 0xbfd368d4
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '1'
   key: 'Content-Length', value: '182'
   key: 'Content-Type', value: 'application/sdp'
   key: 'Content-Language', value: 'fr'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
 body: length 183
00000000 (0x81386b0): 76 3d 30 0a 6f 3d 6c 65 43 44 4e 20 31 32 30 35  v=0.o=leCDN 1205
00000010 (0x81386c0): 30 32 35 32 38 35 20 31 32 30 35 30 32 35 32 38  025285 120502528
00000020 (0x81386d0): 35 20 49 4e 20 49 50 34 20 6b 61 70 6f 75 65 68  5 IN IP4 kapoueh
00000030 (0x81386e0): 2e 70 72 6f 78 61 64 2e 6e 65 74 0a 73 3d 46 72  .proxad.net.s=Fr
00000040 (0x81386f0): 61 6e 63 65 20 32 0a 69 3d 46 72 61 6e 63 65 20  ance 2.i=France
00000050 (0x8138700): 32 0a 63 3d 49 4e 20 49 50 34 20 30 2e 30 2e 30  2.c=IN IP4 0.0.0
00000060 (0x8138710): 2e 30 0a 74 3d 30 20 30 0a 6d 3d 76 69 64 65 6f  .0.t=0 0.m=video
00000070 (0x8138720): 20 30 20 52 54 50 2f 41 56 50 20 33 33 0a 61 3d   0 RTP/AVP 33.a=
00000080 (0x8138730): 63 6f 6e 74 72 6f 6c 3a 72 74 73 70 3a 2f 2f 32  control:rtsp://2
00000090 (0x8138740): 31 32 2e 32 37 2e 33 38 2e 32 35 33 2f 2f 66 72  12.27.38.253//fr
000000a0 (0x8138750): 65 65 62 6f 78 74 76 2f 73 74 72 65 61 6d 3f 69  eeboxtv/stream?i
000000b0 (0x8138760): 64 3d 32 30 31 0a 00                             d=201..
sdp packet 0xbfd36874:
 version:       '0'
 origin:
  username:     'leCDN'
  sess_id:      '1205025285'
  sess_version: '1205025285'
  nettype:      'IN'
  addrtype:     'IP4'
  addr:         'kapoueh.proxad.net'
 session_name:  'France 2'
 information:   'France 2'
 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=201'
RTSP request message 0xbfd36758
 request line:
   method: 'SETUP'
   uri:    'rtsp://212.27.38.253//freeboxtv/stream?id=201'
   version: '1.0'
 headers:
   key: 'Transport', value: 'RTP/AVP/UDP;unicast;client_port=52474-52475,RTP/AVP/UDP;multicast,RTP/AVP/TCP;unicast;interleaved=0-1'
 body:
RTSP response message 0xbfd3673c
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '2'
   key: 'Session', value: 'iIODgM1C1vFgQQObxqvLEW5SBmnH3Eobc3EjFwLwRhDxYhymyTX2FTL65ZEYtT0'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
   key: 'Transport', value: 'RTP/AVP;unicast;mode=play;destination=192.168.0.11;client_port=52474-52475;server_port=32768-32769'
 body: length 0
Le pipeline est en vie et ne nécessite pas de redémarrer ...
Assignant le pipeline à PLAYING ...
RTSP request message 0xbfd36994
 request line:
   method: 'PLAY'
   uri:    'rtsp://mafreebox.freebox.fr/freeboxtv/201'
   version: '1.0'
 headers:
   key: 'Range', value: 'npt=0-'
 body:
RTSP response message 0xbfd36978
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '3'
   key: 'Session', value: 'iIODgM1C1vFgQQObxqvLEW5SBmnH3Eobc3EjFwLwRhDxYhymyTX2FTL65ZEYtT0'
   key: 'Server', value: 'fbxrtspd/1.0 Freebox minimal RTSP server'
 body: length 0
New clock: GstSystemClock


thx
Comment 19 Julien Isorce 2008-04-09 17:14:41 UTC
Ok the following pipeline works:

gst-launch-0.10 rtspsrc location="rtsp://mafreebox.freebox.fr/freeboxtv/201" ! rtpmp2tdepay ! flutsdemux name=d d. ! mpeg2dec ! queue ! ffmpegcolorspace ! videoscale ! ximagesink d. ! mad ! queue ! alsasink

and this one too:
gst-launch-0.10 playbin uri="rtsp://mafreebox.freebox.fr/freeboxtv/201"
Comment 20 Wim Taymans 2008-05-26 10:57:56 UTC
can this be closed now? What's left to check?
Comment 21 Julien Isorce 2008-06-01 21:47:23 UTC
Yes I think.

Note that even if I do not know if a lot a ISP (Internet Service Providers) that provide multiroom streams, a list of 'command line pipelines' examples, that shows how to acces to those Internet Boxes (Feebox in France, etc...) should be put somewhere on the gstreamer-wiki.