Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-dl.exe only opens a comand promt for a second #30871

Closed
1 task done
Hotlynx16 opened this issue Apr 18, 2022 · 13 comments
Closed
1 task done

youtube-dl.exe only opens a comand promt for a second #30871

Hotlynx16 opened this issue Apr 18, 2022 · 13 comments
Labels

Comments

@Hotlynx16
Copy link

Checklist

  • [ x] I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • [x ] I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE Sorry I am a nube at this but when I double click on youtube-dl.exe it opens up a command prompt for just a second and then goes away. Running windows 10 latest version. Tried as an administrator,no go. What could I be doing wrong? I installed the [Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package (x86) also, no help. I tried running it in compatability mode and ran it as windows 8 and no change.

@Xtendera
Copy link

You need to pass in the video URL as an argument.
EG:
youtube-dl.exe "https://www.youtube.com/watch?v=aqz-KE-bpKQ"

@dirkf
Copy link
Contributor

dirkf commented Apr 18, 2022

Open a terminal, aka command prompt, window. Then run the command from the prompt. Don't just double-click on the yt-dl program icon like Notepad.

https://ss64.com/nt/syntax-cmd.html

@Hotlynx16
Copy link
Author

Thanks for the replies, already tried in a command prompt, see attached pic.
ACMD

@bolshoytoster
Copy link

@Hotlynx16 that's because you're in the wrong folder, you should either cd to where your youtube-dl.exe is or add it's location to your PATH.

It would help if you didn't run the command prompt as admin because then it would start you in your home folder, which is probably closer to where the youtube-dl.exe is.

@Hotlynx16
Copy link
Author

Ok, I did have it in my download folder and tried moving it to my C: drive not in a folder, how about in my user folder??

@bolshoytoster
Copy link

@Hotlynx16 if you open a non-admin command prompt then move the youtube-dl.exe to your user folder you should be able to execute it.

@Hotlynx16
Copy link
Author

Thanks, It seems to be working now!!

@Hotlynx16
Copy link
Author

Well I don't know now, it is taking 8 hrs to download a 1.6 gb file, is that normal? I have 200Mbps download!

@dirkf
Copy link
Contributor

dirkf commented Apr 19, 2022

It is expected, unless you install the latest development version (git master). YT throttles the download speed unless we respond to a challenge in the media link parameters.

Short solution:

  • uninstall the yt-dl that you have
  • install Python
  • run python -m pip install "https://github.com/ytdl-org/youtube-dl/archive/refs/heads/master.zip"
  • you may then be able to run a youtube-dl command or if not use python -m youtube_dl instead.

Instead of python, you may need to say python3.

@Lee-Carre
Copy link

@Hotlynx16

Since much of this isn't about youtube-dl per se, but using a CLI shell in general, then might I recommend reading Introduction to the Command Line, which will explain a whole lot of context for you (along with usage suggestions, and recipes).

When used skillfully, a CLI is much more powerful than a GUI (scripting & automation for the win).


Separately (meta, @ contributors); perhaps a pointer to such a guide needs to be included in the readme, since this seems to be a common stumbling block for unfamiliar newbies (I recall several duplicate tickets).

I've been thinking of overhauling the documentation (e.g. separating the manual from the readme (while leaving a pointer, of course), so I may submit a PR when I have the time to tackle it properly.

@bolshoytoster
Copy link

@Lee-Carre I could probably make a basic GUI for less experienced users using something like tkinter.

@garoto
Copy link

garoto commented Apr 21, 2022

Plenty of youtube-dl GUIs around already.

@dirkf
Copy link
Contributor

dirkf commented Apr 22, 2022

OP's problem was solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants