Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running 12.04 ubuntu os, i have downloaded the app and the download to is complete but when i search from dash neither is the file nor the folder of youtube dl turns up. Can anyone help?

share|improve this question

5 Answers 5

There are really 2 questions here:

Why does youtube-dl not feature in Dash?

This is because youtube-dl is run from a Terminal and does not come with icons, desktop files and the like. It is simply run from any Terminal as follows:

youtube-dl [options] url [url...]

Details of the commandline can be easily seen by running:

youtube-dl -h

in any Terminal and experimenting a little to make youtube-dl work as you wish. The 2nd question is:

Where does Youtube dl downloads YouTube files?

By default youtube-dl will download the files in the working directory of the Terminal that you have opened. Usually this is your $HOME environment, but not always. This behavior can be modified in 2 ways:

Easy way: Use the -o option with youtube-dl to manually give a location for the downloaded files:

youtube-dl -o ~/Desktop/%(title)s.%(ext)s 'youtube file url'

and of course substitute the actual url for 'youtube file url'

Slightly harder way: Set a path in the youtube-dl configuration file ~/.config/youtube-dl.conf as follows:

--output "~/Desktop/%(title)s.%(ext)s"

and then all downloaded files will automatically go to your Desktop.

share|improve this answer

If you run youtube-dl like this:

youtube-dl -o "/home/vasa1/Downloads/%(title)s" http://www.youtube.com/watch?v=rnvK2TIhYns

The video should be in /home/vasa1/Downloads. Of course you need to put your username in place of vasa1.

share|improve this answer

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

share|improve this answer

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:

#!/bin/sh
answer=""
tput clear
tput cup 05 10
echo "Give the YouTube URL: \c"
# Here you paste the YT-video-URL by ctrl+shift+V
read answer
# The follwing command will display a list of video quality options to choose from
youtube-dl -F $answer
echo
# Here you give the number shown in first column as per your choice
echo "Select Quality (Choose a number): \c"
read qual
# If you don't want to download and quit the shell, give 99
if [ $qual -ne 99 ]
then
youtube-dl -f $qual -o "/home/Tom/Videos/%(title)s.%(ext)s" $answer
else
exit 0
fi
share|improve this answer

Ubuntu 14 fix of official installation procedure

Create directory here:

sudo mkdir /opt/youtube-dl

Move youtube-dl from installation place:

sudo mv /usr/local/bin/youtube-dl /opt/youtube-dl

Make symlink:

pushd /usr/local/bin/ && sudo ln -s /opt/youtube-dl/youtube-dl

Test symlink:

ls -la youtube-dl 
lrwxrwxrwx 1 root root 26 Oct 16 20:41 youtube-dl -> /opt/youtube-dl/youtube-dl

popd

Test file:

ls -la /opt/youtube-dl/youtube-dl

-rwxrwxrwx 1 root root 639567 Oct 15 12:42 /opt/youtube-dl/youtube-dl

Fix permissions:

sudo chmod 755 /opt/youtube-dl/youtube-dl

Remove old cache:

sudo rm -r /home/<user>/.cache/youtube-dl/

e'voila! youtube-dl without having a need for a sudo in front of it

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.