<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>I want to scale
video to a fixed height, while keeping the image
proportions.</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>I do not see this
capability in videoscale. If I set only one property, it is the only one
scaled,</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>and the property
ranges do not have the "overloaded" values of the scaling in
mplayer.</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>I can either do the
"overload", or something I think is cleaner, which is add another
property,</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>(default to "off",
to preserve the current behavior), called somthing like "aspect"
(suggestions</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>welcome). This
property would enforce proportional scaling, within the limitations of
the</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>scaling
</FONT></SPAN><SPAN class=338375302-12112008><FONT face=Arial
size=2>algorithms.</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>There is the
question of priority (horizontal or vertical) when aspect is preserved, but I
think</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>that could be
handled by using a "best-fit". Neither result should exceed the "to"
size,</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>of course, and
whichever dimension loses more, proportionally, would be given
priority. For</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>example, if width
would lose 10% if proportionally scaled to height, while height would
lose</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>8% if scaled
proportionally to width, the the image would be scaled to
width.</FONT></SPAN><SPAN class=338375302-12112008><FONT face=Arial
size=2> Some of us</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>might need more
control than that, so "aspect" could be multi-valued, such as "off",
</FONT></SPAN><SPAN class=338375302-12112008><FONT face=Arial
size=2>"on"</FONT></SPAN></DIV>
<DIV><SPAN class=338375302-12112008><FONT face=Arial size=2>(best-fit),
</FONT></SPAN><SPAN class=338375302-12112008><FONT face=Arial size=2>"x" (or
"width"), and "y" (or "height").</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>