<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Il 27/09/2016 07:04, Shrishty Deorari
      ha scritto:<br>
    </div>
    <blockquote
cite="mid:CAOv7836mPCn5Ct8YtLNKWYd2DkAXjJySPirR63FA+BX3C2bq5w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi , 
        <div>I did try using user-id and user-pw but this doesn't seems
          to be working. </div>
        <div>On setting the correct user-id and user-pw also, the rtsp
          communication is failing due to authentication.</div>
      </div>
    </blockquote>
    <br>
    the communication does not fails due authentication, see below<br>
    <br>
    <blockquote
cite="mid:CAOv7836mPCn5Ct8YtLNKWYd2DkAXjJySPirR63FA+BX3C2bq5w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Example Pipeline</div>
        <div>
          <div>./gst-launch-1.0 rtspsrc debug=1 user-id="service"
            user-pw="service" location="<a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a moz-do-not-send="true"
              href="mailto:service%3Aservice@192.168.3.158">service:service@192.168.3.158</a>"
            ! fakesink </div>
        </div>
        <div>
          <div>Setting pipeline to PAUSED ...</div>
          <div>Pipeline is live and does not need PREROLL ...</div>
          <div>Progress: (open) Opening Stream</div>
          <div>Progress: (connect) Connecting to <a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a
              moz-do-not-send="true"
              href="mailto:service%3Aservice@192.168.3.158">service:service@192.168.3.158</a></div>
          <div>RTSP request message 0x7f943d530cc0</div>
          <div>Progress: (open) Retrieving server options</div>
          <div> request line:</div>
          <div>   method: 'OPTIONS'</div>
          <div>   uri:    '<a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a moz-do-not-send="true"
              href="http://192.168.3.158">192.168.3.158</a>'</div>
          <div>   version: '1.0'</div>
          <div> headers:</div>
          <div>   key: 'User-Agent', value: 'GStreamer/1.8.0'</div>
          <div>   key: 'User-Agent', value: 'RealMedia Player Version
            6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)'</div>
          <div>   key: 'ClientChallenge', value:
            '9e26d33f2984236010ef6253fb1887f7'</div>
          <div>   key: 'CompanyID', value: 'KnKV4M4I/B2FjJ1TToLycw=='</div>
          <div>   key: 'GUID', value:
            '00000000-0000-0000-0000-000000000000'</div>
          <div>   key: 'RegionData', value: '0'</div>
          <div>   key: 'PlayerStarttime', value: '[28/03/2003:22:50:23
            00:00]'</div>
          <div>   key: 'ClientID', value:
            'Linux_2.4_6.0.9.1235_play32_RN01_EN_586'</div>
          <div> body:</div>
          <div>RTSP response message 0x7f943d530d20</div>
          <div> status line:</div>
          <div>   code:   '401'</div>
        </div>
      </div>
    </blockquote>
    <br>
    the camera ask for authentication<br>
    <br>
    <blockquote
cite="mid:CAOv7836mPCn5Ct8YtLNKWYd2DkAXjJySPirR63FA+BX3C2bq5w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>   reason: 'Unauthorized'</div>
          <div>   version: '1.0'</div>
          <div> headers:</div>
          <div>   key: 'CSeq', value: '1'</div>
          <div>   key: 'WWW-Authenticate', value: 'Digest realm="Use
            'live' as User
Name",nonce="21c6719302ef7826320a4e3928da5adc",opaque="",stale=FALSE,algorithm=MD5'</div>
        </div>
      </div>
    </blockquote>
    <br>
    rtspsrc send authentication header<br>
    <br>
    <br>
    <blockquote
