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?
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 9 of 9
-
-
https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-put-downloads-in...pecific-folder
You could try with --exec command, e.g.:
Code:youtube-dl "URL_TO_YOUR_VIDEO" --exec ffplay
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%"
-
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" -
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%"
-
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. -
-
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? -
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% ....
Similar Threads
-
Simple Youtube-dl .Bat file for easy download
By WinSpirit in forum Video Streaming DownloadingReplies: 12Last Post: 19th Jul 2024, 15:13 -
how can i make drag an drop batch file for a YOUTUBE-DL.exe?
By sommers in forum Newbie / General discussionsReplies: 6Last Post: 30th Jan 2018, 22:12 -
Amazon Instant Vid download location in Android?
By WBFAir in forum Video Streaming DownloadingReplies: 1Last Post: 2nd Apr 2016, 11:28 -
How to download all youtube videos listed in a .txt file
By Username2013 in forum Video Streaming DownloadingReplies: 3Last Post: 22nd Mar 2016, 16:03 -
Inability to download Youtube video by Youtube Downloader HD
By jgp123 in forum Video Streaming DownloadingReplies: 9Last Post: 17th Nov 2015, 05:03