Jun 12, 2008
My Digital Life Editorial Team

How to Embed High Quality and Higher Resolution YouTube Videos on Blog or Website

Viewers can now opt to view YouTube video clips in higher quality, or even set YouTube to playback the video in high resolution quality mode automatically by default whenever the video is watched on YouTube website. However, for YouTube video clip which embedded on blog or web page, viewers won’t have such flexibility to switch or upgrade the video playback to higher quality streaming, unless webmaster or blogger specifically embed a high quality and high resolution YouTube embed code on the website.

To allow visitors to web pages embedded with YouTube video clip to view and watch the video in high quality mode, webmaster has to use the hack below to embed the code that will stream from high quality video source, which stream as a MP4 (H264 with AAC audio) and encoded at 480×360. Similar to the hack to view high quality video on YouTube with &fmt=18 or &fmt=6 switch, publisher needs to append a switch to the YouTube embed code so that the Flash Player knows that it should play the video with high quality video streaming.

What’s the different between normal quality and high quality YouTube videos? Take a look at the 2 embedded YouTube video clips below, featuring sexy Mariah Carey singing Touch My Body, and you would amazed.


Normal quality version of YouTube video


High quality version of YouTube video

However, the default “&fmt=18″ flag for URL address bar will not work on embed code. In YouTube embed code, add and append &ap=%2526fmt%3D18 to the end of video clip’s URL specified in “param value” and “embed src”. For example, for video above, the embed code will be as below:

<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/_w0AwGCjqnw&hl=en&rel=0″></param><embed src=”http://www.youtube.com/v/_w0AwGCjqnw&hl=en&rel=0″ type=”application/x-shockwave-flash” width=”425″ height=”344″></embed></object>

Apend the &ap=%2526fmt%3D18 to the end of two instances of http://www.youtube.com/v/xxxxxxxxxxx&hl=en&rel=0 within the original quotation mark, where xxxxxxxxxxx represents the unique video ID. The high quality YouTube embed looks like below:

<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/_w0AwGCjqnw&hl=en&rel=0&ap=%2526fmt%3D18″></param><embed src=”http://www.youtube.com/v/_w0AwGCjqnw&hl=en&rel=0&ap=%2526fmt%3D18″ type=”application/x-shockwave-flash” width=”425″ height=”344″></embed></object>

The best part of high quality video can be enlarged to the width of 480 with affecting the viewing quality as the streaming video is encoded in 480×360 resolution.

With HD era arriving, YouTube now supports playback of YouTube hosted video in 720p HD (High Definition) picture quality resolution in near CD audio quality. Here’s how to embed video on external third party websites or blogs to play YouTube in 720p resolution or embed video to play in HD by default.

Related posts:

  1. Force YouTube to Automatically Play Videos in Higher Quality Resolution Mode by Default
  2. Upgrade Video Quality When Viewing YouTube
  3. Youtube To Launch HD Videos Soon
  4. Skype And Logitech Team Up For High Quality Online Video Call Services
  5. Download YouTube Videos for Your iPhone and iPod

71 Comments

  • Some corporations propose the paper writing. But, you need to opt for the experienced custom writing service to buy essay service in.

  • i have to try it. can't see the vids as they are no longer available now..

  • Sorry, but as of today (3/14/10) this tip does not work on my embedded Youtube HQ videos.

  • [...] al momento non è possibile fare è integrare nei nostri blog i video HQ. Navigando ho trovato un sito in inglese che spiega come è possibile  fare questo e integrare nelle nostre pagine i filmati [...]

  • Really good tip, I use this often even on regular quality video's as it makes them a little clearer

  • Since a few days the hack doesn't work anymore
    &ap=%2526fmt%3D18
    This is the answer from youtube

    YouTube has recently been upgrading. Here's a statement in the uploads section of their "known Issues" website.

    "HQ disappearing / not available for videos that meet HQ standards

    We made improvements to standard quality for video uploads! Unless there is a large difference between standard quality and HQ , the upload will produce standard quality by default (and not HQ as before)."

    http://www.google.com/support/forum/p/youtube/thr

    Anyone knows an updated hack ??

  • Cool..The embedded code works for my website and some friends told me that I have a different quality videos (means good quality, off course..)

    Thanks

  • I'd been searching all over for this, no one could tell me. I just added this to my videos and it worked.

    I was using vimeo for a long time because of this, still uploading to youtube, now I can use youtube videos on my site and not sacrifice the quality.

    Thanks a bunch!

  • hey, a couple of things:

    1) 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???

    2) the videos in this post are dead.

    Thanks guys!

  • [...] Šaltinis: My Digital Life [...]

  • Is it possible to embed high quality video with YouTube Custom Player, especially that layout with many small screens display on the side? Its video ID# goes like this: ="http://www.youtube.com/cp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=&quot; I tried to append &ap=%2526fmt%3D18 to the end of the video ID# within the original quotation mark (as you have suggested above)but it doesn't work. Please HELP! Thank you in advance.

  • Thanks! This worked! :D

  • Thanks for this post, it helped me embed high quality videos from youtube on my blogs.

  • [...] video playback on its embeds. Previously, you could switch to the high-quality stream by hacking the embed code, but now YouTube provides a handy-dandy little “HQ” button in the lower-right pop-up [...]

  • This is really useful, thanks a lot for the tip – the videos in low quality just look so bad, but this makes all the difference

  • Great ! I will add this to my bookmarks. TY

  • Hey, thanks for the code. I couldn’t figure it out on the embed code, until I used the &ap=%2526fmt%3D18 . That helped me out, and I couldn’t find it anywhere else. Have a great day.

  • Thanks for providing this tip. Works great!

  • [...] page or blog post, you can alter the embed code to force the video to view in high resolution. The hack described in this blog post works. It will ensure that the video’s fidelity is much higher, making it a more enjoyable [...]

  • [...] video playback on its embeds. Previously, you could switch to the high-quality stream by hacking the embed code, but now YouTube provides a handy-dandy little “HQ” button in the lower-right pop-up menu. [...]

  • [...] video playback on its embeds. Previously, you could switch to the high-quality stream by hacking the embed code, but now YouTube provides a handy-dandy little “HQ” button in the lower-right pop-up [...]

Pages: 1 2

Leave a comment

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Subscribe

Free email subscriptions
Get latest updates in email for free:

Translate This Page