rtspsrc authorisation problem.
Shrishty Deorari
shrishty.deorari at vvdntech.com
Mon Sep 26 11:49:21 UTC 2016
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="",stale=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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160926/848da185/attachment-0001.html>
More information about the gstreamer-devel
mailing list