I have downloaded youtube-dl
and the video download is complete, but when I
search for the video, I can't seem to find it.
Can anyone help?
I have downloaded youtube-dl
and the video download is complete, but when I
search for the video, I can't seem to find it.
Can anyone help?
There are really two questions here:
1. Why does youtube-dl not feature in Dash?
This is because
youtube-dl
is run from a Terminal window only and does not come with icons, desktop files and the like. It is simply run from any Terminal window as follows:Details of the command line options can be easily seen by running the following command:
Experiment a little to make
youtube-dl
work as you wish.2. Where does Youtube-dl download YouTube files?
By default
youtube-dl
will download the files in the current working directory of the Terminal that you have opened. Usually this is your$HOME
environment, but not always. This behavior can be modified in either of two ways:Use the -o option with
youtube-dl
to manually give a location for the downloaded files:and of course substitute your actual url for 'youtube file url'. This example sends the completed download to your Desktop.
Create a configuration file for
youtube-dl
as follows:Then set a default download location in this file:
With this in place all downloaded files will automatically go to your Desktop.
References:
By default youtube-dl downloads files in the same directory from where you run the command. Mostly it's your home directory. If your name is Tom, then it is /home/Tom. To force it to download elsewhere you should use -o option; and to select quality of video, there is -f option. But how would you know the variety of quality of files. That is achieved by -F option. So combine all these in one shell script, make it executable and put it in a bin directory. And life becomes easy going.
I have written one script for my own use. It works fine. You don't have to worry where all those downloaded files are going. I've chosen ~/Videos directory for downloading YT videos; you can choose any other. Also replace 'Tom' by your name. Here is the script:
If you run
youtube-dl
like this:The video should be in
/home/vasa1/Downloads
. Of course you need to put your username in place ofvasa1
.by default youtube-dl downloads it's files on your home directory to access your downloaded filed please open the terminal change the directory to your home directory user:~$ cd /home/user Notice: user is your user name
Ubuntu 14 fix of official installation procedure
Create directory here:
Move youtube-dl from installation place:
Make symlink:
Test symlink:
Test file:
Fix permissions:
Remove old cache:
e'voila! youtube-dl without having a need for a sudo in front of it
In case you want to run
youtube-dl
in python script, simply use-o
will no effect.Instead you need to use
outtmpl
keyword, e.g.: