[whatwg] video tag: pixel aspect ratio

Sander van Zoest sander at vanzoest.com
Tue Oct 14 09:39:05 PDT 2008


Hi,

I just recently started looking at HTML5 and noticed the video tag. Neat
addition.
I also noticed that it as an attribute named 'pixelratio', however, as you
know this
is never an integer, but rather is the result of a fraction (i.e. ratio). As
for proper
playback of video frames, it is important to understand exact float and
therefore
I would suggest either expressing it as a ratio of two 32-bit integers
separated by a colon (or slash) or use two
different attributes. This avoids unintentional rounding.

Something roughly along the lines of:

<video pixelratio="10:11"> <!-- 525 composite NTSC -->
<video pixelratio="59:54"> <!-- 625 composite PAL -->
<video pixelratio="1018:1062"> <!-- 1920x1035 HDTV SMPTE RP 187-1995 -->

<video parhSpacing="10" parvSpacing=11">

Container formats tend to store this information in a ratio like this and
not in a float.

Best,

-- 
Sander van Zoest
sander at vanzoest.com
San Diego, CA, USA
http://Sander.vanZoest.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20081014/32f2a734/attachment-0001.htm>


More information about the whatwg mailing list