PDA

View Full Version : High resolution youtube embeds


nonchalant
11-22-2008, 10:20 PM
Ok, as more of us are embedding youtube video into our websites in line with Web 2.0, you may be wondering how you can improve the poor resolution of your videos caused by youtubes conversion of your uploaded video. As you know, you cant improve the resolution once its been converted, however you CAN improve the resolution when embedding the video into your site.

In looking for a solution to this problem I came a across a neat little hack that improves the resolution of the video many times over.

In order to apply this hack you simply add the following code (twice) to the end of your youtube URL - &ap=%2526fmt%3D18

So, if your youtube video code is
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/sRK3baGcfy8&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/sRK3baGcfy8&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

you change it to

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

Try it out. It works a treat :)

Jura
11-23-2008, 04:02 PM
I've been using this for a while. It's nice Youtube allows it.