Watch YouTube in HD using a URL hack or Greasemonkey

You Tube announced last year (November) that they started to test higher quality videos. There are now a few samples of videos in YouTube that are uploaded and can be seen in a higher resolution. The regular version of YouTube videos have a 320×240 resolution and can be seen now with an upgrade of 448×336. The audio encoding is also said to have improved from the normal 22050Hz to 44100Hz.

To watch the videos in a higher resolution, all you have to do is add &fmt=6 to the end of the video URL (so the URL will have to look like this ( ). You will notice a slight improvement in the resolution. This upgrade doesn’t come without a price. The improvement in resolution will result to a slower download due to an increase in the size of the re-encoded video. To get a much higher resolution of 480×360, just add &fmt=18 at the end or the YouTube video URL. By doing this, there is a chance of getting an MP4-encoded version which also comes in a larger size. This trick does not work on all videos. It has been reported that newer videos can only be viewed in high resolution.

grasemonkey.jpgIf ever you don’t want to go to all the trouble of placing the code on every video you visit in order to view it in improved resolution, there is another way of doing this with the use of Greasemonkey Firefox extension. If you do not have Greasemonkey installed in your Firefox, you can download it here. Then, install the YouTube HD script than can be found here. By doing this, you can view all the YouTube videos that have higher resolution automatically. However, if you feel that it is slowing down your streaming or the videos stopped loading, you can always disable the script in Greasemonkey by pressing right click on the monkey head at the bottom of your Firefox browser and unchecking the YouTube HD tag.

Note: In order for all of this to work, you need to have the latest version of Flash Player installed in your system.

Source: GoogleSystem

Update: Another trick that you can use in searching HD YouTube videos using the Google search engine. All you need to do is type in your keyword search and add the following parameters to your search query. “watch in normal quality watch in high quality”

Update: You can now view You Tube videos in 720p HD (widescreen) Just add the the code &fmt=22 at the end of the URL of any You Tube video uploaded with 720p quality. This will give You Tube users a whole new experience in veiwing videos. To embed videos in 720p, just add the following codes at the end of the URL on the embed code  &ap=%2526fmt%3D22.You can edit the width on the embed code to make it look widescreen on your site.

Check out the sample code below:

<object width=”425″ height=”344″><param name=”movie” value=”“></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>

Note: Embedding You Tube videos in 720p will slow down the loading of the video but it’s worth it. Expecially when viewed full screen. Embed the sample code above and see for your yourself.

5 Comments on “Watch YouTube in HD using a URL hack or Greasemonkey

  1. Hello. Just want to share an additional tip for embedding high quality video. You need to change the URL in the embed code.
    For each of the URLs in the embed code that you get from YouTube, just add &ap=%2526fmt%3D18 on the end. I made a sample of the embed code just in case.

    <param name=”movie” value=”“><embed src=”” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″>

  2. @Oren: Good news is that we no longer need to add &fmt=22 to the url. The weird thing is that I tried uploading a 720p video and the hd version did not get activated.

    @MAtt: Yeah it’s quite a relief to have that feature activated. No more adding codes. I can’t say that’s true for embedding them in HD 720p yet. We still need to add the code to make it look good on our sites.

Leave a Reply

Your email address will not be published. Required fields are marked *