[MPlayer-users] Prevent mplayer zooming when video smaller than window

Richard Markiewicz richard at ayudasystems.com
Mon Jun 18 16:09:41 CEST 2012


Lobster <lobo <at> lobs.sytes.net> writes:

> 
> On 16/06/2012 7:49 a.m., Richard Markiewicz wrote:
> > Mplayer --version
> > MPlayer Sherpya-SVN-r33883-4.2.5 (C) 2000-2011 MPlayer Team
> >
> > I'm trying to figure out how to draw my video at an arbitrary size, within a 
full screen window. In some cases
> I might want the video to be smaller than the window (in that case, centered 
with black border(s)), in
> another case I might want my video to be larger than the window (in this case, 
not all of the video would be
> visible - only the center portion that fits within the window dimensions).
> >
> > For now, I'm testing the a 1920x1080 video. My monitor is 1920x1080. I'm 
trying the following command line:
> >
> > mplayer.exe -vo direct3d "path\to\my\video" -vf dsize=300:300
> >
> > This draws the video at 300x300, in a window of the same size. Now I try to 
increase the size of my window:
> >
> > mplayer.exe -vo direct3d "path\to\my\video" -vf dsize=300:300 -geometry 
1920x1080+0+0
> >
> > This draws a window that's 1080 tall, but it also zooms the video to the 
same size. Rather than keeping the
> video at 300x300.
> >
> > Can anyone demonstrate to me, how to achieve what I want? For example, draw 
my window full screen
> (1920x1080) with the video at an arbitrary size, centered, within the window?
> >
> > Thanks in advance!
> 
> You may wish to look up the expand video filter and use that after dsize.
> 

Thanks for the reply!

I have tried using the expand filter, e.g.

mplayer.exe -vo direct3d "path\to\my\video" -vf dsize=300:300,expand:300x300 -
geometry 1920x1080+0+0

But the result is the same. The video still zooms to fill the windows (while 
maintaining aspect ratio), instead of displaying at my custom size. 

I also tried using the -nozoom flag, and playing with the -scale filter. But no 
joy. Do you have any other ideas? Thanks!



More information about the MPlayer-users mailing list