Rotating video when using compositor (and not losing off-edge-pixels)

Sean DuBois sean at siobud.com
Mon Dec 18 03:32:51 UTC 2017


> On Sun, Dec 17, 2017 at 07:59:17AM -0500, Nicolas Dufresne wrote:
> > Le 17 déc. 2017 1:59 AM, "Sean DuBois" <sean at siobud.com> a écrit :
> >
> > I am trying to rotate a video by degrees that are not divisible by 90.
> > Like this [0] pipeline . However I am not able to find any solutions
> > that don't involve losing pixels and/or support alpha.
> >
> > So far the best thing I have found is videoflip, and it works well for
> > 90/180/270
> >
> > Does anyone know a solution, and if not would an element be welcome for
> > this? Or maybe I can add a patch to rotate (but for my use case I would
> > want the sink to always have alpha) and the height/width would be
> > re-calculated every time the angle changed.
> >
> >
> Improving rotate seems a good way. The only other solution I know is
> gltransformation, note that it depends on graphene, which is not always
> included in distribution yet (gtk4 will depend on it).
> >
> >
> > thanks
> >
> > ---
> > [0] gst-launch-1.0 videotestsrc ! rotate angle=5 ! compositor
> > sink_0::xpos=200 sink_0::ypos=200 ! video/x-raw,width=1280,height=720 !
> > autovideosink

Awesome, thanks Nicolas!

After I get AV1 in a better state, I want to tackle this. This is
something I would really like in an application I currently have.

I will send Thiago Santos an email, he is the author and maybe he has
some ideas/plans already.

gltransformation isn't a great fit for me (I am pretty sure), I am doing things on hosts
without a real GPU (Running in a Hypervisor)


More information about the gstreamer-devel mailing list