Calculating the correct width and height for embedded videos

In embedded videos (or Flash apps in general) you can specify the width and height in the "WIDTH" and "HEIGHT" parameters of the <OBJECT> tag. But do not forget the space occupied by the controls (button bar, etc.)!
Eg. in case of a Google video the player consists of a video pane and a control bar. The latter takes a fixed 27 pixels in height. So if your video is 160 x 120 and you want to embed it by scaling to double size (without distortion of course), then you have to specify a width of 160*2=320 pixels and a height of 120*2+27=367 pixels.