Pages

Thursday, September 22, 2011

Download YouTube Videos in Ubuntu 11.04

More often we need to download videos from YouTube and similar other sites. Ubuntu provides a command-line feature for downloading videos from YouTube.

For this you need to install the package "youtube-dl". This can be done by using the terminal or the synaptic package manager. For installing the package using the terminal, use the command:
      sudo apt-get install youtube-dl
You can install it through the synaptic package manager by searching the package youtube-dl in it.


Make sure you have updated the package after you have installed it. For updating the package, use the command
    youtube-dl  --update
If you get permission error, change the permissions of youtube-dl in /usr/bin using the command:
   chmod 777 youtube-dl
For downloading the YouTube video, open the terminal (press Ctrl+Alt+T) and type the command:
   youtube-dl "URL"
Open the relevant video in the browser and copy the URL from there.

After the download is completed you can find the video in your HOME folder.

Share and learn. If you have some problems related to this post, post it here.

4 comments:

  1. Do you know how to upgarde ubuntu.
    Like upgrading ubuntu 11.04 to 11.10

    ReplyDelete
  2. To upgrade from Ubuntu 11.04 on a desktop system, press Alt+F2 and type in "update-manager -d" (without the quotes) into the command box. Update Manager should open up and tell you: New distribution release '11.10' is available. Click Upgrade and follow the on-screen instructions.

    You can also Press the Superkey (Windows key) to launch the Dash and seach for Update Manager in Ubuntu 11.04 unity. If you are using previous version of Ubuntu go to System -> Administration -> Update Manager. This will launch the update manager.

    If the update manager doesn't shows the upgrade, click the check button to check for new updates. A message will appear informing you of the availability of the new release. Click Upgrade and follow the on-screen instructions.

    ReplyDelete
  3. [youtube] Setting language
    [youtube] 6c9tQ7TfPos: Downloading video webpage
    [youtube] 6c9tQ7TfPos: Downloading video info webpage
    [youtube] 6c9tQ7TfPos: Extracting video information
    [youtube] RTMP download detected
    [download] Destination: 6c9tQ7TfPos.flv
    ERROR: RTMP download detected but "rtmpdump" could not be run
    wat about this error ???

    ReplyDelete
  4. Another option is to use the minitube application, which has a nice download button.

    ReplyDelete