When embeding an HD video from youtube using the generated iframe, I notice that two black sidebars are added to the player when I use the preset.
<iframe width="853" height="480" src="http://www.youtube...
For excample in; http://www.villagedurable.org/tv if I insert the iframe with dimensions 640*360 or use the HD size 1280×720 the two sidebars desappear allowing beautiful layout.
It’s true that both 640*360 and 1280×720 use an aspect ration of 1.777777777777778, multiplying 480 by 1.777777777777778 gives 853.3333333333333 which, i think makes youtube add this nasty black bars 🙁
After much fuss I finally found the solution.
Apparently because 853×480 is not exactly the same ratio as 16/9, the player doesn’t have controls that automatically fade away. So the video controls will take up 30 pixels of your wide, leaving it only 450 pixels height. To keep the aspect ratio, video is shrunk and hence the black borders (or black sidebars, whatever you call them).
The solution is to use 853×510 as dimensions in your iframe:
IMHO, this is a bug on YouTube’s end, since they offer 853×480 as a preset resolution in the ’embed code’ selection.
From http://www.h3xed.com/web-and-internet/embedding-youtube-videos-in-hd: