Youtube-dl download location

I am trying to save youtube videos as MP3 in my downloads folder. However, this leads to saving the files in the same directory as youtube-dl.

youtube-dl --extract-audio --audio-format mp3 --audio-quality=320k https://www.youtube.com/watch?v=VIDEO_ID --output C:/Users/Josue/Downloads/%(title)s.%(ext)s 

I wanted the video to be saved:

C:/Users/Josue/Downloads/videotitle.mp3

however, they are saved as:

C:/youtube-dl/videotitle-videoID.mp3

Am I doing something wrong? I tried reading the documentation on Github , but I was still a little confused.

+7
youtube youtube-dl
source share
4 answers

I needed to put the parameters in the following order:

 youtube-dl --output C:/Users/Josue/Downloads/%(title)s.%(ext)s --extract-audio --audio-format mp3 --audio-quality=320k https://www.youtube.com/watch?v=VIDEO_ID 
+7
source share

Try:

 cd C:\Users\Josue\Downloads C:\youtube-dl\youtube-dl --etc 
+1
source share

This worked for me (for unix environment):

 youtube-dl https://www.youtube.com/watch?v=<video_id> --extract-audio --audio-format mp3 -o '/var/www/html/audio/%(id)s.%(ext)s' 
+1
source share

you can create a configuration file for this, just add these lines to your configuration file (if there is one, if not create it in C: / Users / Josue youtube-dl.conf) -o C:/Users/Josue/Downloads/%(title)s.%(ext)s . Link for details

0
source share

All Articles