Tuesday, November 20, 2012

How To Download Youtube On Linux



Sometimes I want to watch some videos from Youtube, but I can't access to internet any time. So I need to download the videos to watch it later. There is several ways to download Youtube videos. And here I show you how to do.

I'm using LinuxMint 14 "Nadia" RC and I believe it will be the same thread for another Debian based distros like Ubuntu. LinuxMint was based on Ubuntu.

1. Minitube

With this application, you can stream the videos without opening your browser, and you can directly download the videos.

How to install :

Minitube was include on LinuxMint 14 package, so you can searching this application on Software Manager. Or you can download it from terminal with this command :

sudo add-apt-repository ppa:nilaimogard/webupd8
sudo apt-get update
sudo apt-get install minitube

You can find MiniTube application on Menu -> Sound  & Video

2. Via Terminal with youtube-dl

I really like to use this method because it was so "Linux". That's what a different between Windows and Linux. While you decide to stuck your life on linux machine, you can't leave the terminal console like you overlook command prompt on Windows.

First thing you have to do is make sure you have installed "youtube-dl" on your linux OS. If you haven't, you can follow this instruction:

Open Terminal console and type

$ sudo apt-get install youtube-dl

Ones you have completed the installation, you can download videos from Youtube using this method. First you need to open your favorite videos from browser like Firefox or Chrome to find the url address. Then you can copy the following address or type it on terminal.

This some explanation how to use youtube-dl in common:

Open the terminal console from Menu -> Terminal

Type this command :

$ youtube-dl -f 22 -t http://www.youtube.com/watch?v=_776faHD4oo&feature=fvst

-f is mean format and 22 was a code for a video format you want to download.
-t is mean the downloaded video file named using title of the video.

You can found the list of video format code from Wikipedia. The codes are on itag value column.

Your downloaded videos will be stored at your Home folder.

Note : After the installation, you need to update youtube-dl application using this command:

$ sudo youtube-dl --update


That's all.

Filled Under:

0 comments:

Post a Comment