I'm trying to achieve this, I have a variable 'loc' with the path set to "%userprofile%\Documents\Folder" and I want Youtube-dl to download a complete playlist to that folder.
I've tried many ways, but still can't find a way to make this work.
Since what I am downloading is a playlist, there is no point in specifying the output file name, but is there a way to specify the output directory?
I still can't get templates to work either.
This is the command I used:
yt -f 18 -o "%loc%/%(title)s.%(ext)s" "URL TO PLAYLIST"
It just downloads the first video as (ext)s.mp4 and the second with the same name again overwriting the first. It doesn't consider itself as a template.
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 11 of 11
-
-
Are the titles of all playlist items identical? That would explain why youtube-dl is always trying to save to the same file name with your template. Tried including e.g. %(id)s or %(track)s wildcards? There is a huge list of wildcards.
-
-
Fixed it, Posting this to help anyone else if they face the same problem again.
In windows, you have to use %%(title)s.%%(ext)s rather than %(title)s.%(ext)s
Source: Youtube-dl Page -
Pardon me folks for reviving the thread, I have a very similar problem, perhaps simpler.
I work under Windows.
I need to indicate the destination folder EACH TIME I invoke youtube-dl, for example from a batch file.
If I write C:\programs\youtube-dl\youtube-dl.exe -f best https://www.youtube.com/watch?v=oV3MXD7pzkw
then the best version (option -f best) of the video will be saved to the same directory where youtube-dl is located.
But, if I wish to save the video to C:\MYVIDEOS\ , what that line should look like?
I read and re-read the documentation page many times, but there is always something unclear (also because the most part of the example is Linux-oriented).
Thank you very much! -
Use a configuration file if you always want the same output folder. Otherwise use e.g. -o "c:\myvideos\%(title)s-%(id)s.%(ext)s"
Or put youtube-dl's folder into %PATH% and start the terminal where you want the files. (In explorer hold Shift + Right Click > "open command window here".)
https://github.com/rg3/youtube-dl/blob/master/README.md#configuration
https://github.com/rg3/youtube-dl/blob/master/README.md#output-template
http://adaptivesamples.com/how-to-install-ffmpeg-on-windows/ (how to install ffmpeg with %PATH% method. You can put ffmpeg.exe and youtube-dl.exe together. youtube-dl needs ffmpeg for some operations anyways.)Last edited by sneaker; 1st Sep 2017 at 12:26.
-
Waitwaitwaitwait a second!...
So if I want to save to a different folder for each video, when using a batch file, my original line
C:\programs\youtube-dl\youtube-dl.exe -f best https://www.youtube.com/watch?v=oV3MXD7pzkw
would become... what? Could you please make your suggestion an usable line using the C:\MYVIDEOS\ destination? Please?... -
youtube-dl.exe -o "c:\myvideos\%%(title)s-%%(id)s.%%(ext)s" -f best https://www.youtube.com/watch?v=oV3MXD7pzkw
-
Similar Threads
-
How to download specific parts from youtube videos
By Aashik Alam in forum Video Streaming DownloadingReplies: 7Last Post: 18th Jun 2023, 18:20 -
Youtube playlist to M3U8 Playlist
By candita in forum Video Streaming DownloadingReplies: 2Last Post: 31st May 2017, 03:56 -
no download directory setting - utorrent
By jyeh74 in forum ComputerReplies: 3Last Post: 24th May 2016, 00:14 -
rip a Youtube playlist
By AlanHK in forum Video Streaming DownloadingReplies: 6Last Post: 21st Feb 2014, 07:40 -
MPC-HC and YouTube Playlist
By iNfRaIiI in forum Newbie / General discussionsReplies: 5Last Post: 17th Dec 2013, 20:24