Errors while initialization of GStreamer in Android JNI project
Ramil Galin
leftbyheaven at gmail.com
Wed Feb 28 17:15:23 UTC 2024
Hello!
I am trying to use gstreamer on android to obtain frames from videos on
demand. I set up my android project and jni stuff following the tutorials,
but when I run my app I get lots of warnings and errors from gstreamer
androidmedia, kind of:
```
0:00:00.050855041 0xb400006fb811f0a0
../ext/adaptivedemux2/gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init
Failed to load libsoup library
16:35:14.517 W 0:00:00.053559208 0xb400006fb811f0a0
../ext/adaptivedemux2/gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init
Failed to load libsoup library
16:35:14.518 W 0:00:00.054405375 0xb400006fb811f0a0
../ext/adaptivedemux2/gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init
Failed to load libsoup library
16:35:14.751 E 0:00:00.287678166 0xb400006fb811f0a0
../sys/androidmedia/gstamc.c:551:accepted_color_formats Unknown color
format 0x14, ignoring
16:35:14.751 E 0:00:00.288346875 0xb400006fb811f0a0
../sys/androidmedia/gstamc.c:551:accepted_color_formats Unknown color
format 0x27, ignoring
...
```
Here is the pastebin <https://pastebin.com/5ByaAmuC> with all others logs.
Errors appear in logs at the stage when I call Gstreamer.init() in main
activity. Actually, the app continues working. It makes pipeline and opens
mp4 file it, but it gives the following errors:
```
expected specified color aspects (2:0:0:0)
16:53:16.088 W 0:00:42.574790228 0xb400006fc8086240
../gst-libs/gst/video/video-info.c:762:gst_video_info_to_caps invalid
matrix 3 for RGB format, using RGB
16:53:16.089 E 0:00:42.575359937 0xb400006fc8086240
../sys/androidmedia/gstamcvideodec.c:1985:gst_amc_video_dec_set_format:<amcvideodec-c2goldfishh264decoder0>
Codec only supports GL output but downstream does not
16:53:16.089 W 0:00:42.575614353 0xb400006fc8086240
../gst-libs/gst/video/gstvideodecoder.c:934:gst_video_decoder_setcaps:<amcvideodec-c2goldfishh264decoder0>
Subclass refused caps
16:53:16.089 W 0:00:42.575699270 0xb400006fc8086240
../gst/playback/gstdecodebin2.c:2555:connect_pad:<decodebin0> Couldn't set
amcvideodec-c2goldfishh264decoder0 to PAUSED
```
I have made a minimal example
<https://github.com/ramgalin/gst-get-frames/tree/main> that shows the full
picture of how i set up the whole project. Maybe I configured or
initialized smth incorrectly.
When I run tutorials, I do not get these errors. What could be wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20240228/83b8e74f/attachment.htm>
More information about the gstreamer-devel
mailing list