Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

embedding youtube videos - aspect ratio

Tags:

youtube

embed

I'm looking to embed some youtube videos in my web page and from looking at the videos on youtube they all seem to be displayed with an aspect ration of 16:9 or 640px:340px.

Trouble is I only have 600px max space to put them in, would I just work out the appropriate height i.e. 640/16*9 = 333px and display them in that and would that take care of everything ,or is there any other size allocated for the progress bar at bottom.

E.g. if you look at this video you can see the progress bar throughout.

http://www.youtube.com/user/southerncomfort?v=ygeWsoYYMuQ

Thanks,

like image 630
thegunner Avatar asked Dec 14 '12 14:12

thegunner


1 Answers

You can use any youtube embed code generator to achieve your goal with ease.

  1. Go to Advanced Youtube Embed Code Generator.
  2. Enter the video ID and input either height or width in the respective column and hit generate button(the empty field will be automatically calculated with 16:9 ratio)
  3. Copy the code and use it.

enter image description here

like image 162
Shan Eapen Koshy Avatar answered Oct 21 '22 16:10

Shan Eapen Koshy