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

ERROR: Unsupported URL: https://www.youtube.com/ #26682

Closed
blikoor opened this issue Sep 23, 2020 · 2 comments
Closed

ERROR: Unsupported URL: https://www.youtube.com/ #26682

blikoor opened this issue Sep 23, 2020 · 2 comments
Labels

Comments

@blikoor
Copy link

@blikoor blikoor commented Sep 23, 2020

Description
Youtube-dl is unable to download any videos or live stream videos from YouTube.

To Reproduce

  1. Create batch file (dlstream.bat) containing the following:
    for /f "delims=" %%a in ('youtube-dl -v -f best --hls-prefer-ffmpeg -g https://www.youtube.com/watch?v=9Auq9mYxFEE') do (ffmpeg -i %%a -c copy download.ts)

  2. Run batch file from console in Windows 10.

Expected behavior
Download live stream video from YouTube and saving data to download.ts. This has been tested on Twitch live streams videos and works there as expected, but youtube-dl is unable to download from https:///www.youtube.com. This doesn't work reliably on Facebook either, there are a lot of time code errors during download, resulting in video freezes and the video/audio are out of sync.

Additional context
I have enabled verbose logging to provide some debug information below:
C:\Users\username\Videos>dlstream

C:\Users\username\Videos>for /F "delims=" %a in ('youtube-dl -v -f best --hls-prefer-ffmpeg -g https://www.youtube.com/watch?v 9Auq9mYxFEE') do (ffmpeg -i %a -c copy download.ts )
[debug] System config: []
[debug] User config: ['-o', '%userprofile%Videos']
[debug] Custom config: []
[debug] Command-line args: ['-v', '-f', 'best', '--hls-prefer-ffmpeg', '-g', 'https://www.youtube.com/watch?v', '9Auq9mYxFEE']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2020.09.20
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 2020-09-20-git-ef29e5bf42-full_build-www.gyan.dev, ffprobe 2020-09-20-git-ef29e5bf42-full_build-www.gyan.dev
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: https://www.youtube.com/
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\common.py", line 532, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpksi3o1r1\build\youtube_dl\extractor\generic.py", line 3382, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.youtube.com/

@blikoor blikoor changed the title Unsupported URL: https://www.youtube.com/ ERROR: Unsupported URL: https://www.youtube.com/ Sep 23, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 23, 2020

[debug] Command-line args: ['-v', '-f', 'best', '--hls-prefer-ffmpeg', '-g', 'https://www.youtube.com/watch?v', '9Auq9mYxFEE']
https://www.youtube.com/watch?v

= in batch must be escaped with ^.

@dstftw dstftw closed this Sep 23, 2020
@dstftw dstftw added the invalid label Sep 23, 2020
@blikoor
Copy link
Author

@blikoor blikoor commented Sep 23, 2020

Escaping does not work, this error is the result: "delims^= was unexpected at this time"

So I simply used youtube-dl without the batch (youtube-dl -v https://www.youtube.com/watch?v=9Auq9mYxFEE) and it worked. I'm unsure how to fix the batch file for a little automation later on, but that is okay.

Thank you for the reply
Kind regards

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
2 participants
You can’t perform that action at this time.