About & Contact | Advertise | Privacy
Google Tutorials and News

Embed High Quality YouTube Videos

Written by: Peter Jalbert on Tuesday, December 9th, 2008
Posted to: YouTube
3 comments, add yours!
Tweet

Unknown to many, YouTube has, for a time, been quietly offering high-quality versions of a few of their videos via a “watch in high quality” link right below the player. It definitely is not HD, but the video would be a noticable upgrade from the usual crappy quality video offered by YouTube.

YouTube, by default, offers the normal low-quality version, but there’s a way to enable high-quality by default, embed these high-quality videos on other sites, and to link to these HQ videos, and even save these HQ videos on your computer.

Set high-quality as the default setting
Log in to your YouTube account, go to go to Account / Playback Setup / Video Playback Quality and select the option to “I have a fast connection. Always play higher-quality video when it’s available.”

Linking to the high-quality video
Take the usual YouTube URL, then add “&fmt=18″ or “&fmt=22″ at the end of the URL, like this:

http://www.youtube.com/watch?v=Da_E9P9dWU0&fmt=18

“&fmt=18″ would give you an mp4 encoded video using H.264 with stereo AAC sound at 480×360. “&fmt=22″ would give you the 720p version. Take note though, not all videos will have both the 480×360 and the 720p version. Some videos have one version but not the other, so you might want to try both.

Embedding high quality YouTube videos
Making a quick change to the embed code actually gives you better video quality, as the “&fmt=18″ trick won’t work here. Instead of that code earlier, instead add “&ap=%2526fmt%3D18″ to the end of the URLs in your embed code. Here’s how to do it:

<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/Da_E9P9dWU0&hl=en&fs=1&ap=%2526fmt%3D18“></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/Da_E9P9dWU0&hl=en&fs=1&ap=%2526fmt%3D18” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>

Copy-pasting that code will embed the video in high-quality.

Downloading HQ videos:
This only works when you’re viewing a high-quality video on YouTube. Just go to KeepVid.com and follow the instructions o their site to install the bookmarklet so you’d be able to download the video in mp4 format, which you can view at a later time in your computer, iPod, or iPhone. The downloaded mp4 would most likely be in letterbox format (480×198, or roughly the standard 2.40:1 aspect ratio).

Not convinced? Compare this video against this video, and you’ll see what I mean.

Don't miss another post! Subscribe by RSS feed or by email today!

ShareShare this post!   3 comments, add yours!

Related posts

    • Using KeepVid to Save YouTube and Google Videos
    • How To Save YouTube and Google Videos On Your Computer
    • How To: Automatically buffer YouTube videos
    • Picasa Web Albums Now in HD

3 Responses to “Embed High Quality YouTube Videos”

  1. # Scotton 09 Dec 2008 at 9:52 am

    Does this work for Google video too?

  2. # Alan Bradfordon 11 Dec 2008 at 5:09 pm

    I figured there was a way to do this. Thanks for the tip! Down with crappy video quality!

  3. # Tim Davison 02 Feb 2009 at 7:10 pm

    Hey thanks for the code!

  • Advertise Here
  • Authors

    • Abhijeet Mukherjee
    • Christine Buske
    • David Van
    • Peter Jalbert
    • Brian Wallace
    • Phil Glockner
    • Mark O’Neill
    • Yoast DeValk
  • Friends

    • Craig Fifield
    • Joost DeValk
    • Guiding Tech
    • PC Extreme
  • Deals

    • Save $5 - Spanning Sync Discount Code
    • $120 off - With this BOTW promo for ads
    • Coupons! - Save with our Google Checkout Coupons
  • Popular categories

    • News, Gmail, Google Chrome, Google Docs, Google Calendar
  • Just posted

    • Google Docs Gets a New Research Tool
    • Gmail Gets Better Google+ Notifications
    • ScanURL Does a Comprehensive Security Scan for a URL
    • Google Drive Arrives, Google Docs is Now a Part Of It
    • Gmail Now Gives More Information About Emails It Marks As Spam
  • Just said...

    • Google Drive Arrives, Google Docs is Now a Part Of It
      • shle896: Actually, Google Docs does support watching videos and has for...
      • Will: Lots of complaints above. Google docs didn’t have video or mp3...
      • shle896: Aside from the desktop app that syncs files, I don’t see how...
    • Using Page Specific Web Search Operators
      • Landscape Gardening Anaheim: Magnificent site. Plenty of useful information...
    • Gmail Now Gives More Information About Emails It Marks As Spam
      • Moditshaba: How can i set my phone 2 alert me when i receive my mail...
  • Community


      Join me at: Twitter, MyBlogLog
  • Tools

      Beginner's Guide to Google
      Google Help Forums
      Shared Items Plugin
      Track Google via Twitter
      Research Google
      Simply Advanced Google Search
  •  

Google Tutor: Google tutorials and tips © 2003-2012. All Rights Reserved. Advertise, About & Contact Us, Sitemap, Privacy. CDN Service by MaxCDN. GoogleTutor.com is not sponsored by or affiliated with Google, Inc. in any way (although we'd love to be!) we are just fans :)