« | Home | »

Download YouTube Videos as MP4 Files

By Martin English | April 15, 2008

From the Official Australian Google Blog:
An interesting side-effect of YouTube’s recent push for higher quality videos is that most videos can be downloaded as MP4 files directly from YouTube. Until now, you could only get FLV files from your browser’s cache or using one of the many websites that let you download YouTube videos. In fact, to download the MP4 files, you need to use the same URL like for FLV files and append “&fmt=18″:

http://www.youtube.com/get_video?video_id=ID&t=SIGNATURE&fmt=18

ID is the video’s identification value, SIGNATURE is a value that prevents you from downloading the file just by knowing the ID. You could create this URL by looking at the source code of a YouTube page, but it’s much easier to automatically generate it.

One way is to save the following link as a bookmarklet by dragging it to your Links bar (in Firefox, Safari) or right-clicking and adding it to your favorites (in Internet Explorer, Opera):

Get YouTube video

If you didn’t manage to add the bookmarklet, this post has more detailed instructions.

When you want to download a YouTube video, click on the bookmarklet and you should see a new option below the embeddable code.

YouTube doesn’t send the right MIME type so don’t click on the download link. Right-click and select “save link as” or “save target as” and enter a proper name for the video. Make sure to use the .mp4 extension when you enter the filename.

If using the bookmarklet is annoying, try this Greasemonkey script, which adds the download link automatically. It requires the Greasemonkey extension for Firefox or a similar plug-in for userscripts. Opera has built-in support for userscripts, so you only need to go to Tools > Preferences > Advanced > Content > JavaScript options, select the directory where you will put your script and copy the script to that directory.

YouTube’s MP4 files have a higher resolution, stereo sound and can be played with applications like VLC, MPlayer, iTunes, QuickTime. Not all YouTube videos can be downloaded as MP4 files and the fallback format is FLV.

UPDATE: Once you have the file – either as a download or the location of the FLV – you can use FLVto to extract the audio as an MP3

Topics: Google, Music, Productivity, Security, TV / Video, Web / Web 2.0 | No Comments »

Share on FriendFeed Reading: Download YouTube Videos as MP4 FilesTweet This

Comments

  • Foursquare

  • Subscribe to my RSS feed ?



  • Recent….


    • follow me on Twitter
    • www.flickr.com
      This is a Flickr badge showing public photos and videos from martin english (AUS). Make your own badge here.
    • Meta