cite="mid:CAOv7836mPCn5Ct8YtLNKWYd2DkAXjJySPirR63FA+BX3C2bq5w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div> body: length 0</div>
          <div>RTSP request message 0x7f943d530cc0</div>
          <div> request line:</div>
          <div>   method: 'OPTIONS'</div>
          <div>   uri:    '<a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a moz-do-not-send="true"
              href="http://192.168.3.158">192.168.3.158</a>'</div>
          <div>   version: '1.0'</div>
          <div> headers:</div>
          <div>   key: 'User-Agent', value: 'GStreamer/1.8.0'</div>
          <div>   key: 'User-Agent', value: 'RealMedia Player Version
            6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)'</div>
          <div>   key: 'ClientChallenge', value:
            '9e26d33f2984236010ef6253fb1887f7'</div>
          <div>   key: 'CompanyID', value: 'KnKV4M4I/B2FjJ1TToLycw=='</div>
          <div>   key: 'GUID', value:
            '00000000-0000-0000-0000-000000000000'</div>
          <div>   key: 'RegionData', value: '0'</div>
          <div>   key: 'PlayerStarttime', value: '[28/03/2003:22:50:23
            00:00]'</div>
          <div>   key: 'ClientID', value:
            'Linux_2.4_6.0.9.1235_play32_RN01_EN_586'</div>
          <div>   key: 'Date', value: 'Tue, 27 Sep 2016 04:56:24 GMT'</div>
          <div>   key: 'User-Agent', value: 'RealMedia Player Version
            6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)'</div>
          <div>   key: 'ClientChallenge', value:
            '9e26d33f2984236010ef6253fb1887f7'</div>
          <div>   key: 'CompanyID', value: 'KnKV4M4I/B2FjJ1TToLycw=='</div>
          <div>   key: 'GUID', value:
            '00000000-0000-0000-0000-000000000000'</div>
          <div>   key: 'RegionData', value: '0'</div>
          <div>   key: 'PlayerStarttime', value: '[28/03/2003:22:50:23
            00:00]'</div>
          <div>   key: 'ClientID', value:
            'Linux_2.4_6.0.9.1235_play32_RN01_EN_586'</div>
          <div> body:</div>
          <div>RTSP response message 0x7f943d530d20</div>
          <div> status line:</div>
          <div>   code:   '400'</div>
          <div>   reason: 'Bad Request'</div>
        </div>
      </div>
    </blockquote>
    <br>
    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, <br>
    <br>
    if so try to remove gst-plugnis-ugly (or libgstrmdemux.so) and
    retry,<br>
    <br>
    Nicola<br>
    <br>
    <blockquote
cite="mid:CAOv7836mPCn5Ct8YtLNKWYd2DkAXjJySPirR63FA+BX3C2bq5w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>   version: '1.0'</div>
          <div> headers:</div>
          <div> body: length 0</div>
          <div>0:00:00.043819740 10572      0x2525de0 WARN              
              rtspsrc
            gstrtspsrc.c:5610:gst_rtspsrc_send:<rtspsrc0> error:
            Got error response: 400 (Bad Request).</div>
          <div>0:00:00.043928499 10572      0x2525de0 WARN              
              rtspsrc
            gstrtspsrc.c:6822:gst_rtspsrc_open:<rtspsrc0> can't
            get sdp</div>
          <div>ERROR: from element
            /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read
            from resource.</div>
          <div>Additional debug info:</div>
          <div>gstrtspsrc.c(5610): gst_rtspsrc_send ():
            /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:</div>
          <div>Got error response: 400 (Bad Request).</div>
          <div>ERROR: pipeline doesn't want to preroll.</div>
          <div>Setting pipeline to PAUSED ...</div>
          <div>0:00:00.043960711 10572      0x2525de0 WARN              
              rtspsrc
            gstrtspsrc.c:5015:gst_rtspsrc_loop:<rtspsrc0> we are
            not connected</div>
          <div>Setting pipeline to READY ...</div>
          <div>Setting pipeline to NUL</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>The Authentication  username and password is not getting
          send for "option" command. </div>
        <div>While When I try playing the stream in VLC, it send
          authentication parameters with every command. </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <p style="margin:0in 0in
                      0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span
                          style="color:rgb(31,73,125)">With Warm
                          Regards,</span></b></p>
                    <p style="margin:0in 0in
                      0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span
                        style="color:rgb(31,73,125)">Shrishty Deorari</span></p>
                    <p style="margin:0in 0in
                      0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span
                        style="color:rgb(31,73,125)">VVDN Technologies
                        Pvt Ltd</span></p>
                    <p style="margin:0in 0in 0.0001pt"><b
                        style="font-family:Calibri,sans-serif;font-size:11pt"><span
                          style="color:rgb(31,73,125)">Cell : </span></b><span
style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(31,73,125)">+91 </span><font
                        face="Calibri, sans-serif" color="#1f497d"><span
                          style="font-size:14.6666669845581px">7773980237</span></font><span
style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(31,73,125)"> | </span><b
style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(31,73,125)">Skype
                        :</b><span
style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(31,73,125)"> shrishty_vvdn</span></p>
                  </div>
                  <div><span style="color:rgb(31,73,125)"><br>
                    </span></div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Mon, Sep 26, 2016 at 6:53 PM, Miha
          Nedok <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:mike@mike.si" target="_blank">mike@mike.si</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr"><a moz-do-not-send="true"
