Re: encapsulating cairooverlay in custom plugin
Nicolas Dufresne via gstreamer-devel <[email protected]> Sun, 22 Sep 2024 07:57:08 -0400
| Newsgroups | gmane.comp.video.gstreamer.devel |
|---|---|
| Message-ID | <CAKQmDh90xvfkiGbYz5=dVqfvORmA0+-Z95sM9LNUbYtAUe8-Vw@mail.gmail.com> |
--00000000000066b1680622b3f9a9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Le sam. 21 sept. 2024, 05 h 15, tom via gstreamer-devel < [email protected]> a =C3=A9crit : > I see the example of the cairooverlay at > > > https://github.com/GStreamer/gst-plugins-good/blob/master/tests/examples/= cairo/cairo_overlay.c > > and I would like to encapsulate this example in a plugin, which type woul= d > be the best ? > > so i could do : > gst-launch-1.0 videotestsrc pattern=3D13 ! mycairoencapsulation ! > autovideosink > > I tried to do it in a GST_BIN but the pad's don't get connected. > i tried to do it in a GST_TYPE_VIDEO_FILTER but the output is completely > messed up. > > Is there an example that already has this encapsulated with a simple draw > function ? > or if there isn't which direction should i go in ? > This has already been done. Documentation and examples at: https://gstreamer.freedesktop.org/documentation/cairo/index.html?gi-languag= e=3Dc Nicolas p.s. feel free to join us on discourse.gstreamer.org, most of what once happened on the mailing list has moved there. --00000000000066b1680622b3f9a9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div>Hi,<br><br><div class=3D"gmail_quote"><div dir=3D"lt= r" class=3D"gmail_attr">Le sam. 21 sept. 2024, 05 h 15, tom via gstreamer-d= evel <<a href=3D"mailto:[email protected]">gstreamer= [email protected]</a>> a =C3=A9crit=C2=A0:<br></div><blockquo= te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so= lid;padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr" class=3D"gmail_sign= ature" data-smartmail=3D"gmail_signature">I see the example of the cairoove= rlay at<br><br><a href=3D"https://github.com/GStreamer/gst-plugins-good/blo= b/master/tests/examples/cairo/cairo_overlay.c" target=3D"_blank" rel=3D"nor= eferrer">https://github.com/GStreamer/gst-plugins-good/blob/master/tests/ex= amples/cairo/cairo_overlay.c</a><br><br>and I would like to encapsulate thi= s example in a plugin, which type would be the best ?<br><br>so i could do = :<br>gst-launch-1.0 videotestsrc pattern=3D13 ! mycairoencapsulation ! auto= videosink<br><br>I tried to do it in a GST_BIN but the pad's don't = get connected.<br>i tried to do it in a GST_TYPE_VIDEO_FILTER but the outpu= t is completely messed up.<br><br>Is there an example that already has this= encapsulated with a simple draw function ?<br>or if there isn't which = direction should i go in ?<br></div></div></blockquote></div></div><div dir= =3D"auto"><br></div><div dir=3D"auto">This has already been done. Documenta= tion and examples at:</div><div dir=3D"auto"><br></div><div dir=3D"auto"><a= href=3D"https://gstreamer.freedesktop.org/documentation/cairo/index.html?g= i-language=3Dc">https://gstreamer.freedesktop.org/documentation/cairo/index= .html?gi-language=3Dc</a><br></div><div dir=3D"auto"><br></div><div dir=3D"= auto"><br></div><div dir=3D"auto">Nicolas</div><div dir=3D"auto"><br></div>= <div dir=3D"auto"><br></div><div dir=3D"auto">p.s. feel free to join us on = <a href=3D"http://discourse.gstreamer.org">discourse.gstreamer.org</a>, mos= t of what once happened on the mailing list has moved there.</div></div> --00000000000066b1680622b3f9a9--