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

[solved] requested format not available, could not send HEAD request - yip yip #23225

Closed
Gubith opened this issue Nov 27, 2019 · 0 comments
Closed

Comments

@Gubith
Copy link

@Gubith Gubith commented Nov 27, 2019

Checklist

  • I'm reporting a broken site support issue
  • [ x] I've verified that I'm running youtube-dl version 2019.11.22
  • [ x] I've checked that all provided URLs are alive and playable in a browser
  • [ x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [ x] I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

[debug] Command-line args: ['https://www.youtube.com/watch?v=KTc3PsW5ghQ', '--buffer-size', '16k', '-v', '-wco', '%(title)s__%(id)s__%(resolution)s_%(upload_date)s.%(ext)s', '-ffmpeg-location', 'R:\\tools\\ffmpeg\\bin\\ffmpeg.exe', '--prefer-ffmpeg', '--restrict-filenames', '--write-description', '--ignore-errors', '--write-annotation']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.11.22
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] KTc3PsW5ghQ: Downloading webpage
[youtube] KTc3PsW5ghQ: Downloading video info webpage
[youtube] KTc3PsW5ghQ: Downloading annotations
ERROR: requested format not available

youtube_dl.utils.ExtractorError: requested format not available

[generic] R:\tools\ffmpeg\bin\ffmpeg: Requesting header
WARNING: Could not send HEAD request to R:\tools\ffmpeg\bin\ffmpeg.exe: <urlopen error unknown url type: r>
[generic] R:\tools\ffmpeg\bin\ffmpeg: Downloading webpage
ERROR: Unable to download webpage: <urlopen error unknown url type: r> (caused by URLError('unknown url type: r',))

Description

Error caused by missing - in the switch
I was reading through issues and preparing to post something when I found the solution.
The error looked like something with the a/v formats, but was just a typo. My fault.

Corrected here:
youtube-dl.exe "https://www.youtube.com/watch?v=KTc3PsW5ghQ" --buffer-size 16k -v -wco %(title)s__%(id)s__%(resolution)s_%(upload_date)s.%(ext)s -ffmpeg-location R:\tools\ffmpeg\bin\ffmpeg.exe --prefer-ffmpeg --restrict-filenames --write-description --ignore-errors --write-annotation

BTW
--restrict-filenames also replaces spaces with underscore
The link is Sesame Street: The Martians Discover a Telephone

@Gubith Gubith closed this Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.