[Bug 639420] RTSP setup, add client_ports

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Nov 6 09:01:55 PST 2012


https://bugzilla.gnome.org/show_bug.cgi?id=639420
  GStreamer | gst-plugins-good | 0.10.26

--- Comment #10 from Marc Leeman <marc.leeman at gmail.com> 2012-11-06 17:01:49 UTC ---
Trace with the afore mentioned patch, including the \"reuse\" set to TRUE so
that multiple decoders can listen to this stream.

This particular encoder seems to require the client to suggest the ports it
needs to send to; otherwise it will use the same ports.

IIRC, this is indeed the behaviour of the live555 stack.

barco at mgsserver001:~$ gst-launch rtspsrc
location=rtsp://172.16.68.208/media/video1 protocols=0x2 debug=1
port-range=3000-3004 ! decodebin2 ! autovideosink
Setting pipeline to PAUSED ...
RTSP request message 0x7fffddd3bd80
 request line:
   method: 'OPTIONS'
   uri:    'rtsp://172.16.68.208/media/video1'
   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 0x7fffddd3bd40
 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: 'PLAY'
   key: 'Public', value: 'TEARDOWN'
   key: 'Public', value: 'GET_PARAMETER'
   key: 'Public', value: 'SET_PARAMETER'
   key: 'Content-Length', value: '0'
 body: length 1
00000000 (0x1509690): 00                                               .        
RTSP request message 0x7fffddd3bd80
 request line:
   method: 'DESCRIBE'
   uri:    'rtsp://172.16.68.208/media/video1'
   version: '1.0'
 headers:
   key: 'Accept', value: 'application/sdp'
 body:
RTSP response message 0x7fffddd3bd40
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '2'
   key: 'Content-Base', value: 'rtsp://172.16.68.208/media/video1/'
   key: 'Content-Type', value: 'application/sdp'
   key: 'Content-Length', value: '352'
 body: length 353
00000000 (0x150b210): 76 3d 30 0d 0a 6f 3d 2d 20 31 32 33 31 30 33 38  v=0..o=-
1231038
00000010 (0x150b220): 31 37 30 20 31 20 49 4e 20 49 50 34 20 31 37 32  170 1 IN
IP4 172
00000020 (0x150b230): 2e 31 36 2e 36 38 2e 32 30 38 0d 0a 73 3d 53 4f 
.16.68.208..s=SO
00000030 (0x150b240): 4e 59 20 52 54 53 50 20 53 65 72 76 65 72 0d 0a  NY RTSP
Server..
00000040 (0x150b250): 63 3d 49 4e 20 49 50 34 20 30 2e 30 2e 30 2e 30  c=IN IP4
0.0.0.0
00000050 (0x150b260): 0d 0a 74 3d 30 20 30 0d 0a 61 3d 72 61 6e 67 65  ..t=0
0..a=range
00000060 (0x150b270): 3a 6e 70 74 3d 6e 6f 77 2d 0d 0a 6d 3d 76 69 64 
:npt=now-..m=vid
00000070 (0x150b280): 65 6f 20 30 20 52 54 50 2f 41 56 50 20 31 30 35  eo 0
RTP/AVP 105
00000080 (0x150b290): 0d 0a 61 3d 72 74 70 6d 61 70 3a 31 30 35 20 48 
..a=rtpmap:105 H
00000090 (0x150b2a0): 32 36 34 2f 39 30 30 30 30 0d 0a 61 3d 63 6f 6e 
264/90000..a=con
000000a0 (0x150b2b0): 74 72 6f 6c 3a 76 69 64 65 6f 0d 0a 61 3d 66 72 
trol:video..a=fr
000000b0 (0x150b2c0): 61 6d 65 72 61 74 65 3a 32 35 2e 30 0d 0a 61 3d 
amerate:25.0..a=
000000c0 (0x150b2d0): 66 6d 74 70 3a 31 30 35 20 70 61 63 6b 65 74 69  fmtp:105
packeti
000000d0 (0x150b2e0): 7a 61 74 69 6f 6e 2d 6d 6f 64 65 3d 31 3b 20 70 
zation-mode=1; p
000000e0 (0x150b2f0): 72 6f 66 69 6c 65 2d 6c 65 76 65 6c 2d 69 64 3d 
rofile-level-id=
000000f0 (0x150b300): 34 32 38 30 31 66 3b 20 73 70 72 6f 70 2d 70 61  42801f;
sprop-pa
00000100 (0x150b310): 72 61 6d 65 74 65 72 2d 73 65 74 73 3d 5a 30 4b 
rameter-sets=Z0K
00000110 (0x150b320): 41 48 39 6f 43 30 45 6b 51 2c 61 4d 34 38 67 41 
AH9oC0EkQ,aM48gA
00000120 (0x150b330): 3d 3d 0d 0a 6d 3d 61 75 64 69 6f 20 30 20 52 54 
==..m=audio 0 RT
00000130 (0x150b340): 50 2f 41 56 50 20 30 0d 0a 61 3d 72 74 70 6d 61  P/AVP
0..a=rtpma
00000140 (0x150b350): 70 3a 30 20 50 43 4d 55 2f 38 30 30 30 0d 0a 61  p:0
PCMU/8000..a
00000150 (0x150b360): 3d 63 6f 6e 74 72 6f 6c 3a 61 75 64 69 6f 0d 0a 
=control:audio..
00000160 (0x150b370): 00                                               .        
sdp packet 0x150b460:
 version:       '0'
 origin:
  username:     '-'
  sess_id:      '1231038170'
  sess_version: '1'
  nettype:      'IN'
  addrtype:     'IP4'
  addr:         '172.16.68.208'
 session_name:  'SONY RTSP Server'
 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 'range' : 'npt=now-'
 medias:
  media 0:
   media:       'video'
   port:        '0'
   num_ports:   '4294967295'
   proto:       'RTP/AVP'
   formats:
    format  '105'
   information: '(NULL)'
   key:
    type:       '(NULL)'
    data:       '(NULL)'
   attributes:
    attribute 'rtpmap' : '105 H264/90000'
    attribute 'control' : 'video'
    attribute 'framerate' : '25.0'
    attribute 'fmtp' : '105 packetization-mode=1; profile-level-id=42801f;
