In this article I’m going to show you the best ways to embed YouTube Videos. This is a more advanced approach, and shows you how to go about embedding videos the best way.
After you complete this article, you will know how to embed High Definition Videos, High Quality Videos, Autoplay Videos, Remove Search, and Remove Related Videos. You will also learn how to see if a video has a HQ or HD option.
Image by Björn J
About YouTube High Quality Videos
If you look at the videos here on Enlightened WebMastery, you will notice that each video is high quality, has no search box, and shows no related videos. The reason for this is so that the videos are of very high quality, and you can see what’s going on. For whatever reason, youtube refuses to show a HQ link for my videos, so if you visit my youtube page (by clicking one of the links) you will not be presented with the option to view “High Quality” on YouTube.
Even though I upload my videos in High Definition, when you visit the youtube site, all you see is the very low quality feed. Enter &fmt=18, when you visit youtube, anytime you see a video (and it does not allow High Quality) all you have to do is add &fmt=18 to the url to view the h.264 high quality video option. As soon as you upload a video, within maybe 10–20 minutes your HQ video will be available (&fmt=18) (maybe 10–12 minutes for the normal youtube video to be ready).
To ensure you get a HQ video, you need to make sure your video is at least 480x320 (it most likely is) in resolution. Any modern camera will shoot at that quality or higher. If your camera shoots at or below 320x240, you should really consider buying a new camera…
How To Embed High Quality Videos From YouTube
To embed the high quality version of your videos from youtube to your website (like I do here) instead of the low quality (and fuzzy) video you normally embed on your website, what you need to do is: Visit -> http://www.vtubetools.com/ Type in your video code (after the v=) I.E. http://www.youtube.com/watch?v=WhYoL8FLVU0 Then select what you want to happen:
I recommend those settings for most users (unless you want people to see more “related videos”. I really do not enjoy going to a website that has autoplay turned on, so please, don’t turn it on. Most people will automatically close their window. Looping is optional. I see no point. Maybe if you have a music video.
You really want to select High Quality here, currently the site does not support HD but we will be covering that below. When you are done, click preview, make sure everything is how you like, when done, click get code, and then copy that code into your blog (using the HTML setting), when you are finished, it will look similar to this:
About YouTube High Definition Videos
Recently YouTube starting showing HD videos, as of right now, there is no real “easy” tool to embed HD videos, but I’m going to teach you how you can go about that, without having to get your hands real dirty. If you want to upload your own HD videos, you need a resolution of 1280x720, 3000–5000 bitrate, under 1gb, and under 10:59 in length.
I can’t say what the “real” standards are, only what seems to work. YouTube has not published the official stats. Enter &fmt=22, when you visit youtube, anytime you see a video (and it does not show High Definition) all you have to do is add &fmt=22 to the url to view the HD version. (note there has to actually be an HD version, unlike the HQ, it is much rarer right now to find a HD video).
How To Embed High Definition Videos From YouTube
To embed the HD version of your videos from youtube to your website, you’re going to need to add 2 pieces of code. Let me show you an example by picking an HD video from YouTube to show as an example. In this example I’m using a Video by EA. The URL is http://www.youtube.com/watch?v=fzvqzdWMjz0&feature=hd.
Visit http://www.vtubetools.com/ and type in the bolded portion into the menu (like we did before) then get the code and paste it into your text editor (or the html section on your blog).
For the example, I will work along with you here:
<object width= “540” height=“340”><param name=“movie” value=“http://www.youtube.com/v/fzvqzdWMjz0&ap=%2526fmt%3D18&autoplay=1&rel=0&fs=1&color1=0x3a3a3a&color2=0x999999&border=0&loop=0″></param><param name=“allowFullScreen” value=“true”></param><embed src=“http://www.youtube.com/v/fzvqzdWMjz0&ap=%2526fmt%3D18&autoplay=1&rel=0&fs=1&color1=0x3a3a3a&color2=0x999999&border=0&loop=0″ type=“application/x-shockwave-flash” allowfullscreen=“true” width=“540” height=“340”></embed></object>Now we need to change the code, to give us the HD option. To do this we replace &ap=%2526fmt%3D18 with &ap=%2526fmt%3D22 then use this new code on your site.
<object width= “540” height=“340”><param name=“movie” value=“http://www.youtube.com/v/fzvqzdWMjz0&ap=%2526fmt%3D22&autoplay=1&rel=0&fs=1&color1=0x3a3a3a&color2=0x999999&border=0&loop=0″></param><param name=“allowFullScreen” value=“true”></param><embed src=“http://www.youtube.com/v/fzvqzdWMjz0&ap=%2526fmt%3D22&autoplay=1&rel=0&fs=1&color1=0x3a3a3a&color2=0x999999&border=0&loop=0″ type=“application/x-shockwave-flash” allowfullscreen=“true” width=“540” height=“340”></embed></object>
The video will now look like the following:
Conclusion
I hope you have enjoyed this article, and seen how easy it is to embed HD and High quality video on your site. Most people avoid youtube like a plague because of the low quality videos, and the related video functions. I have now shown you how to avoid that, the only real “beef” with youtube now is the logo… =) Feel free to pass the link on to your friends, and share it with as many people as you can that host videos on their sites, this way we can all enjoy watching HQ or HD videos from our browsers.






{ 3 comments… read them below or add one }
Jason,
This is a great article! I’m about to add video to my site, and debated using a service other than YouTube because I don’t want the related videos.
Your post is timely! I can now have the best of both worlds. The explosure YouTube provides and only my HD videos on my site.
Thank you!
Kate
Kate Saunders’s last blog post..Basic Questions to Ask Before Starting a Niche Internet Business
Twitter: jasonannas
March 24, 2009 at 7:27 am
Glad you liked it Kate. I too hated the related videos function, the part I hated most though was the “Search Box” which appears when that feature is turned on.
As well as the long list of videos showing up at the bottom of the video while the video is playing.
Now (as of March) you can easily upload HD videos to youtube.
To make sure your video shows up as HD make sure it is mp4 and 1280x720.
Doing this will give you HD video, my new videos will now be shown here in HD. You can view the example here or my article located here which shows the video in HD.
http://enlightenedwebmastery.com/add-text-speech-blog
Embedding HD video is still the same as I showcase in this tutorial.
Thanks… that explains a few things. Anyone know how to remove the HD option from the video player though? No matter what I try, that option is still there. I’m basically trying to get to the most uber stripped down player possible.