nonchalant
11-22-2008, 09: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 :)
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 :)