[MPlayer-users] Proper solution to my virtual X resolution + fullscreen + OpenGL output hack?
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Mon Sep 10 10:56:06 CEST 2012
On Sat, Sep 08, 2012 at 02:06:55AM -0700, Nghia Ho wrote:
> Hi all,
>
> I'm running a virtual resolution in X at 1366x1024, which is larger than my laptop's native 1366x768, using the panning option in the Nvidia settings program on Ubuntu.
> When playing a movie at fullscreen it positions the video in the middle of the virtual screen. This means I have to carefully pan the screen with my mouse until it is positioned correctly. It would be more convenient if it used the actual resolution instead of the virtual, so I can easily flick the mouse to the top left corner.
>
>
> I found two threads in 2008-2009 regarding the same issues
>
>
> http://thread.gmane.org/gmane.comp.video.mplayer.user/58723
> http://thread.gmane.org/gmane.comp.video.mplayer.user/59873/focus=59901
>
> but none of the command line options mentioned had any effect for me, maybe it doesn't work with the GL drivers?
>
> Anyway, as a dirty hack I made this 1 liner modification to get what I want in vo_gl.c:
>
>
> static void resize(int x,int y){
> ...
>
> commented out this bit around line 205:
>
>
> // matrix[13] *= scale_y;
>
> This makes the video output display at (0,0) top left corner instead of the centre. This works for me because most videos I watch have the same aspect ratio as my monitor.
>
> I'm hoping someone can point out a correct way of doing this. If not, maybe it should be a new command line option?
You just need to disable most of the intelligence, something like this:
-screenw 800 -screenh 600 -xineramascreen -2 -fstype -fullscreen
More information about the MPlayer-users
mailing list