<div dir="auto">I use weston 4 and the same driver with vaapisink (x11) doesn't show this behavior. <div dir="auto"><br></div><div dir="auto">The two pipelines are in the same process? The other difference I pass the wl_display.</div><div dir="auto"><br></div><div dir="auto">Thanks.</div><div dir="auto">Matteo<br><div dir="auto"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 2, 2018 11:59, "Nicolas Dufresne" <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">Le jeudi 02 août 2018 à 11:24 -0500, Matteo Valdina a écrit :<br>
> Sure,<br>
> I have an application that runs two GStreamer pipeline that looks<br>
> something like that:<br>
> Pipeline 1:<br>
> v4l2src io-mode=4 device=/dev/video0 ! waylandsink<br>
> Pipeline 2:<br>
> v4l2src io-mode=4 device=/dev/video1 ! waylandsink<br>
> <br>
> When both use DMAbuf (io-mode=4) the two waylandsink show both<br>
> cameras. <br>
> To better describing:<br>
> You see when both are running on the two waylandsink the same content<br>
> from one of the camera and flicker between these two cameras.<br>
> <br>
> I work around that forcing one of the camera in io-mode=2 (mmap). <br>
<br></div>
Looks like a bug in your compositor or camera driver to me. I have just<br>
tested here on weston, no issue.<div class="elided-text"><br>
<br>
> <br>
> Best<br>
> Matteo<br>
> <br>
> On Thu, Aug 2, 2018 at 10:44 AM Nicolas Dufresne <<br>
> <a href="mailto:nicolas@ndufresne.ca" target="_blank" rel="noreferrer">nicolas@ndufresne.ca</a>> wrote:<br>
> > Le jeudi 02 août 2018 à 07:48 -0500, Matteo Valdina a écrit :<br>
> > > Hi,<br>
> > > I'm using two separate pipeline in the same process where the<br>
> > input<br>
> > > is a v4l2src and DMAbuf.<br>
> > > The input feed is different but when I render with the<br>
> > waylandsink<br>
> > > the two pipelines content is mixed. Both display the same content<br>
> > and<br>
> > > flicker between the two contents.<br>
> > <br>
> > This isn't very clear what you are doing. You should clarify.<br>
> > <br>
> > > <br>
> > > It looks like using DMA pool is shared across these two<br>
> > pipelines.<br>
> > > <br>
> > > I pass the wl_display and wl_surface to the waylandsink and I<br>
> > also<br>
> > > tried to pass two different wl_display but it doesn't make any<br>
> > > difference.<br>
> > > <br>
> > > Changing io-mode=4 (dmabuf) to something else (2 mmap) solved the<br>
> > > issue.<br>
> > > <br>
> > > Any suggestions?<br>
> > <br>
> > Do you multi-plex the camera to multiple waylandsink element ?<br>
> > <br>
> > > <br>
> > > Best<br>
> > > Matteo Valdina<br>
> > > -- <br>
> > > “There are two ways of constructing a software design: One way is<br>
> > to<br>
> > > make it so simple that there are obviously no deficiencies, and<br>
> > the<br>
> > > other way is to make it so complicated that there are no obvious<br>
> > > deficiencies. The first method is far more difficult.”<br>
> > > - Tony Hoare<br>
> > > _______________________________________________<br>
> > > gstreamer-devel mailing list<br>
> > > <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
> > > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> > _______________________________________________<br>
> > gstreamer-devel mailing list<br>
> > <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
> > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> <br>
> <br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></blockquote></div><br></div>