gst-inpsect-1.0 on Android failed to load plugin

Sirius Wu ccwu660601 at gmail.com
Thu Oct 17 13:07:38 UTC 2019


Hi,

I've adb push all the bin and lib generated to my Android 7.1.2 box, and
setup the environment variables like bin/gst-shell.

But when I run gst-inspect-1.0, it gives messages. How can I setup the
environmemt so that it can load the opensles plugin?

---- Shell to setup the environment variables ----
#!/system/bin/sh

export GSTREAMER_ROOT="/data/local/gst"
export PATH="${GSTREAMER_ROOT}/bin${PATH:+:$PATH}"
export
LD_LIBRARY_PATH="${GSTREAMER_ROOT}/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export
GST_REGISTRY_1_0="${HOME}/.cache/gstreamer-1.0/gstreamer-cerbero-registry"
export
GST_PLUGIN_SCANNER_1_0="${GSTREAMER_ROOT}/libexec/gstreamer-1.0/gst-plugin-scanner"
export GST_PLUGIN_PATH_1_0="${GSTREAMER_ROOT}/lib/gstreamer-1.0"
export GST_PLUGIN_SYSTEM_PATH_1_0="${GSTREAMER_ROOT}/lib/gstreamer-1.0"
export
PYTHONPATH="${GSTREAMER_ROOT}/lib/python3.6/site-packages${PYTHONPATH:+:$PYTHONPATH}"
export GIO_EXTRA_MODULES="${GSTREAMER_ROOT}/lib/gio/modules"
export GI_TYPELIB_PATH="${GSTREAMER_ROOT}/lib/girepository-1.0"


$SHELL "$@"

---- Messages output from gst-inspect-1.0 ----

0:00:00.115293209 ESC[336m17087ESC[00m 0xa8ab9800 ESC[31;01mERROR  ESC[00m
ESC[00;04m             default gstjniutils.c:556:load_java_module:
ESC[00m Could not find 'JNI_CreateJavaVM' in '(NULL)': 'JNI_CreateJavaVM':
undefined symbol: JNI_CreateJavaVM
0:00:00.115631542 ESC[336m17087ESC[00m 0xa8ab9800 ESC[31;01mERROR  ESC[00m
ESC[00;04m             default gstjniutils.c:575:load_java_module:
ESC[00m Failed to locate required JNI symbols in '(NULL)':
'JNI_GetCreatedJavaVMs': undefined symbol: JNI_GetCreatedJavaVMs
0:00:00.116014501 ESC[336m17087ESC[00m 0xa8ab9800 ESC[31;01mERROR  ESC[00m
ESC[00;04m             default gstjniutils.c:569:load_java_module:
ESC[00m Failed to load Java module 'libdvm': dlopen failed: library
"libdvm.so" not found

(gst-plugin-scanner:17105): GStreamer-WARNING **: 20:17:16.955: Failed to
load plugin '/data/local/gst/lib/gstreamer-1.0/libgstopensles.so': dlopen
failed: cannot locate symbol "vorbis_info_init" referenced by
"/system/lib/libstagefright.so"...
WARNING: no real random source present!

-- 
Sirius Wu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-android/attachments/20191017/dab26c12/attachment.html>


More information about the gstreamer-android mailing list