How to use gst-inspect-1.0 on Android platform (ARM64) to print out information about a gstreamer plugin
I wonder about how to use gst-inspect-1.0 command on ARM64 based Android platform. At first, I tried to find the below prebuilt files from https://gstreamer.freedesktop.org/data/pkg/android/1.14.4/.
[ ] gstreamer-1.0-android-universal-1.14.4.tar.bz2 2018-10-06 02:36 891M
[TXT] gstreamer-1.0-android-universal-1.14.4.tar.bz2.asc 2018-10-06 02:36 833
[ ] gstreamer-1.0-android-universal-1.14.4.tar.bz2.sha256sum 2018-10-06 02:36 113
In order to generate directly gstreamer-1.0-android-universal-1.12.4-runtime.tar.bz2 that includes gst-*** ELF files and .so files, I tried to build the gstreamer source code with the cerbero software + Android NDk r12b as following:
git clone https://gitlab.freedesktop.org/gstreamer/cerbero
cd cerbero
time ./cerbero-uninstalled -c config/cross-android-arm64.cbc bootstrap
time ./cerbero-uninstalled -c config/cross-android-arm64.cbc package gstreamer-1.0
The below files are successfully generated by cerbero command on my own Ubuntu 16.04 x86_64 desktop computer.
[ ] gstreamer-1.0-android-universal-1.12.4-runtime.tar.bz2 2019-01-29 22:48 445M
[ ] gstreamer-1.0-android-universal-1.12.4.tar.bz2 2019-01-29 22:52 718M
I decompressed gstreamer-1.0-android-universal-1.12.4-runtime.tar.bz2. Then, I ran ./arm64/bin/gst-inspect-1.0 command on the Anrdoid 64bit reference board. However, I have got the "Accessing a corrupted shared library" error when I ran ./arm64/bin/gst-inspect-1.0 command.
- armv7: It's okay.
/data/gst-inspect-1.0 --help <
Usage:
gst-inspect-1.0 [OPTION...] [ELEMENT-NAME | PLUGIN-NAME]
Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gst Show GStreamer Options
Application Options:
-a, --print-all Print all elements
-b, --print-blacklist Print list of blacklisted files
--print-plugin-auto-install-info Print a machine-parsable list of features the specified plugin or all plugins provide.
Useful in connection with external automatic plugin installation mechanisms
--plugin List the plugin contents
-t, --types A slashes ('/') separated list of types of elements (also known as klass) to list. (unordered)
--exists Check if the specified element or plugin exists
--atleast-version When checking if an element or plugin exists, also check that its version is at least the version specified
-u, --uri-handlers Print supported URI schemes, with the elements that implement them
--version Print version information and exit
- arm64: It's failed.
target:/data/arm64/bin # LD_LIBRARY_PATH=/data/lib:/data/libnnstreamer ./gst-inspect-1.0 [enter]
/system/bin/sh: ./gst-launch-1.0: Accessing a corrupted shared library
Anyone that tried to run the gst-inspect-1.0 command on Android 64bit devices? Welcome to any hints and comments.