YouTube MP4 Script

There is a hidden feature in YouTube that allows you to directly download a video in MP4 format.

Simply paste the following code into the address bar while watching the video of your choice, and press enter. Look under the video embed/description box to see a link.

java script:if%20(document.getElementById('download-youtube-video')==null%20&&%20!!(document.location.href.match(/http://[a-zA-Z.]*youtube.com/watch/)))%20{var%20yt_mp4_path='http://www.youtube.com/get_video?fmt=18&video_id='+swfArgs['video_id']+'&t='+swfArgs['t'];%20var%20div_embed=document.getElementById('watch-embed-div');if(div_embed){var%20div_download=document.createElement('div');div_download.innerHTML='<br%20/>%20<span%20id='download-youtube-video'><a%20href=''+yt_mp4_path+''>Download%20as%20MP4</a>%20'+%20%20((navigator.userAgent.indexOf('Safari')!=-1)?'(control-click%20and%20select%20<i>Download%20linked%20file%20as</i>)':('(right-click%20and%20select%20<i>Save%20'+%20(navigator.appName=='Microsoft%20Internet%20Explorer'?'target':'link')%20+'%20as)</i>'))+'</span>';div_embed.appendChild(div_download);}}void(0);

This works best with Safari, but Firefox/IE are also tested to work fine.

Rumor has it that this is due to the iPhone/iPod Touch/Apple TV, and the availability of YouTube on them.

NOTE: If you "Right-click > Save Link As" in Firefox, you may download a .htm file. To fix this, simply change the extension from ".htm" to ".mp4". Or you can just left-click it, and save the .mp4.

----------------------------------------------------

Oh, BTW, I'm new here. ;)

#501882

Nice find but any note on the quality of the video?

#501891

It's good, but slightly pixelated.

It's for the ipod touch/iPhone, so it's in that size and optimized for viewing on a smaller screen

If you're going for quality, just download the .flv.

#501920

A rumor has it? Oh man this hack has been out pretty much since the iPhone was released, although in various forms.

#501942

I'm not understanding where to enter the URL of the video -_- forgive my n00bness.

#501982

Go onto the YouTube video in your browser, i.e. so you're actually watching it. And then paste the link in the first post into the dress bar and press enter. ;)

#501990

oh, ok thanks a lot :D

#502008

hmm... for some reason simply pasting this video in the address bar isn't working for me.

any ideas?

#502081

Did you press go?

#502094

yep

#502161

What's your browser?

#502385

i've tried it in firefox and safari

#502612

Odd.

Do you have javascript enabled?

#502621

Hum... do you know : http://keepvid.com/ ?

#502680

Keepvid sucks.

Try Vixy.net.

#502692

If you have an iPhone, there is an application call MxTube, you can have it from your Installer apps. It's a very nice one, you just search a youtube you want to d/l and press download, oh it's a freeware

#502696

when i paste the link from the first post into the address bar while i am watching a video, it says something about invalid videoID.

Nevermind, i got it working right, good stuff!

#502991