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 9 of 9
  1. is there a command for youtube-dl.exe to specify the file download location like youtube-dl.exe --download-location m:\abc.mp4 ?

    youtube-dl gets a mp4 name from half of web address, half of youtube display name, half of URL name and half of youtuber name sometimes
    it is impossible to predict. if it is m:\abc.mp4 always, i can make my players to pick it up automatically.

    or how do i make youtube-dl.exe to play at the moment it completes the download?
    Quote Quote  
  2. Originally Posted by sommers View Post
    is there a command for youtube-dl.exe to specify the file download location like youtube-dl.exe --download-location m:\abc.mp4 ?
    https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-put-downloads-in...pecific-folder


    Originally Posted by sommers View Post
    or how do i make youtube-dl.exe to play at the moment it completes the download?
    You could try with --exec command, e.g.:
    Code:
    youtube-dl "URL_TO_YOUR_VIDEO" --exec ffplay
    Or maybe in a batch first get filename ("ffplay" is an example for a player):
    Code:
    SET url=https://www.youtube.com/watch?v=.........
    FOR /F "tokens=*" %%g IN ('youtube-dl "%url%" --get-filename') do (SET filename=%%g)
    youtube-dl "%url%"
    ffplay "%filename%"
    (If there's trouble with non-ASCII filenames try adding --restrict-filenames option.)
    Quote Quote  
  3. how can i make it overwrite the file?

    youtube-dl.exe "%url%" -o "M:\DDD.MP4"
    ffplay "M:\DDD.MP4"

    -w, --no-overwrites
    --no-post-overwrites

    all i could see was "no overwrite" the file "M:\DDD.MP4"
    Quote Quote  
  4. Try:
    Code:
    SET url=https://www.youtube.com/watch?v=.........
    FOR /F "tokens=*" %%g IN ('youtube-dl "%url%" --get-filename') do (SET filename=%%g)
    DEL "%filename%"
    youtube-dl "%url%"
    ffplay "%filename%"
    (Seems new option --yes-overwrites might come in the future.)
    Quote Quote  
  5. Originally Posted by sommers View Post
    is there a command for youtube-dl.exe to specify the file download location like youtube-dl.exe --download-location m:\abc.mp4 ?
    -o m:\abc.mp4
    Quote Quote  
  6. SET url=https://www.youtube.com/watch?v=bUsS5KUMLvw

    SET P2=C:\Programs\YOUTUBE-DL\WIN10\youtube-dl.exe

    ::%P2% "%url%" --get-filename is slow
    FOR /F "tokens=*" %%g IN ('%P2% "%url%" --get-filename') do (SET filename=%%g)
    ECHO.
    echo "%filename%"
    ECHO.
    M:
    CD M:\

    DEL "%filename%"
    %P2% "%url%"
    m:\ffplay.exe "%filename%"

    --------------------------------------------------------

    FOR /F "tokens=*" %%g IN ('%P2% "%url%" --get-filename') do (SET filename=%%g) gives AAA.webm
    %P2% "%url%" makes AAA.mp4

    is this a bug?
    you can try this address https://www.youtube.com/watch?v=bUsS5KUMLvw
    1st one gives a wrong name or the 2nd makes a wrong video.
    Quote Quote  
  7. Originally Posted by sommers View Post
    FOR /F "tokens=*" %%g IN ('%P2% "%url%" --get-filename') do (SET filename=%%g) gives AAA.webm
    %P2% "%url%" makes AAA.mp4
    Not here. (both get .webm)

    Originally Posted by sommers View Post
    is this a bug?
    No, it's a user error.

    Make sure you are adding all your parameters to both calls so --get-filename returns the same name as what you are actually downloading.
    Quote Quote  
  8. i am facing a dead end regarding drag and drop problem, due to UAC.
    my win10 is impoosible to deal with UAC on, my win8 was ok but now, it istarts showing problems i dont like, i cant access things until UAC is off.

    is there a memory resident software that can automatically sends a web address to a clipboard?
    how about nircmd? or autokey? or a firefox's secret button?
    Quote Quote  
  9. FOR /F "tokens=*" %%g IN ('youtube-dl "%url%" --get-filename') do (SET filename=%%g) doesnt work for unicode names.
    possible scenarios:
    1. windows is a trash.
    2. powershell might do

    youtube-dl "%url%" -o "%filename%" became useless.
    youtube-dl "%url%" auto-creates a unicode name and works.

    i need this kind of format year-month-date-time + normal unicode handling filename.
    i think i can handle finding year-month-date-time with DOS batch commands. but how can i add it to somewhere in youtube-dl "%url% ....
    Quote Quote  



Similar Threads

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