How to Embed and Play 720p HD (High Definition) YouTube Videos (&fmt=22 Code Hack)

It’s possible to embed high quality YouTube video clips on external website for direct viewing or playback of visitors. But to many disappointment and dismay, the so called “higher quality” (and declared as HD by many other websites) is simply not good and not high resolution enough. Now, Google has made available YouTube video play back in High Definition (HD) mode of 720p by just adding &fmt=22 to the video URL or link location.

As such, for webmasters and bloggers who embed YouTube hosted videos, now it’s time to start embed a real true HD videos for the real exhilarating enjoyment when watching and viewing the playing video clip.

To embed a HD quality YouTube video with high definition resolution on external website or blog, simply add or append &ap=%2526fmt%3D22 code (instead of &ap=%2526fmt%3D18 to display just higher quality 480×360 video clip) to the end of movie parameter value and embed source in the YouTube embed code. For example, we take a look at original embed code for “Where the Hell is Matt? (2008)” YouTube hosted video clip that available in HD format.

<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/zlfKdbWwruY&hl=en&fs=1&rel=0″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/zlfKdbWwruY&hl=en&fs=1&rel=0″ type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>

By appending &ap=%2526fmt%3D22 HD hack switch, the embed code will become like the following:

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

The only caveat emptor is that not all (actually is most) videos uploaded to YouTube is not available in such very high quality HD viewing quality. The uploaded source videos must be encoded in HD quality resolution in order for the YouTube HD trick to work. Good news is that, the HD YouTube appears to have even better picture quality than Vimeo, the first video sharing site to support consumer HD (High Definition) playback, using the 720p resolution at 24 fps (frame per second) Flash video. YouTube plays back 720p HD video using H.264/MPEG-4 AVC codec in 1280×720 resolution with high-quality AAC two audio channels stereo sound at 232 kbit/s 44100 Hz monaural (near CD quality).

Note that although YouTube currently has the option to allow users to set YouTube to always play higher quality video when available, it’s not currently support auto play the HD format. It will play video in high quality mode with maximum picture size of 480 x 360 pixels with audio encoded in bit rate of up to 120 kbit/s at 44100 Hz monaural (FM quality).

Take a look at the Matt Dancing video in different YouTube supported resolutions below. Watch and view the video in full screen and listen carefully to the sound effect to get a feel of what HD really means.

Update: Hack to Embed Video Code to AutoPlay in HD


Standard normal quality YouTube video.


High quality YouTube video.


HD (720p high definition) YouTube video.

Tip: HD YouTube supports up to maximum picture size of 1280 x 720. So users can embed the video of bigger size by changing the width and height values in the embed code.

