Rotating video when using compositor (and not losing off-edge-pixels)
Nicolas Dufresne
nicolas at ndufresne.ca
Sun Dec 17 12:59:17 UTC 2017
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
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171217/704a748c/attachment.html>
More information about the gstreamer-devel
mailing list