[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-devel
Subject:    Adaptive streaming with souphtttpsrc
From:       Aniket Hande via gstreamer-devel <gstreamer-devel () lists ! freedesktop ! org>
Date:       2022-06-27 6:21:07
Message-ID: CAF5waX9k6YC-XGzQrqdMO9RxXVrrYEPP_Wkb9s8WjJ1iWx4Lrw () mail ! gmail ! com
[Download RAW message or body]

I have a query about using authorization headers while using souphttpsrc
for video streaming. I'm providing my auth token by using "extra-headers"
property, however it seems to be only using the token for first part where
we download the hls playlist but the later chunks or video stream (ts)
download requests are not using the token which results in "401
Unauthorized"(I maybe wrong here). Is it expected to throw 401 from 2nd GET
request onwards or am I probably doing something wrong here?

Pipeline:
gst-launch-1.0 -vvv souphttpsrc is-live=true ssl-strict=false location=
https://some-server-ip/v1/devices/cam1/live/playlist.m3u8
extra-headers="header,Authorization=\"Bearer\
4fh7eecd-704a-44ba-4758-0bdbd67848ce\"" ! hlsdemux ! tsdemux ! h264parse !
avdec_h264 ! videoconvert ! autovideosink

logs with "http-log-level":

0:00:00.624029896  3674 0x55a2ccdbf770 TRACE              souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<souphttpsrc0>
HTTP_SESSION(M): > GET /v1/devices/cam1/live/playlist.m3u8 HTTP/1.1
0:00:00.844650347  3674 0x55a2ccdbf770 TRACE              souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<souphttpsrc0>
HTTP_SESSION(M): < HTTP/1.1 200 OK
0:00:01.432465320  3674 0x7fc7fc40e000 TRACE              souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<souphttpsrc0>
HTTP_SESSION(M): > GET /live/v1/cam1/hls/playlist.m3u8 HTTP/1.1
0:00:01.603365434  3674 0x7fc7fc40e000 TRACE              souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<souphttpsrc0>
HTTP_SESSION(M): < HTTP/1.1 401 Unauthorized

--
*Regards,*
*Aniket Hande*

[Attachment #3 (text/html)]

<div dir="ltr"><div>I have a query about using authorization headers while using \
souphttpsrc for video streaming. I&#39;m providing my auth token by using \
&quot;extra-headers&quot; property, however  it seems to be only using the  token for \
first part where we download the hls playlist but the later chunks or video stream \
(ts) download requests are not using the token which results in &quot;401 \
Unauthorized&quot;(I maybe wrong here). Is it expected to throw 401 from 2nd GET \
request onwards or am I probably doing  something wrong \
here?<br><br>Pipeline:<br>gst-launch-1.0 -vvv souphttpsrc is-live=true \
ssl-strict=false location=<a \
href="https://some-server-ip/v1/devices/cam1/live/playlist.m3u8" \
target="_blank">https://some-server-ip/v1/devices/cam1/live/playlist.m3u8</a>  \
extra-headers=&quot;header,Authorization=\&quot;Bearer\ \
4fh7eecd-704a-44ba-4758-0bdbd67848ce\&quot;&quot; ! hlsdemux ! tsdemux ! h264parse ! \
avdec_h264 ! videoconvert ! autovideosink<br><br>logs with \
&quot;http-log-level&quot;:<br><br>0:00:00.624029896   3674 0x55a2ccdbf770 TRACE      \
souputils gstsouputils.c:66:gst_soup_util_log_printer_cb:&lt;souphttpsrc0&gt; \
HTTP_SESSION(M): &gt; GET /v1/devices/cam1/live/playlist.m3u8 \
HTTP/1.1<br>0:00:00.844650347   3674 0x55a2ccdbf770 TRACE                     \
souputils gstsouputils.c:66:gst_soup_util_log_printer_cb:&lt;souphttpsrc0&gt; \
HTTP_SESSION(M): &lt; HTTP/1.1 200 OK<br>0:00:01.432465320   3674 0x7fc7fc40e000 \
TRACE                     souputils \
gstsouputils.c:66:gst_soup_util_log_printer_cb:&lt;souphttpsrc0&gt; HTTP_SESSION(M): \
&gt; GET /live/v1/cam1/hls/playlist.m3u8 HTTP/1.1<br>0:00:01.603365434   3674 \
0x7fc7fc40e000 TRACE                     souputils \
gstsouputils.c:66:gst_soup_util_log_printer_cb:&lt;souphttpsrc0&gt; HTTP_SESSION(M): \
&lt; HTTP/1.1 401 Unauthorized<font color="#888888"><br><br></font></div><font \
color="#888888">--<br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div><i><span \
style="color:rgb(11,83,148)">Regards,</span></i></div><div><i><span \
style="color:rgb(11,83,148)">Aniket \
Hande</span></i></div></div></div></div></div></font></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic