kms-windows
kms-windows copied to clipboard
Getting many errors on attempted playback
I get these errors whenever I try to start playback using the kurento tutorial. It doesn't seem to matter what url I try to stream:
(kurento-media-server.exe:34188): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(kurento-media-server.exe:34188): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(kurento-media-server.exe:34188): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(kurento-media-server.exe:34188): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(kurento-media-server.exe:34188): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(kurento-media-server.exe:34188): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(kurento-media-server.exe:34188): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(kurento-media-server.exe:34188): GStreamer-CRITICAL **: gst_bin_add: assertion 'GST_IS_ELEMENT (element)' failed WARNING: no real random source present!
(kurento-media-server.exe:34188): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Can you please mention what tutorial have you tried? kurento-hello-world tutorial works good for me in Chrome. And after OPUS plugin has been added sound appeared.
It's this one: https://github.com/lulop-k/kurento-rtsp2webrtc
It looks like it should be working, The last lines in the console are: ICE candidate received Player playing ... oniceconnectionstatechange -> connected icegatheringstate -> complete oniceconnectionstatechange -> completed icegatheringstate -> complete
But no display in the remote stream window
Didn't test that tutorial. Can you please share GStreamer logs with GST_DEBUG set to 3 or 5? Also, can you try this tutorial with standard Ubuntu version of KMS and compare communication between KMS and tutorial code via Websockets to try find some difference?
Hi, please check with recent version of KMS port.
We tried the same ... The tutorial from https://github.com/lulop-k/kurento-rtsp2webrtc worked fine at a ubuntu system
- Ubuntu: we see the stream in the browser
- Windows: errors on server console and stream-loading-icon in the browser.
We used kurento 6.5.0 on Ubuntu and v6.4.1 Alpha 11 on windows
kurento config: { "mediaServer" : { "resources": { "garbageCollectorPeriod": 240}, "net" : { "websocket": { "port": 8888, "secure": { "port": 8433, "certificate": "defaultCertificate.pem", "password": "" }, "registrar": { "address": "ws://localhost:9090", "localAddress": "localhost" }, "path": "kurento", "threads": 10 }} }}
in our Javascript we use to connect to the server (this is working on ubuntu) but not in windows:
....
var args = getopts(location.search,
{
default:
{
ws_uri: 'ws://' + location.hostname + ':8888/kurento',
ice_servers: undefined
}
});
the last java script console logs are:
...
Remote icecandidate {"__module__":"kurento","__type__":"IceCandidate","candidate":"candidate:39 2 TCP 1015022078 192.268.2.11 56677 typ host tcptype passive","sdpMLineIndex":1,"sdpMid":"sdparta_1"}
ICE candidate received
Player playing ...
Server log on server console:
(kurento-media-server.exe:7236): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(kurento-media-server.exe:7236): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(kurento-media-server.exe:7236): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(kurento-media-server.exe:7236): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(kurento-media-server.exe:7236): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(kurento-media-server.exe:7236): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(kurento-media-server.exe:7236): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(kurento-media-server.exe:7236): GStreamer-CRITICAL **: gst_bin_add: assertion 'GST_IS_ELEMENT (element)' failed
(kurento-media-server.exe:7236): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Now we are out of more ideas. Do you have a hint?
Yep, I have a hint. It looks like some GStreamer element class is missing.
So please tweak GST_DEBUG to show messages from element factory and take a look on missing element message before invalid (NULL) pointer instance
.
hmm ... and how should I tweak GST_DEBUG .. and what is GST_DEBUG (an enviroment variable, config item in a file or some other ...)
OK I've got it. SET GST_DEBUG=*:4 kurento-media-server.exe --enable-gst-debug=yes > log.txt 2>&1
The right debug level is not so easy: 5/6 seems to much .. I've got a timeout on the browser client because of the server is logging and not working. 3 deliveres not more then before. Could I use a specific category_name (instead of '*')?
With level 4:
it seems to be that: INFO GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "uridecodebin"!
`0:00:15.921899106 8896 0290EBC0 INFO KurentoWebSocketRegistrar server/transport/websocket/WebSocketRegistrar.cpp:193:connectRegistrar: Registrar disconnected, trying to reconnect in 3200 ms
0:00:19.122719329 8896 0290EBC0 INFO KurentoWebSocketRegistrar server/transport/websocket/WebSocketRegistrar.cpp:108:connectRegistrar: Connecting registrar
0:00:20.978972771 8896 02914220 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:gst_element_factory_create: creating element "pipeline"
0:00:20.979306708 8896 02914220 INFO GST_STATES gstelement.c:2305:gst_element_continue_state:
(kurento-media-server.exe:8896): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(kurento-media-server.exe:8896): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(kurento-media-server.exe:8896): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(kurento-media-server.exe:8896): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(kurento-media-server.exe:8896): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(kurento-media-server.exe:8896): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(kurento-media-server.exe:8896): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(kurento-media-server.exe:8896): GStreamer-CRITICAL **: gst_bin_add: assertion 'GST_IS_ELEMENT (element)' failed
0:00:20.989589923 8896 02914220 INFO GST_STATES gstelement.c:2305:gst_element_continue_state:
Okay, now we know uridecodebin is missing. Currently I am working on new version, I will add needed .DLL to next release.
You can set debug level to 5 for GstElementFactory and to 3 for other categories:
set GST_DEBUG=*:3,GST_ELEMENT_FACTORY:5
@kirushyk still not working in v6.4.1 Beta 3, i'm getting insufficient memory error message
I tried v6.4.1 Beta 3 with the same result and log messages like in the last alpha (missing uridecodebin ). Did you change something at this point ...
Test with 6.6.1 beta 4 We gone the next steps! Seams that uridecodebin no more is missing. Now it looks unsuccessfully for a h264 decoder:
`0:00:50.945499322 10800 07B0B9A0 DEBUG GST_ELEMENT_FACTORY gstelementfactory.c:848:gst_element_factory_list_filter: Trying sirendec
0:00:50.946162077 10800 07B0B9A0 WARN uridecodebin gsturidecodebin.c:939:unknown_type_cb:
0:00:50.946575660 10800 07B0B9A0 WARN uridecodebin gsturidecodebin.c:1006:no_more_pads_full:
0:00:50.946748602 10800 07B0B9A0 ERROR playerendpoint kmsplayerendpoint.c:1207:bus_sync_signal_handler:
Do you know where to get it and how to integrate it?
Test with 6.6.1 beta 4 We gone the next steps! Seams that uridecodebin no more is missing. Now it looks unsuccessfully for a h264 decoder:
`0:00:50.945499322 10800 07B0B9A0 DEBUG GST_ELEMENT_FACTORY gstelementfactory.c:848:gst_element_factory_list_filter: Trying sirendec
0:00:50.946162077 10800 07B0B9A0 WARN uridecodebin gsturidecodebin.c:939:unknown_type_cb:
0:00:50.946575660 10800 07B0B9A0 WARN uridecodebin gsturidecodebin.c:1006:no_more_pads_full:
0:00:50.946748602 10800 07B0B9A0 ERROR playerendpoint kmsplayerendpoint.c:1207:bus_sync_signal_handler:
Do you know where to get it and how to integrate it?
Hi @kendziorra !
Were you able to get KMS to work? I'm having the same issue.
@kirushyk do you have any new release scheduled? The latest version in master it also appears not to work. Any suggestions?
Thanks to both of you!
Hi luismcosta! As we now the project is pausing at the moment. The parts of features the client of kirushyk needed was implemented. H264 coded rtsp streams send to webrtc wasn't a part of this. Unfortunately this is just the main feature for my company. We know we have to update to last kurento version. We understand the build prozess, but the result dont work and the logs are not so useful. Our problem is, that kirushyk at this time is working on an other project and we dont have the manpower to push kms-windows along by ourself. If you anyone know who is able to do that - we are interessing in contact him (or her ;-))
all the best ... Heiko Kendziorra
Hi,
At this moment I can not dedicate my time for this. However, as I know, company named Estos works a lot with this. Try contact them for help.
Cheers, —K.