r/youtubedlโ€ข
liamcoded

youtube-dl not working in virtual machine, VM VirtualBox

SOLVED : a copy at apt repo is outdated Use curl, or wget, or pip

Thank you all for suggestions!๐Ÿ˜

Original post :

Any solution, or is this happening to others?

I keep getting a following message -

[youtube] ZZ5Lpw0-An4: Downloading webpage

ERROR: ZZ5Lpw0-An4: YouTube said: Unable to extract video data

But no problem with yt-dlp

Posted Feb 11, 2022, 4:52 PM UTC ยท edited

25
werid๐ŸŒ๐Ÿ’ก Erudite MODโ€ข

add --verbose to command and post complete output.

your youtube-dl might be outdated.

the video example you've shown is an unavailable video, even with yt-dlp...

weird@one:~/test % youtube-dl -F ZZ5Lpw0-An4
[youtube] ZZ5Lpw0-An4: Downloading webpage
ERROR: Video unavailable
weird@one:~/test % yt-dlp -F ZZ5Lpw0-An4
[youtube] ZZ5Lpw0-An4: Downloading webpage
[youtube] ZZ5Lpw0-An4: Downloading android player API JSON
ERROR: [youtube] ZZ5Lpw0-An4: Video unavailable
6
liamcodedOPโ€ข

Strange I was able to download it earlier with yt-dlp

And I've just installed both, it was for class demo, during class time.

But here is the output

zb@zb-VirtualBox:~$ youtube-dl -F --verbose
https://www.youtube.com/watch?v=ZZ5LpwO-An4
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', '--verbose',
'https://www.youtube.com/watch?v=ZZ5LpwO-An4'\]
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 3.8.10 (CPython) -
Linux-5.13.0-28-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] ZZ5LpwO-An4: Downloading webpage
ERROR: ZZ5LpwO-An4: YouTube said: Unable to extract video data
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line
797, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py",
line 530, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py",
line 1788, in _real_extract
raise ExtractorError(
youtube_dl.utils.ExtractorError: ZZ5LpwO-An4: YouTube said: Unable to
extract video data

1
werid๐ŸŒ๐Ÿ’ก Erudite MODโ€ข

update youtube-dl, it's very outdated, almost 2 years

5
liamcodedOPโ€ข

Thank you. I guess apt repo is way outdated.

2
AutoModeratorMODโ€ข

POSSIBLE COMMON ISSUE: It looks like you are posting about the youtube-dl error, "Unable to extract video data". This may be because you are trying to download a video that is "age-gated" (requires verification of your age based on your YouTube account). A work-around to this issue is to use the '--cookies' option with a valid export of your cookies in a Netscape-compatible format.


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2