I am using CMake to build JNI .so library. I follow this example. In gstreamer_android.cpp I declare and register plugins, for example " videotestsrc":
I followed the example of cmake file that I mentioned in my post above and added some additional plugins also. I link these plugins and libs to build “gstreamer_android.so” and also link all of these to my JNI lib of the actual native code. Also, following the example I have org.freedesktop.Gstreamer.kt and make initialization of gstreamer using it.
the same also for coreelements. But what is strange, before these logs I also have:
2024-02-09 22:44:14.853 27144-27144 GStreamer+GST_REGISTRY com.test.video_lib_playground D 0:00:00.007448583 0xb4000077c1eecc00 ../gst/gstregistry.c:1713:scan_and_update_registry scanning paths added via --gst-plugin-path
2024-02-09 22:44:14.853 27144-27144 GStreamer+GST_REGISTRY com.test.video_lib_playground D 0:00:00.007463792 0xb4000077c1eecc00 ../gst/gstregistry.c:1736:scan_and_update_registry GST_PLUGIN_PATH not set
2024-02-09 22:44:14.853 27144-27144 GStreamer+GST_REGISTRY com.test.video_lib_playground D 0:00:00.007478625 0xb4000077c1eecc00 ../gst/gstregistry.c:1748:scan_and_update_registry GST_PLUGIN_SYSTEM_PATH not set
...(some other logs)
2024-02-09 22:44:14.856 27144-27144 GStreamer+...EMENT_PADS com.test.video_lib_playground D 0:00:00.010201000 0xb4000077c1eecc00 ../gst/gstelement.c:316:gst_element_base_class_init type GstBaseTransform : factory 0x0
Hope this helps. Please feel free to ask for more details if needed.