• On MovieTome: Leaked images from TRANSFORMERS 2?
November 20, 2008 12:36 PM PST

YouTube videos go HD with a simple hack

Posted by Josh Lowensohn
  • Font size
  • Print

Wired, with the help of users on the VR-Zone forums, has uncovered a simple way to get high-quality uploaded videos to display in 1280x720--also known as 720p.

YouTube has long been expected to roll out high-definition video playback, and this appears to be the first viable way to do it. The hack in question is similar to the one that was first used to toggle on the "high quality" mode. It is done simply by adding "&fmt=22" to the end of the video URL.

I got it to work without any problems on a video I uploaded earlier this morning. What's interesting here is that it was not ready at the same time the Flash version was.

In my case, it took about 15 minutes longer for the HD version to display. YouTube could be doing the second round of processing for these higher-resolution videos at the same time it's doing H.264 conversions for playback on TiVo digital video recorders and iPhones. My original upload was H.264 to begin with, so that could have sped things up.

Getting the higher-resolution video to display properly in embedded code is not so easy--but as you can see below, it works and looks gorgeous. You have to manually go in and change the embedded-link structure--something newbies might want to steer clear of. The YouTube embed technology for HD videos is missing the option to view in full screen, but you can toggle it on from the Google service's hosted video page.

One thing to note is that some folks to whom I sent this had problems getting the clip to display on older hardware. On my Intel Core2Duo machine, my CPU usage shot up from around 10 percent to 40 percent, and it peaked at 70 percent. This also happens on other HD video sites, such as Vimeo and Dailymotion. If you're using a computer equipped with a chip less powerful than an Intel Pentium 4, you might run into problems.

HD Version:


Regular version:

Josh Lowensohn is an associate editor for Webware.com, CNET's blog about cool and otherwise useful Web applications and services. If you've found a site you'd like profiled, shoot him an e-mail. E-mail Josh.
Recent posts from Webware
News Corp.'s MySpace, 'WSJ' partner on Davos contest
Hoover's lays out mobile apps for business pros
'Are My Sites Up?' keeps an eye on uptime
Five useful places to find financial data online
Learn how to play guitar in your browser (in 3D)
3DVU announces Way2Go 3D mobile mapping
Box.net to beef up business tools with new hires
Daily Tidbits: Nine Inch Nails is the coolest band around
Add a Comment (Log in or register) 33 comments
by userNoname November 20, 2008 1:11 PM PST
What's the frame rate?
Reply to this comment
by Josh.Lowensohn November 20, 2008 2:26 PM PST
30fps. The camera I used for the test footage was a Flip Mino HD which captures it at 30, although even on the source it looks closer to 15 doubled up to 30.
by cp4alex November 20, 2008 1:26 PM PST
Thanks, I still remember the "fmt14" thing for higher quality. By the way, mind posting a guide to actually embedding the HD version like you did?
Reply to this comment
by Josh.Lowensohn November 20, 2008 2:27 PM PST
Sure, will do that right now :)
by dredgerie November 20, 2008 3:24 PM PST
An easier way, instead of trying to remember to add a script on the page you want to watch, is just to go to the page and click the link under the video that says watch in higher quality. Youtube now automatically plays the video at the highest resolution available (whatever it was uploaded as).
When this was announced last week, that was all explained.
Reply to this comment
by COKEDUDE November 21, 2008 12:36 PM PST
Where's the link under the video that says higher quality? I don't see it. I've checked like 6 different videos.
by cp4alex November 22, 2008 8:43 AM PST
Actually, this new "trick" gives you better resolution than the YouTube option. It'll probably be integrated in the site very soon.
by SJ2571 November 20, 2008 3:27 PM PST
Hmm, doesn't seem to work with any videos I tried. Example: http://www.youtube.com/watch?v=QdPrB_lcpBc&fmt=22. However, the old version of &fmt=18 does work. Comments?
Reply to this comment
by Josh.Lowensohn November 20, 2008 4:30 PM PST
Could be working only on newly uploaded videos--older ones may have to be re-processed. The three I uploaded today worked without a hitch.
by dredgerie November 20, 2008 3:38 PM PST
if the video resolution is lower than 720p, it won't upgrade it. It'll simply play it at the resolution it was uploaded at. fmt=6 is flv format and 480x360 at a low bitrate. fmt=18 is MP4 and is a higher bitrate, but same resolution. fmt=22 is 720p
Reply to this comment
by SJ2571 November 20, 2008 4:42 PM PST
So what's fmt=18 for? Works here for most videos, and I've been using it for months successfully.
by DRAKULIAN November 24, 2008 5:04 PM PST
I have never seen either &fmt=6 or & fmt=22 work, not now, not ever.

&fmt=18 is the one you want.
by dredgerie November 20, 2008 4:07 PM PST
you can also log into youtube, go into playback setup under my account, and you can set playback to automatically play the highest resolution available if you have broadband.
Reply to this comment
by Cheiz87 November 20, 2008 4:42 PM PST
The comments i see here don't agree with what i see.

Actually clicking "higher quality" at youtube or changing the Playback setup in my accound does enhance the quality a little, but it's still nowhere near when i add &fmt=22 to the URL.
When i click the HD embed here its best quality. When i click on it while playing i am referred to the youtube page and get the video in lower quality (also when clicking on High quality). When adding &fmt=22 to the URL i get the HD quiality back again and can also watch it full screen.

I'm using FF3
Reply to this comment
by tandon1232003 November 22, 2008 7:08 AM PST
How to display movie on laptop on plama tv with display lead
Reply to this comment
by Timothy01 November 22, 2008 7:27 AM PST
Wouldn't the length of the HD video have to be short so it would fit under the 100mb limit?
Reply to this comment
by Vertago November 25, 2008 8:49 AM PST
I think they changed the limit to 1gb
by mateen110 November 22, 2008 10:31 AM PST
Josh,

&fmt=22 is only if it was recorded in HD. That's why most of the videos if you type &fmt=22 it will just take it back down to lower quality.

&fmt=18 is the one that most people should use. This increase bit rate, and increases the quality of the videos. (don' t have to record in HD to use &fmt=18) Try it on any video right now!
Reply to this comment
by Crash2100 November 22, 2008 3:27 PM PST
What's the big deal anyway? Most of the stuff on YouTube has the quality of a homemade film with less than VCR quality video.
Reply to this comment
by a921 November 23, 2008 4:58 AM PST
Is there a way to filter the search for Hi Res video? Now that YT is allowing higher quality video, I'd like to add that to search criteria. I'm trying to keep the low res video out of the results. Thanks.
Reply to this comment
by cnetdude1977 November 23, 2008 7:30 PM PST
The HD version definitely requires a tripod. Shaking ruins the HD video completely. Looking forward to the tutorial.
Reply to this comment
by DRAKULIAN November 24, 2008 5:06 PM PST
by SJ2571 November 20, 2008 3:27 PM PST

"Hmm, doesn't seem to work with any videos I tried. Example: http://www.youtube.com/watch?v=QdPrB_lcpBc&fmt=22. However, the old version of &fmt=18 does work. Comments?"


This is correct. It is <b>&fmt=18</b> (not 22) that forces YouTube videos into HiDef, and it's been that way for a long time, long before this article was published. I've never seen 6 ro 22 work, and unless or until they change it, clearly for all, stick with &fmt=18.
Reply to this comment
by DRAKULIAN November 24, 2008 5:16 PM PST
Okay, final found a video where &fmt=22 works, and I did a comparison between that and fmt=18. Here are the two links with the hack already entered:


http://www.youtube.com/watch?v=rTiL7ZQglF8&fmt=18

--VS--

http://www.youtube.com/watch?v=rTiL7ZQglF8&fmt=22


The 22 seems a bit better than the 18 for this video, however, 22 still does not seem to work for most vids, whereas 18 does. It's likely just a matter of time or else it will only be for new special uploads from here on.
Reply to this comment
by blade2577 November 25, 2008 11:13 PM PST
For this video I barely see any difference (if at all) however the loading time for &fmt=22 was higher than &fmt=18. &fmt=14 didn't seem to work at all, and the difference between &fmt=6 and &fmt=18 was tiny, again, if at all.
Reply to this comment
by loanstar744 November 26, 2008 4:27 PM PST
ha my laptop is dell with a rage mobility video card by ati and its a pentium ||| and youtube videos in HD do bother it.it runs as fast as normal
Reply to this comment
by w0033093 November 26, 2008 6:08 PM PST
Yes, well, this would be a great and informative article if it were true, the article I mean! Did anyone bother to look at the embedded code in this article webpage code?

There are two different sources for both these video's, that is they are not rendered from the same source:

src="http://www.youtube.com/v/Mgan4rt7ZHw&amp;ap=%2526fmt%3D22"

and

src="http://www.youtube.com/v/Mgan4rt7ZHw&hl=en&fs=1"

You can see the difference plainly enough. Don't believe me? Go to your View (firefox) menu and select 'Page Source' on that menu while viewing this article and see for yourself.

I have included a snippet below...

<p>HD Version:</p>

<object width="630" height="380">
<param value="http://www.youtube.com/v/zlfKdbWwruY&amp;ap=%2526fmt%3D22" name="movie" /><param value="window" name="wmode" />
<param value="true" name="allowFullScreen" /><embed width="630" height="380" wmode="window" allowfullscreen="true" type="application/x-shockwave-flash" src="http://www.youtube.com/v/Mgan4rt7ZHw&amp;ap=%2526fmt%3D22"></embed></object></p>

<br />
<p>Regular version:</p>
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/Mgan4rt7ZHw&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Mgan4rt7ZHw&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
Reply to this comment
by nwongfeiying November 27, 2008 7:59 AM PST
I commend you on finding an unreleased parameter (what you call a "hack") :\

/facepalm
Reply to this comment
by Chronis67 November 30, 2008 2:16 PM PST
I tried watching the HD video and I noticed the frame rate was studdering. So I check my CPU usage and it was in the 80 and 90 percents. I have have a AMD Athlon XP 2800+, so while it does have a few years on it, I would have though it should have been powerful enough to watch an HD video.
Reply to this comment
 See all 33 Comments >>
advertisement

About Webware

Say No to boxed software! The future of applications is online delivery and access. Software is passé. Webware is the new way to get things done.

Add this feed to your online news reader

Webware topics

In the news now

Yahoo's Decker strong contender for CEO

Sources say the president of the embattled Internet search pioneer has been through two rounds of interviews with the board.


Gadget extravaganza in Las Vegas

CES 2009 is in full swing. Highlights so far include Palm's WebOS and Pre device, Microsoft's Windows 7 beta, and much more.


advertisement

Inside CNET News

Scroll Left Scroll Right
-->