How to make rounded cornered video?
Seungha Yang
pudding8757 at gmail.com
Mon May 28 02:08:56 UTC 2018
Le samedi 26 mai 2018 à 10:20 -0400, Nicolas Dufresne a écrit :
> Le samedi 26 mai 2018 à 19:16 +0900, Seungha Yang a écrit :
> > Hello,
> >
> > I'm finding a way for making rounded video frame using gstreamer.
> > For example, when composing two video frames with compositor
> > element,
> > I hope one inner stream can have rounded edge
> > (like https://helpx.adobe.com/indesign/how-to/round-corners-frame.h
> > tm
> > l is describing)
> >
> > +-----------+ +---------------+
> > > | +------+ | /-----\ |
> > > V0 | + | V1 | = | | V1 | |
> > > | +------+ | \-----/ V0 |
> >
> > +-----------+ +--------------+
> > Is there any video filter for that in gstreamer (without opengl) ?
> > I think videomixer, videobox, and compositor has no ability for
> > that.
>
> The element that comes to my mind is shapewipe, though I'm worried, I
> the example pipeline does not seem to work for me anymore. I'll have
> a
> look.
>
> https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-
> plugins-good/html/gst-plugins-good-plugins-shapewipe.html
It's just a zorder issue. If I flip the zorder in the example it seems
to work:
gst-launch-1.0 -v videotestsrc ! video/x-raw,format=AYUV,width=640,height=480
! shapewipe position=0.5 name=shape ! compositor sink_0::zorder=3
sink_1::zorder=2 name=mixer ! videoconvert ! autovideosink filesrc
location=mask.png ! typefind ! decodebin ! videoconvert ! videoscale !
queue ! shape.mask_sink videotestsrc pattern=snow !
video/x-raw,format=AYUV,width=640,height=480 ! queue ! mixer.
>
>
>
> >
> > Seungha Yang
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Thanks :) I'll try it, but the link (http://cinelerra.org/transitions.php)
which was documented in
https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/shapewipe/gstshapewipe.c#n29
seems to be broken.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180528/ab8d3102/attachment-0001.html>
More information about the gstreamer-devel
mailing list