href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-rtspsrc.html"
                target="_blank">https://gstreamer.freedesktop.<wbr>org/data/doc/gstreamer/head/<wbr>gst-plugins-good-plugins/html/<wbr>gst-plugins-good-plugins-<wbr>rtspsrc.html</a><br>
              <div><br>
              </div>
              <div>Look at the params of rtspsrc, there is user-id and
                user-pw</div>
              <div><br>
              </div>
              <div><br>
              </div>
            </div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">
                <div>
                  <div class="h5">On Mon, Sep 26, 2016 at 1:49 PM,
                    Shrishty Deorari <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:shrishty.deorari@vvdntech.com"
                        target="_blank">shrishty.deorari@vvdntech.com</a><wbr>></span>
                    wrote:<br>
                  </div>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div class="h5">
                      <div dir="ltr">
                        <div>Hi,</div>
                        <div><br>
                        </div>
                        <div>I am using Bosch camera and facing and
                          Issue while trying to access the H264 stream
                          via gstreamer.</div>
                        <div><br>
                        </div>
                        <div>Command I am using:</div>
                        <div>gst-launch-1.0 rtspsrc
                          location=<<a class="moz-txt-link-freetext" href="rtsp://usrname:passw">rtsp://usrname:passw</a><wbr>ord@<IP>>
                          debug=1 ! decodebin ! autovideosink</div>
                        <div><br>
                        </div>
                        <div>The Result is:</div>
                        <div>
                          <div>Setting pipeline to PAUSED ...</div>
                          <div>Pipeline is live and does not need
                            PREROLL ...</div>
                          <div>Progress: (open) Opening Stream</div>
                          <div>Progress: (connect) Connecting to <a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a
                              moz-do-not-send="true"
                              href="mailto:service%3A@192.168.3.158"
                              target="_blank">service:@192.168.3.158</a></div>
                          <div>Progress: (open) Retrieving server
                            options</div>
                          <div>RTSP request message 0x7fab7d8d3cc0</div>
                          <div> request line:</div>
                          <div>   method: 'OPTIONS'</div>
                          <div><b>   uri:    '<a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a
                                moz-do-not-send="true"
                                href="http://192.168.3.158"
                                target="_blank">192.168.3.158</a>'  
                              -------------> Not sending
                              the authorisation details</b></div>
                          <div>   version: '1.0'</div>
                          <div> headers:</div>
                          <div>   key: 'User-Agent', value: 'RealMedia
                            Player Version 6.0.9.1235
                            (linux-2.0-libc6-i386-gcc2.95)<wbr>'</div>
                          <div>   key: 'ClientChallenge', value:
                            '9e26d33f2984236010ef6253fb188<wbr>7f7'</div>
                          <div>   key: 'CompanyID', value:
                            'KnKV4M4I/B2FjJ1TToLycw=='</div>
                          <div>   key: 'GUID', value:
                            '00000000-0000-0000-0000-00000<wbr>0000000'</div>
                          <div>   key: 'RegionData', value: '0'</div>
                          <div>   key: 'PlayerStarttime', value:
                            '[28/03/2003:22:50:23 00:00]'</div>
                          <div>   key: 'ClientID', value:
                            'Linux_2.4_6.0.9.1235_play32_R<wbr>N01_EN_586'</div>
                          <div> body:</div>
                          <div>RTSP response message 0x7fab7d8d3d20</div>
                          <div> status line:</div>
                          <div>   code:   '401'</div>
                          <div><b>   reason: 'Unauthorized'</b></div>
                          <div>   version: '1.0'</div>
                          <div> headers:</div>
                          <div>   key: 'CSeq', value: '1'</div>
                          <div>   key: 'WWW-Authenticate', value:
                            'Digest realm="Use 'live' as User
                            Name",nonce="7ea901fc580402510<wbr>71d55446e556693",opaque="",<wbr>stale=FALSE,algorithm=MD5'</div>
                          <div> body: length 0</div>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>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. </div>
                        <div>My doubt is can I make the rtspsrc to send
                          the username and password for every rtsp
                          command.</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                      </div>
                      <br>
                    </div>
                  </div>
                  ______________________________<wbr>_________________<br>
                  gstreamer-devel mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:gstreamer-devel@lists.freedesktop.org"
                    target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
                  <a moz-do-not-send="true"
                    href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
                    rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
                  <br>
                </blockquote>
              </div>
              <br>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            gstreamer-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
              rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>