souphttpsrc no ssl support despite included glib-networking on windows

robertz robertz at tiger-soft.pl
Thu Jan 9 13:50:53 UTC 2020


Hello,

I have problems with souphttpsource. I'm trying to get preview using palybin
plugin with following pipeline: 

gst-launch-1.0 playbin uri="https://xxxxxx"

If passed url is http it works great, but after changing to https I get
following error: TLS/SSL support not available; install glib-networking (6).
I searched the solution for a while and here is what I did:
* Created environment variable: GST_DEBUG=4,soup*:9
* Created environment variable (that points folder where libgiognutls.dll is
stored): GIO_EXTRA_MODULES=C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules
* Created environment variable (that points folder where libgiognutls.dll is
stored): GIO_MODULE_DIR=C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules
* Ran cerbero build (cerbero-uninstalled buildone glib-networking) to
compile required dlls
* Moved all cerbero output to location specyfied in env variables
(C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules)

Unortunatnly, the error still occures. Below I attach most interesting part
of log.

0:00:00.799249000 21212 0000020C6A23E000 DEBUG            souphttpsrc
gstsouphttpsrc.c:1867:gst_soup_http_src_start:<source>
start("https://192.168.80.24:8444/mt/api/rest/v1/media?session=AWwAk_8KEODZObJbjU29ixxgmtVEKskSFgoUMbYTTqWnsCTlPk5-a5127x-XW9MaEIfVmi-sR0nmnCNODR5FT5IiEOglplSTnkqpgD9N7hzeP7YqCFNJUy1GSVJFMhIaEE2erIRywEb_v4iN8kVXy1c&cameraId=49Ix0Us2SjE1TEtL0zVMSjTSNTRMMta1MDQx1jW0MLNITjIyNEhOTtFLTsw1MBASeKhj9nPJJ2fdmWmBtyWn9UUBAA&format=fmp4&frames=all&media=video&t=live")
0:00:00.827422000 21212 0000020C6A23E000 INFO                GST_PADS
gstpad.c:4236:gst_pad_peer_query:<typefindelement0:src> pad has no peer
0:00:00.835568000 21212 0000020C6A23E000 DEBUG            souphttpsrc
gstsouphttpsrc.c:951:gst_soup_http_src_session_open:<source> Creating
session (can share 1)
0:00:00.846094000 21212 0000020C6A23E000 DEBUG            souphttpsrc
gstsouphttpsrc.c:983:gst_soup_http_src_session_open:<source> Sharing session
0000020C6C148220
0:00:00.856294000 21212 0000020C6A23E000 DEBUG            souphttpsrc
gstsouphttpsrc.c:1929:gst_soup_http_src_set_context:<source> Setting
external session 0000020C6C148220 (force: 0)
0:00:00.864862000 21212 0000020C6A23E000 DEBUG            souphttpsrc
gstsouphttpsrc.c:1975:gst_soup_http_src_get_size:<source> get_size() = FALSE
0:00:00.876484000 21212 0000020C6A23E000 INFO                 basesrc
gstbasesrc.c:1373:gst_base_src_do_seek:<source> seeking: bytes segment
start=0, offset=0, stop=-1, rate=1.000000, applied_rate=1.000000,
flags=0x00, time=0, base=0, position 0, duration -1
0:00:00.892384000 21212 0000020C6A23E000 DEBUG            souphttpsrc
gstsouphttpsrc.c:2021:gst_soup_http_src_do_seek:<source>
do_seek(0-18446744073709551615)
0:00:00.900329000 21212 0000020C6A23E000 DEBUG            souphttpsrc
gstsouphttpsrc.c:2026:gst_soup_http_src_do_seek:<source> Seek to current
read/end position and no seek pending
0:00:00.910200000 21212 0000020C6A23E000 INFO                    task
gsttask.c:453:gst_task_set_lock: setting stream lock 0000020C6C1603A0 on
task 0000020C6C148290
0:00:00.922074000 21212 0000020C6A23E000 INFO                GST_PADS
gstpad.c:6158:gst_pad_start_task:<source:src> created task 0000020C6C148290
0:00:00.931270000 21212 0000020C6A23E000 INFO              GST_STATES
gstelement.c:2676:gst_element_continue_state:<source> completed state change
to PAUSED
0:00:00.941527000 21212 0000020C6A23E000 INFO              GST_STATES
gstelement.c:2579:_priv_gst_element_state_changed:<source> notifying about
state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.941577000 21212 0000020C6C123600 INFO        GST_ELEMENT_PADS
gstelement.c:913:gst_element_get_static_pad: no such pad 'sink' in element
"source"
Pipeline is PREROLLING ...
0:00:00.961241000 21212 0000020C6C123600 INFO                GST_PADS
gstpad.c:4236:gst_pad_peer_query:<typefindelement0:src> pad has no peer
0:00:00.964777000 21212 0000020C6A23E000 WARN               structure
gststructure.c:1863:priv_gst_structure_append_to_gstring: No value transform
to serialize field 'session' of type 'SoupSession'
0Got context fr:om e0lement 'source': 0gst:.0sou0p.session=co.ntex9t,
session=(SoupSession)NULL, force=(boolean)false;
74343000 21212 0000020C6C123600 LOG              souphttpsrc
gstsouphttpsrc.c:1583:gst_soup_http_src_do_request:<source> Running request
for method: GET
'C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgio-2.0-0.dll': %1 is not a
valid Win32 application.
Failed to load module:
C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgio-2.0-0.dll
'C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgiognutls.dll': The
specified module could not be found.
Failed to load module:
C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgiognutls.dll
'C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libglib-2.0-0.dll': %1 is not
a valid Win32 application.
Failed to load module:
C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libglib-2.0-0.dll
'C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgmodule-2.0-0.dll': %1 is
not a valid Win32 application.
Failed to load module:
C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgmodule-2.0-0.dll
'C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgobject-2.0-0.dll': %1 is
not a valid Win32 application.
Failed to load module:
C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgobject-2.0-0.dll
'C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgthread-2.0-0.dll': %1 is
not a valid Win32 application.
Failed to load module:
C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgthread-2.0-0.dll
0:00:01.053388000 21212 0000020C6C123600 TRACE              souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<source> HTTP_SESSION(M): <
HTTP/1.1 6 TLS/SSL support not available; install glib-networking
0:00:01.065320000 21212 0000020C6C123600 TRACE              souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<source> HTTP_SESSION(M): <
Soup-Debug-Timestamp: 1578573502
0:00:01.074420000 21212 0000020C6C123600 TRACE              souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<source> HTTP_SESSION(M): <
Soup-Debug: SoupMessage 0 (0000020C6C14C120)
0:00:01.084049000 21212 0000020C6C123600 TRACE              souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<source> HTTP_SESSION(M):
0:00:01.093215000 21212 0000020C6C123600 INFO             souphttpsrc
gstsouphttpsrc.c:1129:gst_soup_http_src_got_headers:<source> got headers
0:00:01.101123000 21212 0000020C6C123600 WARN             souphttpsrc
gstsouphttpsrc.c:1381:gst_soup_http_src_parse_status:<source> error: Secure
connection setup failed.
0:00:01.111260000 21212 0000020C6C123600 WARN             souphttpsrc
gstsouphttpsrc.c:1381:gst_soup_http_src_parse_status:<source> error: TLS/SSL
support not available; install glib-networking (6), URL:
https://192.168.80.24:8444/mt/api/rest/v1/media?session=AWwAk_8KEODZObJbjU29ixxgmtVEKskSFgoUMbYTTqWnsCTlPk5-a5127x-XW9MaEIfVmi-sR0nmnCNODR5FT5IiEOglplSTnkqpgD9N7hzeP7YqCFNJUy1GSVJFMhIaEE2erIRywEb_v4iN8kVXy1c&cameraId=49Ix0Us2SjE1TEtL0zVMSjTSNTRMMta1MDQx1jW0MLNITjIyNEhOTtFLTsw1MBASeKhj9nPJJ2fdmWmBtyWn9UUBAA&format=fmp4&frames=all&media=video&t=live,
Redirect to: (NULL)
0:00:01.145709000 21212 0000020C6C123600 INFO        GST_ERROR_SYSTEM
gstelement.c:2141:gst_element_message_full_with_details:<source> posting
message: Secure connection setup failed.
0:00:01.159231000 ERROR: from element
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:
Secure connection setup failed.
21212Additional debug info:
../ext/soup/gstsouphttpsrc.c(1381): gst_soup_http_src_parse_status ():
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:
TLS/SSL support not available; install glib-networking (6), URL:
https://192.168.80.24:8444/mt/api/rest/v1/media?session=AWwAk_8KEODZObJbjU29ixxgmtVEKskSFgoUMbYTTqWnsCTlPk5-a5127x-XW9MaEIfVmi-sR0nmnCNODR5FT5IiEOglplSTnkqpgD9N7hzeP7YqCFNJUy1GSVJFMhIaEE2erIRywEb_v4iN8kVXy1c&cameraId=49Ix0Us2SjE1TEtL0zVMSjTSNTRMMta1MDQx1jW0MLNITjIyNEhOTtFLTsw1MBASeKhj9nPJJ2fdmWmBtyWn9UUBAA&format=fmp4&frames=all&media=video&t=live,
Redirect to: (NULL)
 0000020C6C123600 ERROR: pipeline doesn't want to preroll.
INSetting pipeline to NULL ...
FO        GST_ERROR_SYSTEM
gstelement.c:2168:gst_element_message_full_with_details:<source> posted
error message: Secure connection setup failed.
0:00:01.188536000 21212 0000020C6A23E000 INFO              GST_STATES
gstbin.c:2503:gst_bin_element_set_state:<playsink> current READY pending
PAUSED, desired next NULL
0:00:01.196031000 21212 0000020C6C123600 DEBUG            souphttpsrc
gstsouphttpsrc.c:1836:gst_soup_http_src_create:<source> Returning -5 error

'C:\gstreamer\1.16\1.0\x86_64\lib\gio\modules\libgiognutls.dll': The
specified module could not be found. - this error is wierd. I'm sure that
this dll exist in specyfied location.

I'm using Windows 10. Cerbero has been run via msys.bat located in mingw. My
Gst version is: 1.16.0.

Currently I'm run out of ideas. I will appricieate any next step suggestion.

Best regards,
Robert



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list