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?

  • If you're open to suggestions, I'd recommend just using the delightful mpv!
    – Thor
    Oct 14, 2015 at 5:58

1 Answer 1


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:





and for fullscreen Code:


  • Either I did not understand it or it does not seem to work. xwininfo show my window size to be 958x538. If I use 958 instead of 600 it has the same effect as only using "zoom". And it obviously does not adapt to the window size.
    – Alex
    Oct 11, 2015 at 22:49
  • @Alex did you read the Ubuntu forum thread I linked? The details are in there.
    – xCare
    Oct 12, 2015 at 3:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.