Ask Your Question

When I download a video using youtube-dl I can't find it.

asked 2016-06-09 14:32:00 -0500

MohamedAmin gravatar image

how can I download videos using this command in a specific location?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2016-06-09 16:09:45 -0500

florian gravatar image

updated 2016-06-09 16:31:10 -0500

Execute the command from where you want the video to be saved.

Just runls after you ran youtube-dl, and it will show the content of the directory, including the video. They are usually saved as webm, so you can run ls *.webm

Or do you mean you got lost in your directory tree and actually don't know where exactly you executed youtube-dl? Then run pwd to determine your current directory.

edit flag offensive delete link more


The command pwd gives me the directory root.. I used to run commands as a super user.. So when I all the videos I download are in the root folder.. the problem is solved now..

But I don't have the permission to access and delete videos existing in the root folder.. how can I do it?

MohamedAmin gravatar imageMohamedAmin ( 2016-06-09 17:12:16 -0500 )edit

Don't work as root if you don't have to, and don't use sudo if you don't have to. youtube-dl does not need any special permissions, so just stick to your regular user...( then you will always be allowed to access and delete files that belong to user). Now, since the files belong to root, you either use root to access and delete them (e.g. sudo ..., sudo rm ..., su -c "..."), or just change ownership (sudo chown) of the files (after copying them to /home/user/...). Or just re-download them as regular user. Be mindful with use of root!

florian gravatar imageflorian ( 2016-06-09 20:40:09 -0500 )edit

answered 2017-10-14 12:01:17 -0500

run youtube.dl from the location where you want to store the file. for ex "if you want to save the video in the downloads folder then first navigate to the folder by using /home/username/Downloads then run />youtube.dl.

The file will be saved in the downloads folder

edit flag offensive delete link more

answered 2016-06-09 16:56:41 -0500

Rabin gravatar image

It's all about the switches you are using,

to get a list of all the formats you can downloads a file, use the -F options,

$ youtube-dl -F ''
[youtube] xxXXXxxxXXX: Downloading webpage
[youtube] xxXXXxxxXXX: Downloading video info webpage
[youtube] xxXXXxxxXXX: Extracting video information
[youtube] xxXXXxxxXXX: Downloading MPD manifest
[info] Available formats for xxXXXxxxXXX:
format code  extension  resolution note
249          webm       audio only DASH audio   57k , opus @ 50k (48000Hz), 20.03MiB
250          webm       audio only DASH audio   73k , opus @ 70k (48000Hz), 23.11MiB
171          webm       audio only DASH audio   89k , vorbis@128k (44100Hz), 32.04MiB
140          m4a        audio only DASH audio  130k , m4a_dash container, mp4a.40.2@128k (44100Hz), 52.67MiB
251          webm       audio only DASH audio  154k , opus @160k (48000Hz), 58.12MiB
278          webm       192x144    DASH video   98k , webm container, vp9, 13fps, video only, 26.95MiB
160          mp4        192x144    DASH video  121k , avc1.42c00c, 15fps, video only, 46.08MiB
242          webm       320x240    DASH video  181k , vp9, 25fps, video only, 35.46MiB
133          mp4        320x240    DASH video  259k , avc1.4d400d, 25fps, video only, 101.49MiB
243          webm       480x360    DASH video  300k , vp9, 25fps, video only, 61.40MiB
134          mp4        480x360    DASH video  460k , avc1.4d4015, 25fps, video only, 122.71MiB
244          webm       640x480    DASH video  528k , vp9, 25fps, video only, 106.24MiB
135          mp4        640x480    DASH video  880k , avc1.4d401e, 25fps, video only, 264.64MiB
17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
36           3gp        320x240    small , mp4v.20.3,  mp4a.40.2
5            flv        320x240    small , h263, mp3  @ 64k
18           mp4        480x360    medium , avc1.42001E,  mp4a.40.2@ 96k
43           webm       640x360    medium , vp8.0,  vorbis@128k (best)

After you know which format you like to download, use the -f switch to select it and -t to auto-name it.

youtube-dl -tf140 ''
edit flag offensive delete link more

Question Tools


Asked: 2016-06-09 14:32:00 -0500

Seen: 900 times

Last updated: Jun 09 '16