v4l2src on Android

Chris Landa stylesuxx at gmail.com
Tue Aug 11 08:31:14 UTC 2020


Am Di., 11. Aug. 2020 um 05:41 Uhr schrieb Nicolas Dufresne <
nicolas at ndufresne.ca>:

> 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
> > gstreamer-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200811/ee87c9cd/attachment.htm>


More information about the gstreamer-devel mailing list