-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does anyone know where nativeInit GStreamer is? #16
Comments
I came up with the same problem (but actually I am trying to build my own project, not gst-android-camera). For me also gst_element_factory_make returns nullptr to everything I am trying create. So far, my investigations brought me to the following. This "nativeInit" is actually in a library "gstreamer_android.so" which is actually automatically builds from "gstreamer_android-1.0.c.in" file (this file is placed in "$GSTREAMER_ROOT/$ANDROID_ABI/gst-android/ndk-build/"). You can see this lib is linked on 29th line: This file is automatically generated by makefiles of gstreamer. Inside of this file, there are generated lines to include static plugins, kind of this: ...
GST_PLUGIN_STATIC_DECLARE(coreelements);
GST_PLUGIN_STATIC_DECLARE(ahcsrc);
GST_PLUGIN_STATIC_DECLARE(videotestsrc);
...
void gst_android_register_static_plugins() {
...
GST_PLUGIN_STATIC_REGISTER(coreelements);
GST_PLUGIN_STATIC_REGISTER(ahcsrc);
GST_PLUGIN_STATIC_REGISTER(videotestsrc);
...
__android_log_print (ANDROID_LOG_INFO, TAG, "plugins registered");
} As I said all of these is made automatically, so if you work with makefile, you should just make sure that everything is set up correctly. I am working with CMake, so I did all of this work manually following the example. Also this link has quite good explanations for the related stuff. Also in Android logcat I found the following lines generated by GStreamer which look strange:
So far i couldn't find solution for the problem, but hope that this additional info will help in search for the solution. |
I ended up with with Camera2 and ImageReader
then planes go to:
Performance seems ok |
Does anyone know where nativeInit GStreamer is?
I have cmake for my project
It works fine except 'ahc'
I see 2 different 'nativeInit' methods
But i see one JNI in 'android_camera.c' only
So i had to comment the first nativeInit in Gstreamer.java
But gst_element_factory_make("ahcsrc".. returns NULL
Apparently i still need GStreamer nativeInit to init 'ahc'
I searched for it in the whole gstreamer sources and could not find it
The text was updated successfully, but these errors were encountered: