Hi,
I am developing android application I am facing issues while live streaming in android 10 devices. App works fine with android 7 devices. Here is the error Error received from decodebin0 : on Android 10 device, =========================== Your gstreamer installation is missing plugin. ============================ ../sys/androidmedia/gst-android-hardware-camera.c:1616:_init_classes Failed to initialize android.hardware.Camera classes: Failed to call Java method: java.lang.ClassNotFoundException: Didn't find class "org/freedesktop/gstreamer/androidmedia/GstAhcCallback" on path: DexPathList[[zip file "/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/base.apk"],nativeLibraryDirectories=[/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/lib/arm64, /data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]] I figured out that issues is with libgstandroidmedia.a which is prebuilt file. Is there any way to get this file source code or modify this file so that I can make this library compatible to Android 10 ? I have been using gstremer source from below link https://gstreamer.freedesktop.org/download/ Any help or guidance would be appreciated Screenshot_2020-10-19-11-58-25-432_org.jpg <http://gstreamer-devel.966125.n4.nabble.com/file/t379722/Screenshot_2020-10-19-11-58-25-432_org.jpg> -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
The source code for the androidmedia plugin is available from
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/tree/master/sys/androidmedia <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/tree/master/sys/androidmedia>. A MR fixing the incompatibility would be very welcome. Cheers -Matt On 2/12/20 1:21 am, Purva wrote: > Hi, > I am developing android application I am facing issues while live streaming > in android 10 devices. > App works fine with android 7 devices. Here is the error Error received from > decodebin0 : on Android 10 device, > =========================== > Your gstreamer installation is missing plugin. > ============================ > ../sys/androidmedia/gst-android-hardware-camera.c:1616:_init_classes Failed > to initialize android.hardware.Camera classes: Failed to call Java method: > java.lang.ClassNotFoundException: Didn't find class > "org/freedesktop/gstreamer/androidmedia/GstAhcCallback" on path: > DexPathList[[zip file > "/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/base.apk"],nativeLibraryDirectories=[/data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/lib/arm64, > /data/app/org.freedesktop.gstreamer.livestream.livestreaming-1/base.apk!/lib/arm64-v8a, > /system/lib64, /vendor/lib64]] > > I figured out that issues is with libgstandroidmedia.a which is prebuilt > file. Is there any way to get this file source code or modify this file so > that I can make this library compatible to Android 10 ? > > I have been using gstremer source from below link > https://gstreamer.freedesktop.org/download/ > > Any help or guidance would be appreciated > Screenshot_2020-10-19-11-58-25-432_org.jpg > <http://gstreamer-devel.966125.n4.nabble.com/file/t379722/Screenshot_2020-10-19-11-58-25-432_org.jpg> > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel OpenPGP_signature (505 bytes) Download Attachment |
Any idea about how to install this plugin or compile this ?
-- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
The official GStreamer binaries are built using cerbero available from
https://gitlab.freedesktop.org/gstreamer/cerbero/ <https://gitlab.freedesktop.org/gstreamer/cerbero/>. The README contains some information on how to use it. Building for android is only officially supported and known to work from a linux host. The oficial binaries already contain the androidmedia plugin however due to changes in Android 10, it seems androidmedia doesn't pick up some/all of the codecs anymore. Cheers -Matt On 3/12/20 12:32 am, Purva wrote: > Any idea about how to install this plugin or compile this ? > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel OpenPGP_signature (505 bytes) Download Attachment |
Thanks for the help
The source which I have used is https://gstreamer.freedesktop.org/download/ And you are referring to different source. Should I use different source for ndk compilation? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |