rtspsrc and mp4mux strange behaviour
Chuck Crisler
ccrisler at mutualink.net
Fri Jul 25 12:36:59 PDT 2014
It is likely buffering the input. I use 0.10 and many of the property names
have changed, but in 0.10 the rtspsrc element has a property called
'latency'. Try setting that to some small value. Start at maybe 500 and see
what happens. You can also execute gst-inspect rtspsrc and see what the
properties are and their default values.
On Fri, Jul 25, 2014 at 11:21 AM, lestoilfante <lestoilfante at gmail.com>
wrote:
> This is rtspsrc debug output in udp mode, any hint?
>
> RTSP request message 0xb6e59f74
> request line:
> method: 'OPTIONS'
> uri: 'rtsp://
> 192.168.100.67/axis-media/media.amp?videocodec=h264&resolution=640x480&fps=10&compression=30&textstring=%s_%f
> '
> 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 0xb6e59f48
> status line:
> code: '200'
> reason: 'OK'
> version: '1.0'
> headers:
> key: 'CSeq', value: '1'
> key: 'Public', value: 'DESCRIBE'
> key: 'Public', value: 'GET_PARAMETER'
> key: 'Public', value: 'PAUSE'
> key: 'Public', value: 'PLAY'
> key: 'Public', value: 'SETUP'
> key: 'Public', value: 'SET_PARAMETER'
> key: 'Public', value: 'TEARDOWN'
> key: 'Date', value: 'Fri, 25 Jul 2014 17:09:17 GMT'
> body: length 0
> RTSP request message 0xb6e59f74
> request line:
> method: 'DESCRIBE'
> uri: 'rtsp://
> 192.168.100.67/axis-media/media.amp?videocodec=h264&resolution=640x480&fps=10&compression=30&textstring=%s_%f
> '
> version: '1.0'
> headers:
> key: 'Accept', value: 'application/sdp'
> body:
> RTSP response message 0xb6e59f48
> status line:
> code: '401'
> reason: 'Unauthorized'
> version: '1.0'
> headers:
> key: 'CSeq', value: '2'
> key: 'WWW-Authenticate', value: 'Digest realm="AXIS_00408CC35837",
> nonce="0001c15dY401387981d48c7dcc1818663fad24197030fb", stale=FALSE'
> key: 'WWW-Authenticate', value: 'Basic realm="AXIS_00408CC35837"'
> key: 'Date', value: 'Fri, 25 Jul 2014 17:09:17 GMT'
> body: length 0
> RTSP request message 0xb6e59f74
> request line:
> method: 'DESCRIBE'
> uri: 'rtsp://
> 192.168.100.67/axis-media/media.amp?videocodec=h264&resolution=640x480&fps=10&compression=30&textstring=%s_%f
> '
> version: '1.0'
> headers:
> key: 'Accept', value: 'application/sdp'
> key: 'Date', value: 'Mon, 28 Apr 2014 10:20:31 GMT'
> body:
> RTSP response message 0xb6e59f48
> status line:
> code: '200'
> reason: 'OK'
> version: '1.0'
> headers:
> key: 'CSeq', value: '3'
> key: 'Content-Type', value: 'application/sdp'
> key: 'Content-Base', value: 'rtsp://
> 192.168.100.67/axis-media/media.amp/'
> key: 'Date', value: 'Fri, 25 Jul 2014 17:09:17 GMT'
> key: 'Content-Length', value: '707'
> body: length 708
> 00000000 (0x819fc60): 76 3d 30 0d 0a 6f 3d 2d 20 31 34 30 36 33 30 38
> v=0..o=- 1406308
> 00000010 (0x819fc70): 31 35 37 34 31 38 39 31 30 20 31 34 30 36 33 30
> 157418910 140630
> 00000020 (0x819fc80): 38 31 35 37 34 31 38 39 31 30 20 49 4e 20 49 50
> 8157418910 IN IP
> 00000030 (0x819fc90): 34 20 31 39 32 2e 31 36 38 2e 31 30 30 2e 36 37 4
> 192.168.100.67
> 00000040 (0x819fca0): 0d 0a 73 3d 4d 65 64 69 61 20 50 72 65 73 65 6e
> ..s=Media Presen
> 00000050 (0x819fcb0): 74 61 74 69 6f 6e 0d 0a 65 3d 4e 4f 4e 45 0d 0a
> tation..e=NONE..
> 00000060 (0x819fcc0): 62 3d 41 53 3a 35 30 30 30 30 0d 0a 74 3d 30 20
> b=AS:50000..t=0
> 00000070 (0x819fcd0): 30 0d 0a 61 3d 63 6f 6e 74 72 6f 6c 3a 72 74 73
> 0..a=control:rts
> 00000080 (0x819fce0): 70 3a 2f 2f 31 39 32 2e 31 36 38 2e 31 30 30 2e p://
> 192.168.100.
> 00000090 (0x819fcf0): 36 37 2f 61 78 69 73 2d 6d 65 64 69 61 2f 6d 65
> 67/axis-media/me
> 000000a0 (0x819fd00): 64 69 61 2e 61 6d 70 3f 76 69 64 65 6f 63 6f 64
> dia.amp?videocod
> 000000b0 (0x819fd10): 65 63 3d 68 32 36 34 26 72 65 73 6f 6c 75 74 69
> ec=h264&resoluti
> 000000c0 (0x819fd20): 6f 6e 3d 36 34 30 78 34 38 30 26 66 70 73 3d 31
> on=640x480&fps=1
> 000000d0 (0x819fd30): 30 26 63 6f 6d 70 72 65 73 73 69 6f 6e 3d 33 30
> 0&compression=30
> 000000e0 (0x819fd40): 26 74 65 78 74 73 74 72 69 6e 67 3d 25 73 5f 25
> &textstring=%s_%
> 000000f0 (0x819fd50): 66 0d 0a 61 3d 72 61 6e 67 65 3a 6e 70 74 3d 30
> f..a=range:npt=0
> 00000100 (0x819fd60): 2e 30 30 30 30 30 30 2d 0d 0a 6d 3d 76 69 64 65
> .000000-..m=vide
> 00000110 (0x819fd70): 6f 20 30 20 52 54 50 2f 41 56 50 20 39 36 0d 0a o 0
> RTP/AVP 96..
> 00000120 (0x819fd80): 63 3d 49 4e 20 49 50 34 20 30 2e 30 2e 30 2e 30
> c=IN IP4 0.0.0.0
> 00000130 (0x819fd90): 0d 0a 62 3d 41 53 3a 35 30 30 30 30 0d 0a 61 3d
> ..b=AS:50000..a=
> 00000140 (0x819fda0): 66 72 61 6d 65 72 61 74 65 3a 31 30 2e 30 0d 0a
> framerate:10.0..
> 00000150 (0x819fdb0): 61 3d 74 72 61 6e 73 66 6f 72 6d 3a 2d 31 2e 30
> a=transform:-1.0
> 00000160 (0x819fdc0): 30 30 30 30 30 2c 30 2e 30 30 30 30 30 30 2c 30
> 00000,0.000000,0
> 00000170 (0x819fdd0): 2e 30 30 30 30 30 30 3b 30 2e 30 30 30 30 30 30
> .000000;0.000000
> 00000180 (0x819fde0): 2c 2d 31 2e 30 30 30 30 30 30 2c 30 2e 30 30 30
> ,-1.000000,0.000
> 00000190 (0x819fdf0): 30 30 30 3b 30 2e 30 30 30 30 30 30 2c 30 2e 30
> 000;0.000000,0.0
> 000001a0 (0x819fe00): 30 30 30 30 30 2c 31 2e 30 30 30 30 30 30 0d 0a
> 00000,1.000000..
> 000001b0 (0x819fe10): 61 3d 63 6f 6e 74 72 6f 6c 3a 72 74 73 70 3a 2f
> a=control:rtsp:/
> 000001c0 (0x819fe20): 2f 31 39 32 2e 31 36 38 2e 31 30 30 2e 36 37 2f /
> 192.168.100.67/
> 000001d0 (0x819fe30): 61 78 69 73 2d 6d 65 64 69 61 2f 6d 65 64 69 61
> axis-media/media
> 000001e0 (0x819fe40): 2e 61 6d 70 2f 74 72 61 63 6b 49 44 3d 31 3f 76
> .amp/trackID=1?v
> 000001f0 (0x819fe50): 69 64 65 6f 63 6f 64 65 63 3d 68 32 36 34 26 72
> ideocodec=h264&r
> 00000200 (0x819fe60): 65 73 6f 6c 75 74 69 6f 6e 3d 36 34 30 78 34 38
> esolution=640x48
> 00000210 (0x819fe70): 30 26 66 70 73 3d 31 30 26 63 6f 6d 70 72 65 73
> 0&fps=10&compres
> 00000220 (0x819fe80): 73 69 6f 6e 3d 33 30 26 74 65 78 74 73 74 72 69
> sion=30&textstri
> 00000230 (0x819fe90): 6e 67 3d 25 73 5f 25 66 0d 0a 61 3d 72 74 70 6d
> ng=%s_%f..a=rtpm
> 00000240 (0x819fea0): 61 70 3a 39 36 20 48 32 36 34 2f 39 30 30 30 30
> ap:96 H264/90000
> 00000250 (0x819feb0): 0d 0a 61 3d 66 6d 74 70 3a 39 36 20 70 61 63 6b
> ..a=fmtp:96 pack
> 00000260 (0x819fec0): 65 74 69 7a 61 74 69 6f 6e 2d 6d 6f 64 65 3d 31
> etization-mode=1
> 00000270 (0x819fed0): 3b 20 70 72 6f 66 69 6c 65 2d 6c 65 76 65 6c 2d ;
> profile-level-
> 00000280 (0x819fee0): 69 64 3d 34 44 30 30 32 39 3b 20 73 70 72 6f 70
> id=4D0029; sprop
> 00000290 (0x819fef0): 2d 70 61 72 61 6d 65 74 65 72 2d 73 65 74 73 3d
> -parameter-sets=
> 000002a0 (0x819ff00): 5a 30 30 41 4b 65 4b 51 46 41 65 32 41 74 77 45
> Z00AKeKQFAe2AtwE
> 000002b0 (0x819ff10): 42 41 61 51 65 4a 45 56 2c 61 4f 34 38 67 41 3d
> BAaQeJEV,aO48gA=
> 000002c0 (0x819ff20): 3d 0d 0a 00
> =...
> sdp packet 0x819f7b8:
> version: '0'
> origin:
> username: '-'
> sess_id: '1406308157418910'
> sess_version: '1406308157418910'
> nettype: 'IN'
> addrtype: 'IP4'
> addr: '192.168.100.67'
> session_name: 'Media Presentation'
> information: '(NULL)'
> uri: '(NULL)'
> emails:
> email 'NONE'
> connection:
> nettype: '(NULL)'
> addrtype: '(NULL)'
> address: '(NULL)'
> ttl: '0'
> addr_number: '0'
> bandwidths:
> type: 'AS'
> bandwidth: '50000'
> key:
> type: '(NULL)'
> data: '(NULL)'
> attributes:
> attribute 'control' : 'rtsp://
> 192.168.100.67/axis-media/media.amp?videocodec=h264&resolution=640x480&fps=10&compression=30&textstring=%s_%f
> '
> attribute 'range' : 'npt=0.000000-'
> 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: '50000'
> key:
> type: '(NULL)'
> data: '(NULL)'
> attributes:
> attribute 'framerate' : '10.0'
> attribute 'transform' :
> '-1.000000,0.000000,0.000000;0.000000,-1.000000,0.000000;0.000000,0.000000,1.000000'
> attribute 'control' : 'rtsp://
> 192.168.100.67/axis-media/media.amp/trackID=1?videocodec=h264&resolution=640x480&fps=10&compression=30&textstring=%s_%f
> '
> attribute 'rtpmap' : '96 H264/90000'
> attribute 'fmtp' : '96 packetization-mode=1; profile-level-id=4D0029;
> sprop-parameter-sets=Z00AKeKQFAe2AtwEBAaQeJEV,aO48gA=='
> RTSP request message 0xb6e59dac
> request line:
> method: 'SETUP'
> uri: 'rtsp://
> 192.168.100.67/axis-media/media.amp/trackID=1?videocodec=h264&resolution=640x480&fps=10&compression=30&textstring=%s_%f
> '
> version: '1.0'
> headers:
> key: 'Transport', value: 'RTP/AVP;unicast;client_port=54556-54557'
> body:
> RTSP response message 0xb6e59d80
> status line:
> code: '200'
> reason: 'OK'
> version: '1.0'
> headers:
> key: 'CSeq', value: '4'
> key: 'Session', value: '6866F3BA; timeout=60'
> key: 'Transport', value:
> 'RTP/AVP;unicast;client_port=54556-54557;server_port=50034-50035
> ;ssrc=3FCD015B;mode="PLAY"'
> key: 'Date', value: 'Fri, 25 Jul 2014 17:09:17 GMT'
> body: length 0
>
>
>
>
>
> ######################################################################################
>
> 10 to 20 seconds waiting
>
>
> ######################################################################################
>
>
>
>
>
> RTSP request message 0xb6e5a0f8
> request line:
> method: 'PLAY'
> uri: 'rtsp://
> 192.168.100.67/axis-media/media.amp?videocodec=h264&resolution=640x480&fps=10&compression=30&textstring=%s_%f
> '
> version: '1.0'
> headers:
> key: 'Range', value: 'npt=0-'
> body:
> RTSP response message 0xb6e5a0cc
> status line:
> code: '200'
> reason: 'OK'
> version: '1.0'
> headers:
> key: 'CSeq', value: '5'
> key: 'Session', value: '6866F3BA'
> key: 'Range', value: 'npt=0-'
> key: 'RTP-Info', value: 'url=rtsp://
> 192.168.100.67/axis-media/media.amp/trackID=1?videocodec=h264&resolution=640x480&fps=10&compression=30&textstring=%s_%f;seq=33048;rtptime=2418073722
> '
> key: 'Date', value: 'Fri, 25 Jul 2014 17:09:37 GMT'
> body: length 0
>
>
>
> On Wed, Jul 23, 2014 at 2:13 PM, lestoilfante <lestoilfante at gmail.com>
> wrote:
>
>> Hello,
>>
>> I'm playing with this pipeline:
>>
>> gst-launch-1.0 -ve rtspsrc location='rtsp://root:root@192.168.100.67' !
>> rtph264depay ! h264parse ! queue ! mp4mux faststart=true ! filesink
>> location=test.mp4
>>
>> In this situation pipeline wait about 10 seconds to reach Playing state
>> but mp4 file is seekable and report right framerate(about 10fps). If I try
>> to set rtspsrc protcolos=0x00000004 pipeline reach playing state almost
>> immediately but mp4 file isn't seekable, no duration written, and report
>> 10000fps !
>>
>> Is it expected or I'm missing something?
>>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140725/06143978/attachment-0001.html>
More information about the gstreamer-devel
mailing list