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 ?

2
  • +1 for calrifying what you need and stating what you know
    – Maythux
    Feb 1, 2014 at 8:51
  • The main issue is not to download the video file (wget can do) but it's to find the url to download the video file.
    – Inglebard
    Sep 17, 2015 at 9:25

4 Answers 4

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
1
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"
2
  • This does not work for videos. Unless there is a special flag which you haven't mentioned.
    – KeyC0de
    Jun 8, 2017 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, 2018 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
5
  • when I type this command "sudo apt-get install movgrab" I have this error "E: Unable to locate package movgrab " Feb 1, 2014 at 8:52
  • ubuntuupdates.org/package/webupd8/precise/main/base/movgrab take it from here
    – Maythux
    Feb 1, 2014 at 8:56
  • have you add the repositoy?
    – Maythux
    Feb 1, 2014 at 8:56
  • Thanks I installed it successfully but when type command like this "movgrab 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 Feb 1, 2014 at 9:24
  • check the link above.. Its better to insert the link between double quotes
    – Maythux
    Feb 1, 2014 at 9:29
1

You could use this:

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

and it might work fine this way.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .