As I'm trying to get some high quality audio files of some ambient background in order to use in my music, the first I read was to use youtube-dl to download and ffmpeg to convert to a format FL Studio can actually import (damn you, aac and m4a).
Now, following the instructions I simply downloaded youtube-dl for Windows and then tried to call it via cmd/powershell (I tried both). All it says is this:
Die Benennung "youtube-dl" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
This roughly translates to:
The name "youtube-dl" was not recognized as name of a cmdlet, a function, a script or executable file. Please check the spelling of the name and whether the path is correct and retry the process.
Here's the command I used:
youtube-dl -f bestaudio (video url) -o /Download/(filename).mp4
I did google for this error but I didn't find anything specific to youtube-dl. I added the .exe file to the PATH variable and tried the command youtube-dl as well as youtube-dl.exe, which both throws the same error. I have tried to install c++ redistributable 2010 with the installer telling me that I already have a newer version installed. I also tried installing the python interpreter despite the site actually mentioning that it's not needed for the windows exe.
This is highly frustrating, how can I get this program to run?
EDIT:
After trying to run the command as .\youtube-dl.exe I'm getting the following result (translation by myself):
Error trying to execute program "youtube-dl.exe": Access deniedAt line:1 character:1 + .\youtube-dl.exe -f bestaudio (video link) -o /(filen... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~. At Line:1 Character:1 + .\youtube-dl.exe -f bestaudio (video link) -o /(filen... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed
cmdshell when you changed thePATH? – DavidPostill Jun 24 '18 at 18:05PATHvariable be irrelevant anyway? – Otto Abnormalverbraucher Jun 24 '18 at 18:38PATH, but even after changing that to the folder the exe resides in I get the same error. Also, as I mentioned I already tried navigating to the folder in the cmd and then running the exe, which should work. – Otto Abnormalverbraucher Jun 24 '18 at 18:55dirand confirm you see the exe in there. If so then in that same pathyouand press tab and confirm it's resolving to the exe in case there's another file with that same name but a different extension since it's the.exe—perhaps it's trying to use another file in that path since you don't specify the extension. Probably won't help but simply enough to try I suppose. – Vomit IT - Chunky Mess Style Jun 24 '18 at 19:08.\youtube-dl.exewhich did cause a different exception. I will edit my answer as the text is probably too long for a comment – Otto Abnormalverbraucher Jun 24 '18 at 21:30C:\youtube-dland then drop all the app files in there and then run from that directory and see what happens. Just do the CD to it or whatever to see if that resolves. It seems the context of the execution of that command from within the folder it resides now is denied. What is the full path where the youtube-dl executable resides now on your PC? – Vomit IT - Chunky Mess Style Jun 25 '18 at 13:50E:\Media\YoutubeConvert\youtube-dl.exeon my tower andD:\Downloads\youtube-dl.exeon my notebook. I may try your suggestion after work. – Otto Abnormalverbraucher Jun 25 '18 at 14:04