diff mbox series

[master/kirkstone,3/3] meta-arago-distro: Package libcamera in tisdk

Message ID 20230705130928.1201894-3-j-luthra@ti.com
State Superseded
Delegated to: Ryan Eatmon
Headers show
Series [master/kirkstone,1/3] libcamera: Add recipe for v0.0.5 | expand

Commit Message

Jai Luthra July 5, 2023, 1:09 p.m. UTC
Libcamera is useful for testing simple camera pipelines, without
requiring manual configuration of media graph for all v4l2-subdevs.

Enable it for TISDK images, along with the optional libcamerasrc
gstreamer plugin package.

Signed-off-by: Jai Luthra <j-luthra@ti.com>
---
 meta-arago-distro/conf/distro/arago.conf                       | 3 +++
 .../packagegroups/packagegroup-arago-tisdk-multimedia.bb       | 2 ++
 2 files changed, 5 insertions(+)

Comments

Denys Dmytriyenko July 5, 2023, 11:16 p.m. UTC | #1
On Wed, Jul 05, 2023 at 06:39:28PM +0530, Jai Luthra via lists.yoctoproject.org wrote:
> Libcamera is useful for testing simple camera pipelines, without
> requiring manual configuration of media graph for all v4l2-subdevs.
> 
> Enable it for TISDK images, along with the optional libcamerasrc

typo - libcamersrc?


> gstreamer plugin package.
> 
> Signed-off-by: Jai Luthra <j-luthra@ti.com>
> ---
>  meta-arago-distro/conf/distro/arago.conf                       | 3 +++
>  .../packagegroups/packagegroup-arago-tisdk-multimedia.bb       | 2 ++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
> index e0087ab7..bb074478 100644
> --- a/meta-arago-distro/conf/distro/arago.conf
> +++ b/meta-arago-distro/conf/distro/arago.conf
> @@ -128,6 +128,9 @@ PACKAGECONFIG:append:pn-gstreamer1.0 = " tracer-hooks"
>  # Enable kmssink in gstreamer
>  PACKAGECONFIG:append:pn-gstreamer1.0-plugins-bad = " kms"
>  
> +# Enable gstreamer plugin for libcamera
> +PACKAGECONFIG:append:pn-libcamera = " gst"
> +
>  # Disable pulseaudio routing in alsa by default
>  PACKAGECONFIG:remove:pn-alsa-plugins = "pulseaudio"
>  RDEPENDS:pulseaudio-server:remove = "alsa-plugins-pulseaudio-conf"
> diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
> index d06fbb6f..b4148882 100644
> --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
> +++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
> @@ -8,6 +8,8 @@ inherit packagegroup
>  
>  MULTIMEDIA = " \
>      amsdk-av-files \
> +    libcamera \
> +    libcamera-gst \
>  "
>  
>  MULTIMEDIA:omapl138 = ""
> -- 
> 2.41.0
Jai Luthra July 6, 2023, 3:43 a.m. UTC | #2
Hi Denys,

On Jul 05, 2023 at 19:16:34 -0400, Denys Dmytriyenko wrote:
> On Wed, Jul 05, 2023 at 06:39:28PM +0530, Jai Luthra via lists.yoctoproject.org wrote:
> > Libcamera is useful for testing simple camera pipelines, without
> > requiring manual configuration of media graph for all v4l2-subdevs.
> > 
> > Enable it for TISDK images, along with the optional libcamerasrc
> 
> typo - libcamersrc?
> 

The gstreamer element is called "libcamerasrc" 
https://github.com/libcamera-org/libcamera/blob/master/src/gstreamer/gstlibcamerasrc.cpp

