[MPlayer-users] Proper solution to my virtual X resolution + fullscreen + OpenGL output hack?

Nghia Ho nghiaho12 at yahoo.com
Sat Sep 8 11:06:55 CEST 2012


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?

Nghia


More information about the MPlayer-users mailing list