[MPlayer-dev-eng] [PATCH] Add support for rotating the video via OpenGL.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu May 9 09:10:30 CEST 2013


The attachment is only half off-topic :-)

On Thu, May 09, 2013 at 08:59:09AM +0200, Reimar Döffinger wrote:
> +.B \-rotate <0-3> (experimental)
> +Rotate display by 90, 180 or 270 degrees.
> +Rotates also the OSD, not just the video image itself.
> +Currently only supported by the gl video output driver.
> +For all other video outputs -vf ass,expand=osd=1,rotate=n can be used, in the future this might even happen automatically.

In case you wonder what happened that I actually send patches first :-)
This adds a general command-line option instead of making it a vo gl
suboption.
My thinking was that this probably could be implemented by some of the
other vos, too, so I thought it make sense like this.
But I don't mind changing it if you think it is better as something
gl specific.
And if you wonder about the why: when running MPlayer on my phone it
ends up displaying a tiny video only, which is kind of bad for actually
seeing if it works or not, particularly as long as I have only about 8
seconds before it makes the phone reboot.
If someone is interested in investigating this (or just in general would
like to play with GL ES without the pain of dealing with the Android
framework), I have written a minimal test-case OpenGL ES program for Android,
using only the NDK and including a compile-and-run script, attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: androidhack.c
Type: text/x-csrc
Size: 2404 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130509/62121fe4/attachment.bin>


More information about the MPlayer-dev-eng mailing list