Rotating video when using compositor (and not losing off-edge-pixels)
Antonio Ospite
ao2 at ao2.it
Mon Dec 18 22:01:59 UTC 2017
On Mon, 18 Dec 2017 13:29:06 -0600
Sean DuBois <sean at siobud.com> wrote:
[...]
> That is a really clever hack for off-edge-pixels, thanks Antonio!
>
You mean using a bigger frame? Or using "perspective"?
> That will work perfectly for me short term, but it would be nice to have
> a solution out of the box (and will try my best to get it in-tree)
The "perspective" element is in-tree already, here is an example of how
to use it for rotations around the center:
https://git.ao2.it/experiments/gstreamer.git/blob/HEAD:/python/gst-test-perspective.py#l31
I used cv2.getRotationMatrix2D for convenience but creating the matrix
is not that hard.
However I'd be interested in a more intuitive solution. :)
Please, keep me posted.
Ciao,
Antonio
--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it
A: Because it messes up the order in which people normally read text.
See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
More information about the gstreamer-devel
mailing list