How to embed HD Youtube Videos

Talk about the NLSC Podcast, Wiki and other site related issues and content here. Site and community announcements are also posted in this section.

How to embed HD Youtube Videos

Postby JaoSming on Sun Dec 28, 2008 12:39 am

Take the video ID from the URL, the part after the v=
Code: Select all
http://www.youtube.com/watch?v=Op0fiTh-y1g


Insert it between the / and & symbols
Code: Select all
[flash=720,405]http://www.youtube.com/v/________&hd=1[/flash]


Like this
Code: Select all
[flash=720,405]http://www.youtube.com/v/Op0fiTh-y1g&hd=1[/flash]


Ta da
phpBB [video]

2K Modding Tutorials - My YouTube Channel

User avatar
JaoSming
Guru
Administrator
 
Posts: 29153
Joined: Tue Sep 13, 2005 12:45 am
Location: Vermont

Re: How to embed HD Youtube Videos

Postby Andrew on Sun Dec 28, 2008 5:54 pm

Awesome, nice work. (Y)
Release Threads: NBA Live 08 | NBA Live 07 | NBA Live 06 | NBA Live 2005
Story Threads: NBA 2K13 | NBA Live 06 (Part 2) | NBA Live 06 (HOF) | NBA Live 2004 (HOF)
NLSC: Podcast | Facebook | Twitter | YouTube Channel
User avatar
Andrew
Handing out unfair buns since 2001
Administrator
 
Posts: 88897
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

Re: How to embed HD Youtube Videos

Postby Robert on Sun Mar 01, 2009 2:33 am

Thx man I love HD!
Robert
 
Posts: 286
Joined: Fri Feb 13, 2009 11:32 am

Re: How to embed HD Youtube Videos

Postby Pdub on Tue Mar 03, 2009 12:40 am

Just an update. I had to add &ap=%2526fmt%3D18 to a video to get it to play otherwise it gave me the "video is no longer available" message. It may because it was not available in such a high resolution.
Image
User avatar
Pdub
I'm Inveencible!!
Administrator
 
Posts: 12684
Joined: Thu May 19, 2005 5:54 pm
Location: Pasadena, California, US

Re: How to embed HD Youtube Videos

Postby benji on Tue Mar 03, 2009 1:21 am

It's actually the end of that "fmt=18", which is the designator to automatically display in "high quality." I believe "22" is the HD designator.

Embedding may not work properly if, as you said, the video does not possess HD. 18 seems to be "high quality, if not, standard", the HD designator is completely different as you can see when on the youtube site and it displays the larger video frame instead of the standard one.

Some videos have HD, high quality and standard. Some have just HD and standard. Some have just high and standard. YouTube really needs to work on this so it sends the proper stream. (And another thing! It never saves my settings and shows the best quality. I have to set it back every so often. GET ON THE BALL.)
User avatar
benji
now that's how you paint fruit
 
Posts: 13330
Joined: Sat Nov 16, 2002 9:09 am

Re: How to embed HD Youtube Videos

Postby Pdub on Tue Mar 03, 2009 1:56 am

This is what I found, but I am not sure how accurate it is.
    &fmt=6 - increases the resolution from 320×240 to 448×336, Flash 7 video @ 900Kbps; audio @ 44.1KHz 96Kbps Mono CBR.
    &fmt=18 - increases the resolution to 480×360, H.264 video @ 512Kbps; audio @ 44.1KHz 128Kbps Stereo.
    &fmt=22 - increases the resolution to 1280×720 (720p), H.264 video @ 1024Kbps; audio @ 44.1KHz 232Kbps Stereo.


http://www.reelseo.com/youtube-hd-update/
Image
User avatar
Pdub
I'm Inveencible!!
Administrator
 
Posts: 12684
Joined: Thu May 19, 2005 5:54 pm
Location: Pasadena, California, US

Re: How to embed HD Youtube Videos

Postby benji on Tue Mar 03, 2009 2:12 am

Yeah, that would fit with what I said. 18 is high quality (H.264 container), 22 is the bigger size (720p).
User avatar
benji
now that's how you paint fruit
 
Posts: 13330
Joined: Sat Nov 16, 2002 9:09 am

Re: How to embed HD Youtube Videos

Postby benji on Wed Dec 15, 2010 9:44 pm

Looks like the 22 now works automatically to increase the quality if you have the frame set right.

For reference you just need for 480p or the size of the box itself on YouTube:
Code: Select all
[flash=854,480]http://www.youtube.com/v/jbkSRLYSojo&fmt=22[/flash]

For 720p:
Code: Select all
[flash=1280,720]http://www.youtube.com/v/dlXy7mKX1Iw&fmt=22[/flash]


Just grab the URL: http://www.youtube.com/watch?v=4F9qo0tnh3c (or the code at the end to paste into an existing form.)
and delete "watch?" and then replace the = with a / and stick the &fmt=22 on the end.

Just change the x/y parameters for the highest resolution the video offers or if you want to save screen width for people. It will default down to that size.
User avatar
benji
now that's how you paint fruit
 
Posts: 13330
Joined: Sat Nov 16, 2002 9:09 am

Re: How to embed HD Youtube Videos

Postby Andrew on Wed Dec 15, 2010 11:04 pm

Good to know, thanks. (Y)
Release Threads: NBA Live 08 | NBA Live 07 | NBA Live 06 | NBA Live 2005
Story Threads: NBA 2K13 | NBA Live 06 (Part 2) | NBA Live 06 (HOF) | NBA Live 2004 (HOF)
NLSC: Podcast | Facebook | Twitter | YouTube Channel
User avatar
Andrew
Handing out unfair buns since 2001
Administrator
 
Posts: 88897
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

Re: How to embed HD Youtube Videos

Postby Pdub on Thu Dec 16, 2010 12:44 am

But, for some reason the fullscreen option doesn't work for me when people embed like that.
Image
User avatar
Pdub
I'm Inveencible!!
Administrator
 
Posts: 12684
Joined: Thu May 19, 2005 5:54 pm
Location: Pasadena, California, US

Re: How to embed HD Youtube Videos

Postby benji on Thu Dec 16, 2010 12:47 am

The other embeds never did for me. I right click -> open them on youtube anyway though.
User avatar
benji
now that's how you paint fruit
 
Posts: 13330
Joined: Sat Nov 16, 2002 9:09 am

Re: How to embed HD Youtube Videos

Postby Pdub on Thu Dec 16, 2010 1:27 am

I do that too. On my phone, I can open view embedded with the video tag in the YouTube app which plays smoothly while it is happy in the browser. Not with the flash embedded HD ones, though.
Image
User avatar
Pdub
I'm Inveencible!!
Administrator
 
Posts: 12684
Joined: Thu May 19, 2005 5:54 pm
Location: Pasadena, California, US

Re: How to embed HD Youtube Videos

Postby JaoSming on Thu Dec 16, 2010 2:03 am

good to see all that junk at the end of the URL isnt needed anymore either.....and fuck I did this back in 2008?
phpBB [video]

2K Modding Tutorials - My YouTube Channel

User avatar
JaoSming
Guru
Administrator
 
Posts: 29153
Joined: Tue Sep 13, 2005 12:45 am
Location: Vermont


Return to NLSC Hub

Who is online

Users browsing this forum: No registered users and 1 guest