VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 11 of 11
  1. 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.
    Quote Quote  
  2. 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.
    Quote Quote  
  3. Originally Posted by sneaker View Post
    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.
    They are similar. I will try your suggestions, Thanks.
    Quote Quote  
  4. 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
    Quote Quote  
  5. 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!
    Quote Quote  
  6. 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.
    Quote Quote  
  7. Originally Posted by sneaker View Post
    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.)
    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?...
    Quote Quote  
  8. youtube-dl.exe -o "c:\myvideos\%%(title)s-%%(id)s.%%(ext)s" -f best https://www.youtube.com/watch?v=oV3MXD7pzkw
    Quote Quote  
  9. Originally Posted by sneaker View Post
    youtube-dl.exe -o "c:\myvideos\%%(title)s-%%(id)s.%%(ext)s" -f best https://www.youtube.com/watch?v=oV3MXD7pzkw
    That's the part I could not understand when I read the documentation page!

    (title)s-
    (id)s.
    (ext)s


    What should I replace for title, id and ext???
    Quote Quote  
  10. You don't replace them. youtube-dl will automatically replace them.
    Quote Quote  
  11. Originally Posted by sneaker View Post
    You don't replace them. youtube-dl will automatically replace them.
    That easy??? Now I got it! THANK YOU so much!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!