View Single Post
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#7
Originally Posted by barbieri View Post
Unfortunately this happens in window mode, yes, but we didn't expect that for fullscreen.

The problem with windowed mode is that we have a 15:9 window, and Mplayer automatically stretch to fit this size. We need to figure out how to have mplayer to keep aspect ratio even if output window is different (both KMplayer and other said this is impossible) or detect video as 4:3 and create the window in the correct aspect.

sorry about that :-(
I spent some time on researching this issue for MediaBox, and eventually got it working quite reliable (sometimes a race condition messes this up, but very seldom).

When loading a video, mplayer will tell you about the width and height of the video before playing. Now compute the aspect ratio and send
Code:
  switch_ratio <ratio>
to mplayer. Also be quick to resize your display window to match the aspect ratio, or the aspect ratio will be messed up for the rest of the video.