Insane Fps for Rtsp url.

Shrishty Deorari shrishty.deorari at vvdntech.com
Mon Aug 22 08:36:57 UTC 2016


HI,

Can I use on-sdp signal of the rtspsrc element to modify the sdp received
and add the frame rate in that?
Any Idea about this?




*With Warm Regards,*

Shrishty Deorari

VVDN Technologies Pvt Ltd

*Cell : *+91 7773980237 | *Skype :* shrishty_vvdn


On Mon, Aug 22, 2016 at 12:23 PM, Shrishty Deorari <
shrishty.deorari at vvdntech.com> wrote:

> HI Olivier,
>
> Here is what logs came for running the pipeline:
> *gst-launch-1.0 rtspsrc
> location="rtsp://192.168.3.89:8552/PSIA/Streaming/channels/2?videoCodecType=H.264
> <http://192.168.3.89:8552/PSIA/Streaming/channels/2?videoCodecType=H.264>"
> debug=1 ! fakesink *
>
> I compared these logs with the one working rtsp stream, here  a*ttribute
> 'framerate' : * is missing in the response from the server for the*
> "DESCRIBE*" request.  Please see the logs below. Could this be the cause
> of the problem.
>
> And Even if there is no FPS from the server side or it is incorrect can we
> not set for receiving it at the capturing side? Please let me know what you
> think about it and the logs.
>
> gst-launch-1.0 rtspsrc location="rtsp://192.168.3.89:
> 8552/PSIA/Streaming/channels/2?videoCodecType=H.264" debug=1 ! fakesink
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Progress: (open) Opening Stream
> Progress: (connect) Connecting to rtsp://192.168.3.89:8552/PSIA/
> Streaming/channels/2?videoCodecType=H.264
> RTSP request message 0x7f9053e73cc0
> Progress: (open) Retrieving server options
>  request line:
>    method: 'OPTIONS'
>    uri:    'rtsp://192.168.3.89:8552/PSIA/Streaming/channels/2?
> videoCodecType=H.264'
>    version: '1.0'
>  headers:
>    key: 'User-Agent', value: 'GStreamer/1.8.0'
>    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 0x7f9053e73d20
>  status line:
>    code:   '200'
>    reason: 'OK'
>    version: '1.0'
>  headers:
>    key: 'CSeq', value: '1'
>    key: 'Date', value: 'Mon, Aug 22 2016 06:39:56 GMT'
>    key: 'Public', value: 'OPTIONS'
>    key: 'Public', value: 'DESCRIBE'
>    key: 'Public', value: 'SETUP'
>    key: 'Public', value: 'TEARDOWN'
>    key: 'Public', value: 'PLAY'
>    key: 'Public', value: 'PAUSE'
>    key: 'Public', value: 'GET_PARAMETER'
>    key: 'Public', value: 'SET_PARAMETER'
>  body: length 0
> RTSP request message 0x7f9053e73cc0
>  request line:
>    method: 'DESCRIBE'
>    uri:    'rtsp://192.168.3.89:8552/PSIA/Streaming/channels/2?
> videoCodecType=H.264'
>    version: '1.0'
>  headers:
>    key: 'User-Agent', value: 'GStreamer/1.8.0'
>    key: 'Accept', value: 'application/sdp'
> Progress: (open) Retrieving media info
>  body:
> RTSP response message 0x7f9053e73d20
>  status line:
>    code:   '200'
>    reason: 'OK'
>    version: '1.0'
>  headers:
>    key: 'CSeq', value: '2'
>    key: 'Date', value: 'Mon, Aug 22 2016 06:39:56 GMT'
>    key: 'Content-Base', value: 'rtsp://192.168.3.89:8552/
> PSIA/Streaming/channels/2?videoCodecType=H.264/'
>    key: 'Content-Type', value: 'application/sdp'
>    key: 'Content-Length', value: '670'
>  body: length 671
> 00000000 (0x7f904c031360): 76 3d 30 0d 0a 6f 3d 2d 20 31 34 37 31 38 34
> 36  v=0..o=- 1471846
> 00000010 (0x7f904c031370): 30 38 36 39 37 32 36 36 32 20 31 20 49 4e 20
> 49  086972662 1 IN I
> 00000020 (0x7f904c031380): 50 34 20 31 39 32 2e 31 36 38 2e 33 2e 38 39
> 0d  P4 192.168.3.89.
> 00000030 (0x7f904c031390): 0a 73 3d 52 54 53 50 2f 52 54 50 20 73 74 72
> 65  .s=RTSP/RTP stre
> 00000040 (0x7f904c0313a0): 61 6d 20 66 72 6f 6d 20 49 50 4e 43 0d 0a 69
> 3d  am from IPNC..i=
> 00000050 (0x7f904c0313b0): 50 53 49 41 2f 53 74 72 65 61 6d 69 6e 67 2f
> 63  PSIA/Streaming/c
> 00000060 (0x7f904c0313c0): 68 61 6e 6e 65 6c 73 2f 32 3f 76 69 64 65 6f
> 43  hannels/2?videoC
> 00000070 (0x7f904c0313d0): 6f 64 65 63 54 79 70 65 3d 48 2e 32 36 34 0d
> 0a  odecType=H.264..
> 00000080 (0x7f904c0313e0): 74 3d 30 20 30 0d 0a 61 3d 74 6f 6f 6c 3a 4c
> 49  t=0 0..a=tool:LI
> 00000090 (0x7f904c0313f0): 56 45 35 35 35 20 53 74 72 65 61 6d 69 6e 67
> 20  VE555 Streaming
> 000000a0 (0x7f904c031400): 4d 65 64 69 61 20 76 32 30 31 35 2e 30 38 2e
> 30  Media v2015.08.0
> 000000b0 (0x7f904c031410): 37 0d 0a 61 3d 74 79 70 65 3a 62 72 6f 61 64
> 63  7..a=type:broadc
> 000000c0 (0x7f904c031420): 61 73 74 0d 0a 61 3d 63 6f 6e 74 72 6f 6c 3a
> 2a  ast..a=control:*
> 000000d0 (0x7f904c031430): 0d 0a 61 3d 72 61 6e 67 65 3a 6e 70 74 3d 30
> 2d  ..a=range:npt=0-
> 000000e0 (0x7f904c031440): 0d 0a 61 3d 78 2d 71 74 2d 74 65 78 74 2d 6e
> 61  ..a=x-qt-text-na
> 000000f0 (0x7f904c031450): 6d 3a 52 54 53 50 2f 52 54 50 20 73 74 72 65
> 61  m:RTSP/RTP strea
> 00000100 (0x7f904c031460): 6d 20 66 72 6f 6d 20 49 50 4e 43 0d 0a 61 3d
> 78  m from IPNC..a=x
> 00000110 (0x7f904c031470): 2d 71 74 2d 74 65 78 74 2d 69 6e 66 3a 50 53
> 49  -qt-text-inf:PSI
> 00000120 (0x7f904c031480): 41 2f 53 74 72 65 61 6d 69 6e 67 2f 63 68 61
> 6e  A/Streaming/chan
> 00000130 (0x7f904c031490): 6e 65 6c 73 2f 32 3f 76 69 64 65 6f 43 6f 64
> 65  nels/2?videoCode
> 00000140 (0x7f904c0314a0): 63 54 79 70 65 3d 48 2e 32 36 34 0d 0a 6d 3d
> 76  cType=H.264..m=v
> 00000150 (0x7f904c0314b0): 69 64 65 6f 20 30 20 52 54 50 2f 41 56 50 20
> 39  ideo 0 RTP/AVP 9
> 00000160 (0x7f904c0314c0): 36 0d 0a 63 3d 49 4e 20 49 50 34 20 30 2e 30
> 2e  6..c=IN IP4 0.0.
> 00000170 (0x7f904c0314d0): 30 2e 30 0d 0a 62 3d 41 53 3a 31 32 30 30 30
> 0d  0.0..b=AS:12000.
> 00000180 (0x7f904c0314e0): 0a 61 3d 72 74 70 6d 61 70 3a 39 36 20 48 32
> 36  .a=rtpmap:96 H26
> 00000190 (0x7f904c0314f0): 34 2f 39 30 30 30 30 0d 0a 61 3d 66 6d 74 70
> 3a  4/90000..a=fmtp:
> 000001a0 (0x7f904c031500): 39 36 20 70 61 63 6b 65 74 69 7a 61 74 69 6f
> 6e  96 packetization
> 000001b0 (0x7f904c031510): 2d 6d 6f 64 65 3d 31 3b 70 72 6f 66 69 6c 65
> 2d  -mode=1;profile-
> 000001c0 (0x7f904c031520): 6c 65 76 65 6c 2d 69 64 3d 36 34 30 30 32 39
> 3b  level-id=640029;
> 000001d0 (0x7f904c031530): 73 70 72 6f 70 2d 70 61 72 61 6d 65 74 65 72
> 2d  sprop-parameter-
> 000001e0 (0x7f904c031540): 73 65 74 73 3d 5a 32 51 41 4b 61 32 45 42 55
> 56  sets=Z2QAKa2EBUV
> 000001f0 (0x7f904c031550): 69 75 4b 78 55 64 43 41 71 4b 78 58 46 59 71
> 4f  iuKxUdCAqKxXFYqO
> 00000200 (0x7f904c031560): 68 41 56 46 59 72 69 73 56 48 51 67 4b 69 73
> 56  hAVFYrisVHQgKisV
> 00000210 (0x7f904c031570): 78 57 4b 6a 6f 51 46 52 57 4b 34 72 46 52 30
> 49  xWKjoQFRWK4rFR0I
> 00000220 (0x7f904c031580): 43 6f 72 46 63 56 69 6f 36 45 43 53 46 49 54
> 6b  CorFcVio6ECSFITk
> 00000230 (0x7f904c031590): 38 6e 79 66 6b 2f 6b 2f 4a 38 6e 6d 35 73 30
> 30  8nyfk/k/J8nm5s00
> 00000240 (0x7f904c0315a0): 49 45 6b 4b 51 6e 4a 35 50 6b 2f 4a 2f 4a 2b
> 54  IEkKQnJ5Pk/J/J+T
> 00000250 (0x7f904c0315b0): 35 50 4e 7a 5a 70 72 51 43 67 43 33 53 70 41
> 41  5PNzZprQCgC3SpAA
> 00000260 (0x7f904c0315c0): 41 41 77 48 67 41 41 41 34 51 59 45 41 41 39
> 43  AAwHgAAA4QYEAA9C
> 00000270 (0x7f904c0315d0): 51 41 42 45 71 6d 39 37 34 58 68 45 49 31 41
> 3d  QABEqm974XhEI1A=
> 00000280 (0x7f904c0315e0): 3d 2c 61 4f 34 38 73 41 3d 3d 0d 0a 61 3d 63
> 6f  =,aO48sA==..a=co
> 00000290 (0x7f904c0315f0): 6e 74 72 6f 6c 3a 74 72 61 63 6b 31 0d 0a
> 00     ntrol:track1...
> sdp packet 0x7f904c031090:
>  version:       '0'
>  origin:
>   username:     '-'
>   sess_id:      '1471846086972662'
>   sess_version: '1'
>   nettype:      'IN'
>   addrtype:     'IP4'
>   addr:         '192.168.3.89'
>  session_name:  'RTSP/RTP stream from IPNC'
>  information:   'PSIA/Streaming/channels/2?videoCodecType=H.264'
>  uri:           '(NULL)'
>  connection:
>   nettype:      '(NULL)'
>   addrtype:     '(NULL)'
>   address:      '(NULL)'
>   ttl:          '0'
>   addr_number:  '0'
>  key:
>   type:         '(NULL)'
>   data:         '(NULL)'
>  attributes:
>   attribute 'tool' : 'LIVE555 Streaming Media v2015.08.07'
>   attribute 'type' : 'broadcast'
>   attribute 'control' : '*'
>   attribute 'range' : 'npt=0-'
>   attribute 'x-qt-text-nam' : 'RTSP/RTP stream from IPNC'
>   attribute 'x-qt-text-inf' : 'PSIA/Streaming/channels/2?
> videoCodecType=H.264'
>  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:    '12000'
>    key:
>     type:       '(NULL)'
>     data:       '(NULL)'
>    attributes:
>     attribute 'rtpmap' : '96 H264/90000'
>     attribute 'fmtp' : '96 packetization-mode=1;profile-
> level-id=640029;sprop-parameter-sets=Z2QAKa2EBUViuKxUdCAqKxXFYqOhAV
> FYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/
> J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgC3SpAAAAwHgAAA4QYEA
> A9CQABEqm974XhEI1A==,aO48sA=='
>     attribute 'control' : 'track1'
> RTSP request message 0x7f9053e73ae0
>  request line:
>    method: 'SETUP'
>    uri:    'rtsp://192.168.3.89:8552/PSIA/Streaming/channels/2?
> videoCodecType=H.264/track1'
>    version: '1.0'
>  headers:
>    key: 'User-Agent', value: 'GStreamer/1.8.0'
> Progress: (request) SETUP stream 0
>    key: 'Transport', value: 'RTP/AVP;unicast;client_port=52534-52535'
>  body:
> RTSP response message 0x7f9053e73b40
>  status line:
>    code:   '200'
>    reason: 'OK'
>    version: '1.0'
>  headers:
>    key: 'CSeq', value: '3'
>    key: 'Date', value: 'Mon, Aug 22 2016 06:39:56 GMT'
>    key: 'Transport', value: 'RTP/AVP;unicast;destination=
> 192.168.3.202;source=192.168.3.89;client_port=52534-52535;
> server_port=6970-6971'
>    key: 'Session', value: '16875434;timeout=65'
>  body: length 0
> Progress: (open) Opened Stream
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> Progress: (request) Sending PLAY request
> RTSP request message 0x7f9053e73c90
>  request line:
>    method: 'PLAY'
>    uri:    'rtsp://192.168.3.89:8552/PSIA/Streaming/channels/2?
> videoCodecType=H.264/'
>    version: '1.0'
>  headers:
>    key: 'User-Agent', value: 'GStreamer/1.8.0'
>    key: 'Range', value: 'npt=0-'
>  body:
> Progress: (request) Sending PLAY request
> RTSP response message 0x7f9053e73cf0
>  status line:
>    code:   '200'
>    reason: 'OK'
>    version: '1.0'
>  headers:
>    key: 'CSeq', value: '4'
>    key: 'Date', value: 'Mon, Aug 22 2016 06:39:56 GMT'
>    key: 'Range', value: 'npt=0.000-'
>    key: 'Session', value: '16875434'
>    key: 'RTP-Info', value: 'url=rtsp://192.168.3.89:8552/
> PSIA/Streaming/channels/2?videoCodecType=H.264/track1;
> seq=27984;rtptime=162415213'
>  body: length 0
> Progress: (request) Sent PLAY request
> ^Chandling interrupt.
> Interrupt: Stopping pipeline ...
> Execution ended after 0:00:01.427176145
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> RTSP request message 0x7f9053e73cc0
>  request line:
>    method: 'PAUSE'
>    uri:    'rtsp://192.168.3.89:8552/PSIA/Streaming/channels/2?
> videoCodecType=H.264/'
>    version: '1.0'
>  headers:
> Setting pipeline to NULL ...
>    key: 'User-Agent', value: 'GStreamer/1.8.0'
>  body:
> 0:00:01.504141354 12993      0x2620590 WARN                 rtspsrc
> gstrtspsrc.c:5423:gst_rtspsrc_try_send:<rtspsrc0> send interrupted
> 0:00:01.504194625 12993      0x2620590 WARN                 rtspsrc
> gstrtspsrc.c:7473:gst_rtspsrc_pause:<rtspsrc0> PAUSE interrupted
> Freeing pipeline ...
>
>
>
> *With Warm Regards,*
>
> Shrishty Deorari
>
> VVDN Technologies Pvt Ltd
>
> *Cell : *+91 7773980237 | *Skype :* shrishty_vvdn
>
>
> On Sat, Aug 20, 2016 at 2:44 AM, Olivier CrĂȘte <
> olivier.crete at collabora.com> wrote:
>
>> Hi,
>>
>> Can you run it as:
>> gst-launch-1.0 rtspsrc location="rtsp://192.168.3.89:
>> 8552/PSIA/Streaming/channels/2?videoCodecType=H.264" debug=1 ! fakesink
>> and see what it prints?
>>
>> It seems like something is giving an invalid framerate and it should be
>> ignored.
>>
>> Olivier
>>
>> On Thu, 2016-08-18 at 17:00 +0530, Shrishty Deorari wrote:
>>
>> Hi,
>>
>> I am trying to work with a Gstreamer application which uses uridecodebin
>> element.
>> For a particular IP camera which sends out video in two format H246 and
>> MJPEG
>> The MJPEG video  url is working fine with gstreamer application but the
>> H264 video is not getting decoded.
>>
>> Following is the sample pipeline I am using:
>>
>>  gst-launch-1.0 uridecodebin uri="rtsp://192.168.3.89:8552/
>> PSIA/Streaming/channels/2?videoCodecType=H.264" !  videoconvert !
>> videoscale ! videorate ! video/x-raw,framerate=15/1,width=320,height=240,format=I420
>> ! xvimagesink
>>
>> This is giving error:
>>
>> *libav gstavcodecmap.c:2441:gst_ffmpeg_caps_to_pixfmt: ignoring insane
>> framerate 1/0*
>> I have tried adding rtpjitterbuffer and rtph264depay elements with
>> rtspsrc. But still the same error
>>
>> This URL works fine with ffmpeg, vlc and other players.
>>
>> *Gstreamer version : 1.8.1*
>>
>> *RTSP server: LIVE555*
>>
>> *System : Ubuntu 16.04*
>>
>> Can Anyone help with this insane fps.
>>
>>
>>
>>
>>
>>
>> *With Warm Regards,*
>>
>> Shrishty Deorari
>>
>> VVDN Technologies Pvt Ltd
>>
>> *Cell : *+91 7773980237 | *Skype :* shrishty_vvdn
>>
>> _______________________________________________
>> gstreamer-devel mailing listgstreamer-devel at lists.freedesktop.orghttps://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>> --
>>
>> Olivier CrĂȘte olivier.crete at collabora.com
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160822/86a4f548/attachment-0001.html>


More information about the gstreamer-devel mailing list