rtspsrc authorisation problem.

Shrishty Deorari shrishty.deorari at vvdntech.com
Tue Sep 27 09:59:02 UTC 2016


Hi,

Removing the libgstrmdemux.so did solved my problem.
Thnaks

*With Warm Regards,*

Shrishty Deorari

VVDN Technologies Pvt Ltd

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


On Tue, Sep 27, 2016 at 12:27 PM, Mailing List SVR <lists at svrinformatica.it>
wrote:

> Il 27/09/2016 07:04, Shrishty Deorari ha scritto:
>
> Hi ,
> I did try using user-id and user-pw but this doesn't seems to be working.
> On setting the correct user-id and user-pw also, the rtsp communication is
> failing due to authentication.
>
>
> the communication does not fails due authentication, see below
>
>
>
> Example Pipeline
> ./gst-launch-1.0 rtspsrc debug=1 user-id="service" user-pw="service"
> location="rtsp://service:service@192.168.3.158" ! fakesink
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Progress: (open) Opening Stream
> Progress: (connect) Connecting to rtsp://service:service@192.168.3.158
> RTSP request message 0x7f943d530cc0
> Progress: (open) Retrieving server options
>  request line:
>    method: 'OPTIONS'
>    uri:    'rtsp://192.168.3.158'
>    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 0x7f943d530d20
>  status line:
>    code:   '401'
>
>
> the camera ask for authentication
>
>    reason: 'Unauthorized'
>    version: '1.0'
>  headers:
>    key: 'CSeq', value: '1'
>    key: 'WWW-Authenticate', value: 'Digest realm="Use 'live' as User
> Name",nonce="21c6719302ef7826320a4e3928da5adc",opaque="",stale=FALSE,
> algorithm=MD5'
>
>
> rtspsrc send authentication header
>
>
>
>  body: length 0
> RTSP request message 0x7f943d530cc0
>  request line:
>    method: 'OPTIONS'
>    uri:    'rtsp://192.168.3.158'
>    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'
>    key: 'Date', value: 'Tue, 27 Sep 2016 04:56:24 GMT'
>    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 0x7f943d530d20
>  status line:
>    code:   '400'
>    reason: 'Bad Request'
>
>
> authentication is OK but the camera respond with bad request, probably it
> doesn't like some header sent by gstreamer probably the ones related to
> rtsp real extension,
>
> if so try to remove gst-plugnis-ugly (or libgstrmdemux.so) and retry,
>
> Nicola
>
>
>    version: '1.0'
>  headers:
>  body: length 0
> 0:00:00.043819740 10572      0x2525de0 WARN                 rtspsrc
> gstrtspsrc.c:5610:gst_rtspsrc_send:<rtspsrc0> error: Got error response:
> 400 (Bad Request).
> 0:00:00.043928499 10572      0x2525de0 WARN                 rtspsrc
> gstrtspsrc.c:6822:gst_rtspsrc_open:<rtspsrc0> can't get sdp
> ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not
> read from resource.
> Additional debug info:
> gstrtspsrc.c(5610): gst_rtspsrc_send (): /GstPipeline:pipeline0/
> GstRTSPSrc:rtspsrc0:
> Got error response: 400 (Bad Request).
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to PAUSED ...
> 0:00:00.043960711 10572      0x2525de0 WARN                 rtspsrc
> gstrtspsrc.c:5015:gst_rtspsrc_loop:<rtspsrc0> we are not connected
> Setting pipeline to READY ...
> Setting pipeline to NUL
>
>
> The Authentication  username and password is not getting send for "option"
> command.
> While When I try playing the stream in VLC, it send authentication
> parameters with every command.
>
>
> *With Warm Regards,*
>
> Shrishty Deorari
>
> VVDN Technologies Pvt Ltd
>
> *Cell : *+91 7773980237 | *Skype :* shrishty_vvdn
>
>
> On Mon, Sep 26, 2016 at 6:53 PM, Miha Nedok <mike at mike.si> wrote:
>
>> https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gs
>> t-plugins-good-plugins/html/gst-plugins-good-plugins-rtspsrc.html
>>
>> Look at the params of rtspsrc, there is user-id and user-pw
>>
>>
>>
>> On Mon, Sep 26, 2016 at 1:49 PM, Shrishty Deorari <
>> shrishty.deorari at vvdntech.com> wrote:
>>
>>> Hi,
>>>
>>> I am using Bosch camera and facing and Issue while trying to access the
>>> H264 stream via gstreamer.
>>>
>>> Command I am using:
>>> gst-launch-1.0 rtspsrc location=<rtsp://usrname:password@<IP>> debug=1
>>> ! decodebin ! autovideosink
>>>
>>> The Result is:
>>> Setting pipeline to PAUSED ...
>>> Pipeline is live and does not need PREROLL ...
>>> Progress: (open) Opening Stream
>>> Progress: (connect) Connecting to rtsp://service:@192.168.3.158
>>> Progress: (open) Retrieving server options
>>> RTSP request message 0x7fab7d8d3cc0
>>>  request line:
>>>    method: 'OPTIONS'
>>> *   uri:    'rtsp://192.168.3.158 <http://192.168.3.158>'
>>> -------------> Not sending the authorisation details*
>>>    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 0x7fab7d8d3d20
>>>  status line:
>>>    code:   '401'
>>> *   reason: 'Unauthorized'*
>>>    version: '1.0'
>>>  headers:
>>>    key: 'CSeq', value: '1'
>>>    key: 'WWW-Authenticate', value: 'Digest realm="Use 'live' as User
>>> Name",nonce="7ea901fc58040251071d55446e556693",opaque="",sta
>>> le=FALSE,algorithm=MD5'
>>>  body: length 0
>>>
>>>
>>> The issue is rtspsrc is not sending the authorisation details for rtsp
>>> commands thus it is failing. I tried using the propert user-id and user-pw
>>> for rtspsrc but no luck.
>>> My doubt is can I make the rtspsrc to send the username and password for
>>> every rtsp command.
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
>
> _______________________________________________
> gstreamer-devel mailing listgstreamer-devel at lists.freedesktop.orghttps://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> _______________________________________________
> 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/20160927/9bd4a2dd/attachment-0001.html>


More information about the gstreamer-devel mailing list