v4l2src on Android

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

v4l2src on Android

Chris Landa
I already tried to get my question answered via IRC, but that did not work out, so I am trying here.

I am porting an existing pipeline from Desktop to Android. I am using the v4l2src and am trying to build via Cerbero but the resulting binaries still do not contain the v4l2src.

What do I need to do in order to enable the v4l2src for Android.

Kind regards,
Chris

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: v4l2src on Android

Nicolas Dufresne-5
Le lundi 10 août 2020 à 21:39 +0200, Chris Landa a écrit :
> I already tried to get my question answered via IRC, but that did not work out, so I am trying here.
>
> I am porting an existing pipeline from Desktop to Android. I am using the v4l2src and am trying to build via Cerbero but the resulting binaries still do not contain the v4l2src.
>
> What do I need to do in order to enable the v4l2src for Android.

As an app, you are not going to be allowed to access /dev/videoX
directly. Instead, you should use Android specific camera source
(ahcsrc).

>
> Kind regards,
> Chris
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Re: v4l2src on Android

Chris Landa
Am Di., 11. Aug. 2020 um 05:41 Uhr schrieb Nicolas Dufresne <[hidden email]>:
Le lundi 10 août 2020 à 21:39 +0200, Chris Landa a écrit :
> I already tried to get my question answered via IRC, but that did not work out, so I am trying here.
>
> I am porting an existing pipeline from Desktop to Android. I am using the v4l2src and am trying to build via Cerbero but the resulting binaries still do not contain the v4l2src.
>
> What do I need to do in order to enable the v4l2src for Android.

As an app, you are not going to be allowed to access /dev/videoX
directly. Instead, you should use Android specific camera source
(ahcsrc).
 
Thank you for your answer

ahcsrc uses the Camera API (old, deprecated version), which does not support an external camera attached via USB.
Technically I can set proper permissions on the device node since it is a rooted android device, but the better way seems to be to get the buffers off the v4l2 device and push them in through appsrc.

I just thought if there is a quick and dirty way, I'll prefer that.

Chris

 
>
> Kind regards,
> Chris
> _______________________________________________
> 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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: v4l2src on Android

Nicolas Dufresne-5


Le mar. 11 août 2020 05 h 45, Chris Landa <[hidden email]> a écrit :
Am Di., 11. Aug. 2020 um 05:41 Uhr schrieb Nicolas Dufresne <[hidden email]>:
Le lundi 10 août 2020 à 21:39 +0200, Chris Landa a écrit :
> I already tried to get my question answered via IRC, but that did not work out, so I am trying here.
>
> I am porting an existing pipeline from Desktop to Android. I am using the v4l2src and am trying to build via Cerbero but the resulting binaries still do not contain the v4l2src.
>
> What do I need to do in order to enable the v4l2src for Android.

As an app, you are not going to be allowed to access /dev/videoX
directly. Instead, you should use Android specific camera source
(ahcsrc).
 
Thank you for your answer

ahcsrc uses the Camera API (old, deprecated version), which does not support an external camera attached via USB.
Technically I can set proper permissions on the device node since it is a rooted android device, but the better way seems to be to get the buffers off the v4l2 device and push them in through appsrc.

I just thought if there is a quick and dirty way, I'll prefer that.

Getting v4l2src in the case seems appropriate, just edit the meson.build file to not avoid compilation on Android.


Chris

 
>
> Kind regards,
> Chris
> _______________________________________________
> 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
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: v4l2src/v4l2sink on Android

Sherif
Hi All,
I am trying to compile gstreamer for android using Cerbero. but I am not
sure how to enable V4l2src and v4l2sink. it is not clear to me how to edit
meson.build to enable v4l2sink.

Thanks,
Sherif



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel