19

I want to download any videos form any site using terminal command , I know "youtube-dl" but it doesn't download videos from some sites like khan academy so, what is the best for that ?

Maythux
  • 84,289
user2412540
  • 321
  • 1
  • 3
  • 5

4 Answers4

11

You can also use youtube-dl for that. Just copy the url of the video. In case you don't know about the link. Just right click & see View Frame Info you'll see the video url there. Then

youtube-dl videourl
muru
  • 197,895
  • 55
  • 485
  • 740
K S Verma
  • 161
  • 1
  • 2
  • 7
6

You can use wget for that.

type the following command on terminal:

 apt­-get install wget

Download a single file using wget.

 wget "your video url link"
orvi
  • 363
  • This does not work for videos. Unless there is a special flag which you haven't mentioned. – KeyC0de Jun 08 '17 at 18:19
  • wget should be fine, unless the url is not the video src but the page then it will grab the html page. – Blkc Jun 25 '18 at 17:28
3

You can use movgrab.

To install Movgrab:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install movgrab

Check this for more information

Or you can download the source, extract it and compile it:

 wget https://sites.google.com/site/columscode/files/movgrab-1.2.1.tar.gz
 tar xvf movgrab-1.2.1.tar.gz
 cd movgrab-1.2.1/
 ./configure
 make
 sudo make install
Nmath
  • 12,333
Maythux
  • 84,289
  • when I type this command "sudo apt-get install movgrab" I have this error "E: Unable to locate package movgrab " – user2412540 Feb 01 '14 at 08:52
  • http://www.ubuntuupdates.org/package/webupd8/precise/main/base/movgrab take it from here – Maythux Feb 01 '14 at 08:56
  • have you add the repositoy? – Maythux Feb 01 '14 at 08:56
  • Thanks I installed it successfully but when type command like this "movgrab http://www.youtube.com/watch?v=S3t-5UtvDN0 " to download it take me video but doesn't work . I try several videos and I have the same results – user2412540 Feb 01 '14 at 09:24
  • check the link above.. Its better to insert the link between double quotes – Maythux Feb 01 '14 at 09:29
1

You could use this:

wget --force-yes "'echo$http:url'" 

and it might work fine this way.

Michael
  • 2,499
  • 5
  • 19
  • 24