[Pipewire-devel] Query regarding h264 format on Raspberry Pi when Pipewire is being used with libcamera
Aditya Kulkarni
avkulkarni304 at gmail.com
Mon Oct 9 13:39:10 UTC 2023
Hello Wim,
Thanks for your reply. We checked with the libcamera team on adding h264
support but they confirmed that the addition of h264 support in libcamera
is out of libcamera's scope.
We are trying to find a way to achieve h264 using pipewire for our live
streaming use case.
We can get encoded data from the R-Pi which has hardware encoder but
libcamera has support to extract raw format.
*What we thought is, we can get the raw format by using the libcamera spa
plugin of pipewire and this raw format can be passed to v4l2 spa plugin of
pipewire for encoding. Further, v4l2 spa plugin in pipewire will interact
with v4l2 driver to get h264 format from R-Pi hardware encoder.*
The High level flow diagram of the above approach has been attached to this
email for your reference.
The above approach demands the usage of two spa plugins simultaneously.
*In this scenario,1. Is it possible to enable libcamera spa plugin and v4l2
spa plugin at the same time? 2. Is it possible to achieve inter-spa-plugin
communication, in pipewire?*
Can you please guide us on this.
We would also like to know from you, in case, there is any better approach
to achieve this.
Thanks and Regards,
Aditya
On Thu, Aug 31, 2023 at 7:19 PM Wim Taymans <wim.taymans at gmail.com> wrote:
> On Thu, 31 Aug 2023 at 15:38, Aditya Kulkarni <avkulkarni304 at gmail.com>
> wrote:
> >
> > Hello,
> >
> > We are looking for Camera live streaming using h264 format on Raspberry
> Pi.
> >
> > We are using the Pipewire framework to interact with applications and
> libcamera.
> >
> > But, we are facing pw.link: (39.0 -> 47.0) negotiating -> error (no more
> input formats).
> >
> > As libcamera doesn't have H264 support, can you please guide on how to
> achieve H264 using pipewire, when libcamera is used.
>
> It is not possible, libcamera does not support h264.
>
> Wim
>
> >
> > Hoping for your reply.
> >
> > Thanks & Regards,
> > Aditya
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pipewire-devel/attachments/20231009/5d9d74dc/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: High_level_approach_diagram.png
Type: image/png
Size: 42158 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/pipewire-devel/attachments/20231009/5d9d74dc/attachment-0001.png>
More information about the Pipewire-devel
mailing list