W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2008

[whatwg] video tag: pixel aspect ratio

From: Pierre-Olivier Latour <pol@apple.com>
Date: Mon, 1 Dec 2008 12:14:54 -0800
Message-ID: <CB464D8D-D081-4A3E-BE7E-8E620B1AD83A@apple.com>
>> <img src="circle.jpg" width="400" height="400"> <!-- circle -->
>> <img src="circle.jpg" width="400" height="300"> <!-- oval -->
>> I think it would be much more consistent if these elements behaved in
>> the same way.
>
> What is the use case for wanting a video to be stretched?


I can only think of the case when you need to post-fix a video which  
wasn't encoded with the proper pixel aspect ratio. And we already  
covered the likelihood of encountering this case extensively. So I  
guess what's left is purely a convention decision:
- should <video> behaves like <img> by default and have a special  
attribute to scale proportionally,
- or should <video> scale proportionally by default, and maybe have  
some way of defining a stretching behavior?

Eric & I would recommend the later because based on past experience,  
users often specify the wrong width & height for the element, and if  
we stretch by default, then we would often fall off the fast path of  
the media engine (scaling anamorphically can be very expensive). At  
the end of the day, being consistent with <img> wouldn't be worth the  
potential other issues.

Regarding the stretch attribute, we should have this functionally  
available to users but preferably at the CSS level.

________________________________
Pierre-Olivier Latour - pol at apple.com
Rich Media Team - Apple, Inc.
Received on Monday, 1 December 2008 12:14:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:46 UTC