Custom GStreamer Filter Failing in Builder.build() method

104 views
Skip to first unread message

amruta.ag...@gmail.com

unread,
Mar 2, 2016, 2:17:07 AM3/2/16
to kurento
Hi,

I am creating a custom gst filter and followed all the steps mentioned in the documentation here ( https://www.kurento.org/docs/5.1.1/mastering/develop_kurento_modules.html )

When I re-start the Kurento Media Server, in the logs I find that my module is loaded successfully.


KurentoModuleManager      ModuleManager.cpp:87 loadModule()  Module loaded from /usr/lib/x86_64-linux-gnu/kurento/modules/libkmsvadcustomfiltermodule.so
2016-03-02 11:20:23,582189 535 [0x00007f22002358c0]    info KurentoModuleManager      ModuleManager.cpp:118 loadModule()  Loaded vadcustomfilter version 0.0.1~.g generated at Mar  2 2016 11:14:02

I am trying to integrate this module in the hello world KMS tutorial by writing this in the start() method:

I have not written any new code in the cpp files yet, i'm just testing the empty filters.

VADCustomFilter vadFilter = new VADCustomFilter.Builder(pipeline).build();


What could be the possibilities for getting exception in Builder?


-Thanks,
Amruta

Jose Antonio Santos Cadenas

unread,
Mar 2, 2016, 4:11:30 AM3/2/16
to kurento
What is the exact error that you are getting? Or the mediaserver log. Without this information is hard to say :)


--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

amruta.ag...@gmail.com

unread,
Mar 2, 2016, 5:52:37 AM3/2/16
to kurento
There's no error in the media-server_error.log or the log file that gets created per process.

In the browser console  i get the attached error.
filterError.png

Jose Antonio Santos Cadenas

unread,
Mar 2, 2016, 6:21:00 AM3/2/16
to kurento
I guess it is not descriptive enough. Maybe java server is reporting some error.

El mié., 2 mar. 2016 a las 11:52, <amruta.ag...@gmail.com> escribió:
There's no error in the media-server_error.log or the log file that gets created per process.

In the browser console  i get the attached error.

--

amruta.ag...@gmail.com

unread,
Mar 2, 2016, 7:33:30 AM3/2/16
to kurento
In the kurento-hello-world tutorial, HelloWorldHandler.java i'm writing this:


VADCustomFilter vadFilter = new VADCustomFilter.Builder(pipeline).build();
   
webRtcEndpoint.connect(vadFilter, MediaType.AUDIO);

Because of which, i can't see remote stream and browser console shows the above error.

Could it be possible because, i have not written any code in the filter and trying to connect to an empty filter?

Or is it because the java code where i'm connecting to webrtcendpoint is wrong.

Thanks for your replies.

Jose Antonio Santos Cadenas

unread,
Mar 2, 2016, 7:35:55 AM3/2/16
to kurento
Most probably there is a descriptive message in kms log

amruta.ag...@gmail.com

unread,
Mar 2, 2016, 7:55:18 AM3/2/16
to kurento
I went through the logs. But, couldn't see any error. Could you pl take a look? I have attached the recent logs.

Thanks.
media-server_2016-03-02_11-20-23.00000.pid535.log

Jose Antonio Santos Cadenas

unread,
Mar 2, 2016, 1:20:41 PM3/2/16
to kurento

It seems that there is a problem while your module is being loaded.

2016-03-02 11:20:23,581454 535 [0x00007f22002358c0] warning KurentoModuleManager      ModuleManager.cpp:61 loadModule()  Module /usr/lib/x86_64-linux-gnu/kurento/modules/libkmssubtitlefiltermodule.so cannot be loaded: /usr/lib/x86_64-linux-gnu/libkmssubtitlefilterimpl.so.0: undefined symbol: _ZTv0_n224_N7kurento16MediaElementImpl9SerializeERNS_14JsonSerializerE

amruta.ag...@gmail.com

unread,
Mar 3, 2016, 5:13:17 AM3/3/16
to kurento
Thanks for your reply.

Actually that error in the log is for some other filter. I deleted all the filters and created a new one. Now, media-server-log files doesn't show any error for loading.

in HelloWorldTutorial when I connected my filter with the WebRTCEndPoint and did a loopback, I can now see both local and remote streams. However, i can still see the same error in Browser console.

I have printed some logs using GST_WARNING("log") in filter constructor and create object methods. But, none of the logs are getting printed in the log files.

-Thanks.

Jose Antonio Santos Cadenas

unread,
Mar 3, 2016, 5:16:52 AM3/3/16
to kurento
Reviewing the logs you sent, I cannot see any request for creating other than than Pipelines and WebRtcEndpoint, maybe you did not added plugin on java side correctly or you have some compilation problem. I'm afraid I cannot help you a lot with java.

amruta.ag...@gmail.com

unread,
Mar 3, 2016, 8:57:17 AM3/3/16
to kurento
In the java code,

At the point:

 customfilter vadFilter = new customfilter.Builder(pipeline).build();

I'm getting the following execption:

{"id":8,"error":{"code":40108,"message":"Factory 'customfilter' not found","data":{"type":"MEDIA_OBJECT_NOT_AVAILABLE"}},"jsonrpc":"2.0"}

-Thanks

Jose Antonio Santos Cadenas

unread,
Mar 3, 2016, 9:26:50 AM3/3/16
to kurento
This error is raised from the mediaserver, the log you give me did not show any of this requests. The problem is that the factory is not being found. You should try to load the module in a test before using it in the mediaserver otherwise it will be very difficult to debug see how we do it in kms-core and kms-elements.


amruta.ag...@gmail.com

unread,
Mar 4, 2016, 6:14:41 AM3/4/16
to kurento
Ok. Thanks. I will try that.
Reply all
Reply to author
Forward
0 new messages