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

Lobster lobo at lobs.sytes.net
Fri Jun 15 23:03:44 CEST 2012


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.




More information about the MPlayer-users mailing list