Click here to Skip to main content
15,789,698 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to embed a avi video in html, but the avi file's ratio is fit the embed boxes.
How can I set the vedio s ratio?
Updated 6-Sep-11 0:25am
Sergey Alexandrovich Kryukov 6-Sep-11 23:23pm    
Why one Earth? Source video aspect ratio is incorrect? You deal with the monitor with non-square pixel (I remember such things in really old monsters of monitors)? Why? Why?

1 solution

Are you serious? Do you mean you came across with the video with incorrect aspect ratio (compresses or stretched in one dimension, so proportions are mangled) and want to fix it on-the-fly in ASP.NET? Why?

Just in case: you're not talking about the video screen size which is quite usually a subject to change by the user on the client size. You're talking about aspect ratio, proportion between vertical and horizontal sized of the frame. This thing is supposed to be fixed when a movie is mastered or re-mastered. And it's supposed to be correct in the video source before it is delivered to the Web user.

Better fix the problem by re-sampling the video off-line. I usually use VirtualDub, see[^],[^] a free application under GNU General Public License.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900