16 Responses to “How to Embed and Play 720p HD (High Definition) YouTube Videos (&fmt=22 Code Hack)”

  1. Youtube doubles upload limit to 2GB « Raja Jasti’s Blog - Renaissance Thinking
    June 27th, 2009 16:03
    16

    [...] in the past but only through appending video URLs with some inscrutable code (&fmt=22) that was publicized by a few blogs. Now, it’s slightly simpler: add &hd=1 to any YouTube URL to play in HD (if [...]

  2. YouTube Doubles Upload Size Limit
    June 27th, 2009 07:15
    15

    [...] in the past but only through appending video URLs with some inscrutable code (&fmt=22) that was publicized by a few blogs. Now, it’s slightly simpler: add &hd=1 to any YouTube URL to play in HD [...]

  3. boarding trailers
    April 3rd, 2009 08:12
    14

    hey,

    The only problem I have with HQ embedding is that the little icon in the video doesn’t actually show that it is HQ or HD, which i just annoying, because visitors will always hit the button for better quality, not realizing that it doesn’t do anything. Does anyone know if there is a way to get around this???

    Thanks guys!

  4. yookoala
    February 28th, 2009 18:34
    13

    I think this stopped working today (2009-Feb-28).
    We need an update version of this.

  5. Stian Domben Bårdsen
    February 23rd, 2009 22:29
    12

    Hello! Just what I was looking for, but it seems like YouTube have changed their embeddinglink. As it’s not like the one you are using..

  6. Embedding Youtube in High Quality and HD « Rantings Of An Optometrist
    January 13th, 2009 01:12
    11

    [...] such, for webmasters and bloggers who embed YouTube hosted videos, now it’s time to start embed a real true HD videos [...]

  7. Vincent
    January 6th, 2009 04:30
    10

    Thanks, I’ve been struggling with trying to upload higher quality videos. We’ve been disappointed with the quality after YouTube recompresses, but this little trick worked like a charm. You can check out the video here:

    http://www.mhelpdesk.com/Watch_Video.html

  8. Ir
    December 31st, 2008 00:46
    9

    i assume this must have worked previously… but, it doesn’t work now, at least for me :-(

    the high-quality clips on this page do not play.

  9.   Embed YouTube High Definition on Your Site by Inside the Internet Marketing Mind
    December 30th, 2008 01:12
    8

    [...] used a bit of the information found at My Digital Life to help me do a lot of [...]

  10. How to embed 720p YouTube videos in your blog
    December 21st, 2008 00:42
    7

    [...] at the end of the movie parameter code. Let’s see an example provided by Mydigitallife. What follows is a code which lets you embed a video in your blog. The first unmodified code lets [...]

  11. Lloyd
    December 10th, 2008 15:52
    6

    Thank you it worked! :)

  12. What YouTube clip has best quality? - The Unofficial BMW M5 Messageboard (m5board.com)
    December 5th, 2008 01:13
    5

    [...] appear to be 3 options on *some* youtube videos (normal, high, hd 720p), read more about it here: How to Embed and Play 720p HD (High Definition) YouTube Videos (&fmt=22 Code Hack) My Digital L… __________________ 2005-12 E60 M5 :: Silverstone :: Silverstone Full Perforated Delimited :: [...]

  13. Rants from a Scottish geek » Oh shiny
    November 23rd, 2008 20:35
    4

    [...] Sorry the video embed didn’t work You can see an example here: My Digital Life jQuery(document).ready(function(){ jQuery(’.comment-replyto’).click(function(){ var text = [...]

  14. YouTube in HD « Tar Productions’s blog
    November 22nd, 2008 02:51
    3

    [...] Vimeo’s HD (apparently) embed. You can read an article on how to embed and play YouTube HD here. Additionally you can read an article here on how you play back videos on YouTube’s site in [...]

  15. oseb
    November 20th, 2008 15:52
    2

    Oh.. very nice tip!

  16. How to Watch 720p Video Clip in YouTube » My Digital Life
    November 20th, 2008 15:21
    1

    [...] For webmasters or bloggers, use the HD code to embed HD YouTube video clip on your sites. [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.

New Articles

Incoming Search Terms for the Article

youtube hd code - youtube embed hd - youtube hd embed - embed hd youtube - embed youtube hd - force hd youtube - youtube hd size - youtube hd 720p - hd code for youtube - hd code youtube - youtube 720p hd - HD Youtube code - code youtube hd - code for hd youtube - embed youtube in hd - how to embed HD youtube - youtube in hd code - youtube code for hd - youtube hd embed code - hd youtube embed - HD embed youtube - force hd yotube embed - how to play hd videos on you tube - playing youtube video on website - youtube code HD - youtube force hd - force youtube HD - hd suffix embeded - youtube embed high definition - code for youtube hd - embed youtube video in hd - hd youtube embedd - youtube hd codes - youtube 720 - youtube embed in hd - youtube codes for hd - code for hd youtube videos - first to hd, youtube or vimeo - youtube embed hd video - embed hd videos on youtube - embed code youtube hd 1080 - embed youtube hd video - how to embed hd from youtube - how to get HD 720p on youtube - youtube embedded hd - Embedding Youtube HD - youtube hd suffix embedded - download youtube hd code - embed hd videos - youtube embed hd videos -