Mplayer – Scale video to window size

mplayer

When I open a video with mplayer2 it "scales" to my window size. E.g.

enter image description here

The original being 720p. When I open the same file with mplayer it displays the video in its default resolution it seems, only cropped:

enter image description here

I read the manual page and tried the -zoom option, but the results are not what I expected:

enter image description here

I could maybe use the -xy or some scaling option, but I want the video "scale" to adapt to the window size (if I change the window size I want the video to adapt, like with mplayer2). Is this possible with mplayer?

Best Answer

Ah, good old Age of Empires. :)

You can fit the window to scale as you want through the following command, From Ubuntu's Forum:

mplayer -vf scale -zoom -xy 600 my_file.avi

where -xy 600 is the x axis value. Replace the 600 with desired value you want. Also, you can enter the custom value directly into your mplayer's config file as stated:

you could also put in your ~/.mplayer/config file there are various ways to do it Code:

screenw=600

screenh=400

xy=.5

xy=600

and for fullscreen Code:

fs=1

Related Question