How to install gstreamer on Android automotive for iMX8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to install gstreamer on Android automotive for iMX8

3,084 Views
sig0912
Contributor III

Hello NXP!

I am using a custom board based on imx8 on Android 12.

I have 4 camera sensors ISX019 connected with serializer max96701 to deserializer max9286. All are probed correctly but I would like to capture the camera image from user space using gstreamer instead of using the evs_app app to make sure the camera driver is working properly

By default gstreamer is not installed on Android Automotive so I built it externally using cerebro. I added gst-launch-1.0 as a package to the android system but it seems that my installation is not complete at it does not find the plugin "v4l2src" when I run gst-launch-1.0 v4l2src ...

Here is what I have done so far:

- Created a Android.bp file providing the gstreamer prebuilt binaries and libraries built in cerebro
- Adding in my device configuration file "gst-launch-1.0" under PRODUCT_PACKAGES

PRODUCT_PACKAGES += \
gst-launch-1.0 \
gst-inspect-1.0 \

Also what I have noticed is when I run gst-inspect-1.0 it only counts 1 plugin and 2 features

sig0912_0-1715114376170.png

Any suggestions are appreciated. If someone knows if there is a better way to debug the cameras on Android Automotive please let me know

Thanks

0 Kudos
Reply
4 Replies

3,035 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi, @sig0912 

You can not install gstreamer on Android, Android has camera APK for camera debug.

B.R

0 Kudos
Reply

3,024 Views
sig0912
Contributor III

Hi @pengyong_zhang,

Thanks for your suggestion, I'll give it a try.

BR

0 Kudos
Reply

3,051 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi, @sig0912 

What is your chip?

I think the following link can help you:

https://community.nxp.com/t5/i-MX-Processors/imx8mp-android-gstreamer-hw-decode-and-encode-plugin/m-...

B.R

0 Kudos
Reply

3,043 Views
sig0912
Contributor III

Hi @pengyong_zhang 

Thanks for responding. I am using the imx8qm. I checked the link you sent me I think it is the same problem as well.

But the reply does not solve the issue for me. I know that the imx8qm uses the plugin v4l2src as doing the following on Yocto works to capture the camera image

gst-launch-1.0 v4l2src device=/dev/video5 num-buffers=1 ! jpegenc ! filesink location=a.jpg

But this does not work on my Android Automotive yet as I can't find a way to install in the system the plugins needed by gstreamer.

BR

0 Kudos
Reply