youtube-dl download location

Josue Espinosa picture Josue Espinosa · Dec 24, 2014 · Viewed 19.3k times · Source

I am trying to save youtube videos as MP3's in my downloads folder. However, this ends up saving 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 videos to save at:

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

however, they are saving as:

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

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

Answer

Josue Espinosa picture Josue Espinosa · Dec 24, 2014

I needed to put the options 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