Technobabble

YouTube Embed High Quality and HD

Leave a comment

YouTube logo

To embed video with the High Quality option –
In the embed code add the &ap=%2526fmt%3D18 to the end of each of the YouTube embed URLs.

To embed video with the HD High Definition 720P option –
In the embed code add the &ap=%2526fmt%3D22 to the end of each of the YouTube embed URLs.

I also created a tool to automate the process: http://dennismueller.org/blog/tools/youtube-embed-tool/

Examples:
Normal embed URL: http://www.youtube.com/v/xxxxxxxxxxx&hl=en&fs=1
High Quality embed URL: http://www.youtube.com/v/xxxxxxxxxxx&hl=en&fs=1&ap=%2526fmt%3D18
High Def embed URL: http://www.youtube.com/v/xxxxxxxxxxx&hl=en&fs=1&ap=%2526fmt%3D22

Here are some examples. Note it does not say it is HQ or HD in the player but the quality is obviously improved.

Standard Def
http://www.youtube.com/watch?v=LB5r6CJk0Tg

High Quality
http://www.youtube.com/watch?v=LB5r6CJk0Tg&fmt=18

High Def (720P)
http://www.youtube.com/watch?v=LB5r6CJk0Tg&fmt=22

Code Example for the HD Embed Code:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s