> 
> > gstreamer plugin package.
> > 
> > Signed-off-by: Jai Luthra <j-luthra@ti.com>
> > ---
> >  meta-arago-distro/conf/distro/arago.conf                       | 3 +++
> >  .../packagegroups/packagegroup-arago-tisdk-multimedia.bb       | 2 ++
> >  2 files changed, 5 insertions(+)
> > 
> > diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
> > index e0087ab7..bb074478 100644
> > --- a/meta-arago-distro/conf/distro/arago.conf
> > +++ b/meta-arago-distro/conf/distro/arago.conf
> > @@ -128,6 +128,9 @@ PACKAGECONFIG:append:pn-gstreamer1.0 = " tracer-hooks"
> >  # Enable kmssink in gstreamer
> >  PACKAGECONFIG:append:pn-gstreamer1.0-plugins-bad = " kms"
> >  
> > +# Enable gstreamer plugin for libcamera
> > +PACKAGECONFIG:append:pn-libcamera = " gst"
> > +
> >  # Disable pulseaudio routing in alsa by default
> >  PACKAGECONFIG:remove:pn-alsa-plugins = "pulseaudio"
> >  RDEPENDS:pulseaudio-server:remove = "alsa-plugins-pulseaudio-conf"
> > diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
> > index d06fbb6f..b4148882 100644
> > --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
> > +++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
> > @@ -8,6 +8,8 @@ inherit packagegroup
> >  
> >  MULTIMEDIA = " \
> >      amsdk-av-files \
> > +    libcamera \
> > +    libcamera-gst \
> >  "
> >  
> >  MULTIMEDIA:omapl138 = ""
> > -- 
> > 2.41.0
Denys Dmytriyenko July 6, 2023, 3:57 a.m. UTC | #3
On Thu, Jul 06, 2023 at 09:13:43AM +0530, Jai Luthra wrote:
> Hi Denys,
> 
> On Jul 05, 2023 at 19:16:34 -0400, Denys Dmytriyenko wrote:
> > On Wed, Jul 05, 2023 at 06:39:28PM +0530, Jai Luthra via lists.yoctoproject.org wrote:
> > > Libcamera is useful for testing simple camera pipelines, without
> > > requiring manual configuration of media graph for all v4l2-subdevs.
> > > 
> > > Enable it for TISDK images, along with the optional libcamerasrc
> > 
> > typo - libcamersrc?
> > 
> 
> The gstreamer element is called "libcamerasrc" 
> https://github.com/libcamera-org/libcamera/blob/master/src/gstreamer/gstlibcamerasrc.cpp

Thanks. Got confused as the gstreamer plugin package is called libcamera-gst.


> > > gstreamer plugin package.
> > > 
> > > Signed-off-by: Jai Luthra <j-luthra@ti.com>
> > > ---
> > >  meta-arago-distro/conf/distro/arago.conf                       | 3 +++
> > >  .../packagegroups/packagegroup-arago-tisdk-multimedia.bb       | 2 ++
> > >  2 files changed, 5 insertions(+)
> > > 
> > > diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
> > > index e0087ab7..bb074478 100644
> > > --- a/meta-arago-distro/conf/distro/arago.conf
> > > +++ b/meta-arago-distro/conf/distro/arago.conf
> > > @@ -128,6 +128,9 @@ PACKAGECONFIG:append:pn-gstreamer1.0 = " tracer-hooks"
> > >  # Enable kmssink in gstreamer
> > >  PACKAGECONFIG:append:pn-gstreamer1.0-plugins-bad = " kms"
> > >  
> > > +# Enable gstreamer plugin for libcamera
> > > +PACKAGECONFIG:append:pn-libcamera = " gst"
> > > +
> > >  # Disable pulseaudio routing in alsa by default
> > >  PACKAGECONFIG:remove:pn-alsa-plugins = "pulseaudio"
> > >  RDEPENDS:pulseaudio-server:remove = "alsa-plugins-pulseaudio-conf"
> > > diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
> > > index d06fbb6f..b4148882 100644
> > > --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
> > > +++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
> > > @@ -8,6 +8,8 @@ inherit packagegroup
> > >  
> > >  MULTIMEDIA = " \
> > >      amsdk-av-files \
> > > +    libcamera \
> > > +    libcamera-gst \
> > >  "
> > >  
> > >  MULTIMEDIA:omapl138 = ""
> > > -- 
> > > 2.41.0
diff mbox series

Patch

diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
index e0087ab7..bb074478 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -128,6 +128,9 @@  PACKAGECONFIG:append:pn-gstreamer1.0 = " tracer-hooks"
 # Enable kmssink in gstreamer
 PACKAGECONFIG:append:pn-gstreamer1.0-plugins-bad = " kms"
 
+# Enable gstreamer plugin for libcamera
+PACKAGECONFIG:append:pn-libcamera = " gst"
+
 # Disable pulseaudio routing in alsa by default
 PACKAGECONFIG:remove:pn-alsa-plugins = "pulseaudio"
 RDEPENDS:pulseaudio-server:remove = "alsa-plugins-pulseaudio-conf"
diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
index d06fbb6f..b4148882 100644
--- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia.bb
@@ -8,6 +8,8 @@  inherit packagegroup
 
 MULTIMEDIA = " \
     amsdk-av-files \
+    libcamera \
+    libcamera-gst \
 "
 
 MULTIMEDIA:omapl138 = ""