HOWTO download YouTube videos using Firebug

Here’s a cool little trick I discovered by accident. If you use the excellent Firebug add-on for Firefox you can very easily download YouTube videos without resorting to websites like Keepvid or add-ons like Fast Video Download. Here’s how:

  1. Start up Firebug by clicking on the logo in the status bar (you might have to right-click and remove the ‘Disable Firebug’ tick)
    firebug.png
  2. Go to the movie on YouTube you want to download
  3. Go to the ‘Net’ tab in Firebug(you might need to turn on the ‘Net’ panel first in newer versions of Firebug) and locate the ‘get_video’ object, it’s a few megabytes in size, depending on how long the video is
    firebug-net.png
  4. Right-click on the URL and select ‘Copy location’
    firebug-location.png
  5. Paste the URL in your favourite download manager. I used wget to download the file like this in a terminal:$ wget "http://enormous_long_youtube_url" -O video.flv
  6. Play with a movie player that understands FLV such as VLC
  7. Enjoy! If you liked this article you can digg it.

Update (03/02/2009)

I found out that this method actually works on most sites with video content. Simply load up the page with the video object and look for the biggest file in the ‘Net’ tab in Firebug (it’s usually several megabytes in size). Then use wget to get the file, but do remember to put quotes (“) around the file because some of the characters in the filename (such as ampersands) might give weird behaviour in a terminal. This method even works on sites that have ‘pre-rolls’ or advertisements. Simply wait until the pre-roll is over and a new large file will appear in the ‘Net’ tab. This is the movie file you need!

And if you want to view the downloaded file (usually a Flash video or ‘flv’ file) on your iPod, iPhone or PSP you can use the excellent Handbrake to convert to those formats.

9 comments on “HOWTO download YouTube videos using Firebug”

Add your comments »

  1. Jan wrote:

    A simplier method is to use http://www.tubedownloader.info/

    It is a free online tool so you don’t have to install any software. On the site you can find also a step-by-step guide and a video tutorial.

    If the video have been uploaded in high quality you can download it also in mp4 format (you can use this on ipod).

    Geplaatst op Tuesday 29-04-2008
  2. aja wrote:

    i use this everytime i want to download video or mp3 youtube or not

    Geplaatst op Thursday 08-05-2008
  3. E wrote:

    This does not work for me, the Terminal does not recognize the wget command.

    Someone told me to try curl instead of wget, but that did not help “Couldn’t resolve host ‘video.flv’”

    Geplaatst op Monday 03-05-2010
  4. Bjt wrote:

    After using firebug for the request structure, how can I write a php code that makes automatic requests and gives me the flv address? Thank you very much

    Geplaatst op Wednesday 19-05-2010
  5. Media Convert « Clark's ICT Blog wrote: Geplaatst op Monday 16-08-2010
  6. Anonymous wrote:

    not working :(
    It says ERROR 403 Forbidden
    wtf ?

    Geplaatst op Monday 06-06-2011
  7. Télécharger une vidéo Youtube et en faire un MP3 | Korben wrote:

    [...] utilitaires qui fonctionnent bien et que j'ai testés ! Et même si je l'adore, je vous épargne la méthode Firebug. :-DTélécharger une vidéo YouTube (et en faire un MP3 Hadopi-proof)Avec votre navigateur Firefox [...]

    Geplaatst op Thursday 15-12-2011
  8. Télécharger une vidéo Youtube et en faire un MP3 | ArabeLife – Site d'actualité geek et tech wrote:

    [...] J’ai reçu plusieurs emails me demandant comment télécharger une vidéo YouTube. Le truc de base quoi… J’en ai déjà parlé à quelques reprises sur le site, mais comme je suis le mec le plus cool de la planète, je vais vous faire un article récap… J’en suis conscient, il existe un paquet d’outils pour récupérer une vidéo YouTube sur son disque dur… Du coup, je vais la jouer clair, net et précis en vous épargnant les outils de seconde zone et en vous donnant uniquement les utilitaires qui fonctionnent bien et que j’ai testés ! Et même si je l’adore, je vous épargne la méthode Firebug. [...]

    Geplaatst op Thursday 15-12-2011
  9. Télécharger une vidéo Youtube et en faire un MP3 « Blog de AnBakkali (test) wrote:

    [...] J’ai reçu plusieurs emails me demandant comment télécharger une vidéo YouTube. Le truc de base quoi… J’en ai déjà parlé à quelques reprises sur le site, mais comme je suis le mec le plus cool de la planète, je vais vous faire un article récap… J’en suis conscient, il existe un paquet d’outils pour récupérer une vidéo YouTube sur son disque dur… Du coup, je vais la jouer clair, net et précis en vous épargnant les outils de seconde zone et en vous donnant uniquement les utilitaires qui fonctionnent bien et que j’ai testés ! Et même si je l’adore, je vous épargne la méthode Firebug. [...]

    Geplaatst op Thursday 15-12-2011

Leave your comments here

» An overview of all articles can be found in the archive.

Hi! I'm Hay. I make art, do projects and blog here. Read more »

Projects

More Hay at...

Archives by month