Digital Home Thoughts

Digital Home Thoughts - News & Reviews for the Digital Home

Register in our forums so you're ready for our next giveaway contest...


Zune Thoughts

Loading feed...

Apple Thoughts

Loading feed...

Laptop Thoughts

Loading feed...




Go Back   Thoughts Media Forums > DIGITAL HOME THOUGHTS > Digital Home Talk

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-31-2009, 06:24 PM
Executive Editor
Jason Dunn's Avatar
Join Date: Aug 2006
Posts: 29,135
Default Embedding YouTube HD Videos: Here's How

YouTube has been getting in on the HD bandwagon lately, and the results are definitely an improvement over the high-quality option - as long as the original video looks good enough. But what if you want to embed your HD video on your own Web site? Mark Robertson over at Reel SEO figured it out, but using his example code I wasn't able to get it to work (and neither was Vinny over at Apple Thoughts). So I thought I'd work backwards - first, I took a look at one of my videos on YouTube, and copied the embed code that YouTube provided. They don't provide a 600 pixel-wide option, so I manually changed that part of the code to be 600px by 365px. The important part is the YouTube video URL in the code.

In the code below, wherever I saw this:

http://www.youtube.com/v/PKr6sZ3zfLY

I added &fmt=22 onto the end of it, so in the code it looks like this when pasted in:

http://www.youtube.com/v/PKr6sZ3zfLY&fmt=22

Or, more accurately, it looks like this when strung together with the other code that YouTube puts in there:

http://www.youtube.com/v/PKr6sZ3zfLY&fmt=22&hl=en&fs=1&rel=0

The important thing is that &fmt=22 is included immediately after the last character of the YouTube video ID. The results look like this:

UPDATE: Upon further testing, I'm not convinced that Reel SEO has this figured out after all (or me for that matter). When the video plays, I see an "HQ" option in the lower right corner...so I think this is only streaming the HQ version, which looks good, but isn't the same as HD. I see the same HQ over on the Reel SEO sample video, so I think neither of us is actually embedding the HD stream from YouTube. Back to the drawing board!

__________________
Want to contact me personally? Use this. Want to read my personal blog? Check it out. Want to follow me on Twitter? Here you go.
 
Reply With Quote
  #2 (permalink)  
Old 01-31-2009, 11:44 PM
Intellectual
Join Date: Mar 2004
Posts: 135

A similar article at Download Squad gave the same codes, except they identified it as being for High Quality.

http://www.downloadsquad.com/2008/11...outube-videos/
 
Reply With Quote
  #3 (permalink)  
Old 02-03-2009, 06:15 AM
Ponderer
Join Date: Mar 2004
Posts: 88
Send a message via MSN to icatar Send a message via Yahoo to icatar

Check out this link:
http://www.mydigitallife.info/2008/1...t22-code-hack/

This one adds &ap=%2526fmt%3D22 to the URL and seems to have worked for me.
 
Reply With Quote
  #4 (permalink)  
Old 02-03-2009, 09:23 PM
Executive Editor
Jason Dunn's Avatar
Join Date: Aug 2006
Posts: 29,135

Quote:
Originally Posted by icatar View Post
This one adds &ap=%2526fmt%3D22 to the URL and seems to have worked for me.
I checked that out, copied his code, and tried it over on my blog - and the YouTube video says "HQ" when it starts playing.

Check it out for yourself:

http://www.jasondunn.com/dancing-matt-2008-1364

So is YouTube dishing out the HD version but putting HQ on it? Or is it really just HQ?
__________________
Want to contact me personally? Use this. Want to read my personal blog? Check it out. Want to follow me on Twitter? Here you go.
 
Reply With Quote
  #5 (permalink)  
Old 02-03-2009, 10:31 PM
Intellectual
Join Date: Mar 2004
Posts: 135

After a few adjustments to my PC, I'd vote for your sample as being HD. And even more important ... that was the most entertaining video I've ever seen from YouTube. Thanks for posting the link.
 
Reply With Quote
  #6 (permalink)  
Old 02-03-2009, 10:43 PM
Executive Editor
Jason Dunn's Avatar
Join Date: Aug 2006
Posts: 29,135

Quote:
Originally Posted by EscapePod View Post
After a few adjustments to my PC, I'd vote for your sample as being HD.
Interesting...so maybe that really is HD (it DOES look quote good to my eyes). What ticks me off is that if YouTube wasn't so FRAKING obtuse and obscure about this stuff, we'd have our answers. They drive me nuts sometimes!

Quote:
Originally Posted by EscapePod View Post
And even more important ... that was the most entertaining video I've ever seen from YouTube. Thanks for posting the link.
I'm glad I could brighten your day by posting that.
__________________
Want to contact me personally? Use this. Want to read my personal blog? Check it out. Want to follow me on Twitter? Here you go.
 
Reply With Quote
  #7 (permalink)  
Old 02-04-2009, 05:20 PM
Ponderer
Join Date: Mar 2004
Posts: 88
Send a message via MSN to icatar Send a message via Yahoo to icatar

Quote:
Originally Posted by Jason Dunn View Post
I checked that out, copied his code, and tried it over on my blog - and the YouTube video says "HQ" when it starts playing.

Check it out for yourself:

http://www.jasondunn.com/dancing-matt-2008-1364

So is YouTube dishing out the HD version but putting HQ on it? Or is it really just HQ?
I think that is the HD version, it does look pretty good. I believe the "HQ" is just something they have hardcoded into their player since they didn't plan on being able to embed HD at this time. What you can do is embed the HQ and HD versions side by side and we can compare them.
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://forums.thoughtsmedia.com/f303/embedding-youtube-hd-videos-heres-how-92371.html
Posted By For Type Date
Explanation of spoiler & auto youtube thing. - Page 3 - The Self Preservation Society This thread Refback 07-28-2009 06:03 PM
Youtube Hd - DEEJAY.hr Forum This thread Refback 05-27-2009 09:39 AM
Explanation of spoiler & auto youtube thing. - Page 3 - The Self Preservation Society This thread Refback 05-10-2009 10:15 PM
Explanation of spoiler & auto youtube thing. - Page 3 - The Self Preservation Society This thread Refback 05-10-2009 08:55 PM
Explanation of spoiler & auto youtube thing. - Page 3 - The Self Preservation Society This thread Refback 05-10-2009 08:53 PM
Explanation of spoiler & auto youtube thing. - Page 3 - The Self Preservation Society This thread Refback 05-09-2009 12:04 AM
U tube - The Self Preservation Society This thread Refback 05-08-2009 09:48 PM
U tube - The Self Preservation Society This thread Refback 05-08-2009 09:14 PM
Explanation of spoiler & auto youtube thing. - Page 3 - The Self Preservation Society This thread Refback 05-08-2009 09:07 PM


All times are GMT +1. The time now is 05:07 PM.



Search Engine Friendly URLs by vBSEO 3.6.0