Monday, February 14, 2011

How to download YouTube videos on Linux...

Package required, youtube-dl
    $ sudo apt-get install youtube-dl
Command to download
    $ youtube-dl [options] video_url
If you're getting an error as "ERROR: unable to download video (format may not be available)", get latest version of youtube-dl from github.

Set execute permission
    $ chmod +x youtube-dl-latest
Execute the latest version script to download video
    $ ./youtube-dl-latest [options] video_url
Note:
Tested on Linux Mint 10 64-bit.

Update (13/03/2011)
Found out an easy way. Install video download helper addon for Mozilla Firefox. Works perfectly on both Linux and Windows.

2 comments:

  1. +x yotube-dl-latest didnt work

    ReplyDelete
  2. you mean to say that chmod +x youtube-dl-latest command not working? try execute it with sudo

    sudo chmod +x youtube-dl-latest

    note: "chmod +x" means change the file permission to executable

    ReplyDelete