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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Sep 10 22:50:45 CEST 2012


On 10 Sep 2012, at 14:29, Nghia Ho <nghiaho12 at yahoo.com> wrote:
> _______________________________
> 
>> From: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
>> To: Nghia Ho <nghiaho12 at yahoo.com>; "MPlayer usage questions, feature requests, bug reports" <mplayer-users at mplayerhq.hu> 
>> Sent: Monday, 10 September 2012 6:56 PM
>> Subject: Re: [MPlayer-users] Proper solution to my virtual X resolution + fullscreen + OpenGL output hack?
>> 
>> 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

> This *almost* works. Because it's not running a true fullscreen (?), my windows manager (cinammon) taskbar still sits on top of the video window.

It works fine with whatever xfce uses, and I believe it will also work with at least the Gnome default one.
You can try using -ontop or otherwise figure out how to make it draw the taskbar below some window without forcing it to go fullscreen over the whole screen.
Either way I think this is between you and your window manager and has little to do with MPlayer, I don't think we want to add yet another workaround for such a special case, window managers have enough bugs in the normal cases already.


More information about the MPlayer-users mailing list