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

Richard Markiewicz richard at ayudasystems.com
Fri Jun 15 21:49:03 CEST 2012


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!


More information about the MPlayer-users mailing list