sprop-parameter-sets=Z0KAH9oC0EkQ,aM48gA=='
  media 1:
   media:       'audio'
   port:        '0'
   num_ports:   '4294967295'
   proto:       'RTP/AVP'
   formats:
    format  '0'
   information: '(NULL)'
   key:
    type:       '(NULL)'
    data:       '(NULL)'
   attributes:
    attribute 'rtpmap' : '0 PCMU/8000'
    attribute 'control' : 'audio'
RTSP request message 0x7fffddd3bbb0
 request line:
   method: 'SETUP'
   uri:    'rtsp://172.16.68.208/media/video1/video'
   version: '1.0'
 headers:
   key: 'Transport', value: 'RTP/AVP;multicast;client_port=3000-3001'
 body:
RTSP response message 0x7fffddd3bb70
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '3'
   key: 'Session', value: '1231038170'
   key: 'Transport', value:
'RTP/AVP;multicast;destination=239.2.68.208;port=3000-3001'
   key: 'Content-Length', value: '0'
 body: length 1
00000000 (0x7f1e50000ac0): 00                                               .   
RTSP request message 0x7fffddd3bbb0
 request line:
   method: 'SETUP'
   uri:    'rtsp://172.16.68.208/media/video1/audio'
   version: '1.0'
 headers:
   key: 'Transport', value: 'RTP/AVP;multicast;client_port=3002-3003'
 body:
RTSP response message 0x7fffddd3bb70
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '4'
   key: 'Session', value: '1231038170'
   key: 'Transport', value:
'RTP/AVP;multicast;destination=239.2.68.208;port=3002-3003'
   key: 'Content-Length', value: '0'
 body: length 1
00000000 (0x7f1e500015a0): 00                                               .   
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
RTSP request message 0x7fffddd3bdc0
 request line:
   method: 'PLAY'
   uri:    'rtsp://172.16.68.208/media/video1'
   version: '1.0'
 headers:
   key: 'Range', value: 'npt=now-'
 body:
RTSP response message 0x7fffddd3bd80
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '5'
   key: 'Session', value: '1231038170'
   key: 'Range', value: 'npt=now-'
   key: 'Scale', value: '1.0'
   key: 'Content-Length', value: '0'
 body: length 1
00000000 (0x7f1e5000b700): 00                                               .   
New clock: GstSystemClock
WARNING: from element
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2866): gst_base_sink_is_too_late ():
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
There may be a timestamping problem, or this computer is too slow.
WARNING: from element
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2866): gst_base_sink_is_too_late ():
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
There may be a timestamping problem, or this computer is too slow.
ERROR: from element
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
Output window was closed
Additional debug info:
xvimagesink.c(1311): gst_xvimagesink_handle_xevents ():
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage
Execution ended after 18585658872 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
RTSP request message 0x7fffddd3bdf0
 request line:
   method: 'TEARDOWN'
   uri:    'rtsp://172.16.68.208/media/video1'
   version: '1.0'
 headers:
 body:
RTSP response message 0x7fffddd3bdb0
 status line:
   code:   '200'
   reason: 'OK'
   version: '1.0'
 headers:
   key: 'CSeq', value: '6'
   key: 'Session', value: '1231038170'
   key: 'Content-Length', value: '0'
 body: length 1
00000000 (0x15b7d20): 00                                               .        
Setting pipeline to NULL ...
Freeing pipeline ...
barco at mgsserver001:~$

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list