question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to watch age restricted videos.

See original GitHub issue

I have only downloaded youtube-dl.exe which I use together with mpv sometimes to watch youtube videos. The thing is that when I try to watch an age restricted video, I get this response:

C:\Users\user>mpv https://www.youtube.com/watch?v=9roObG3yq-8
[ytdl_hook] ERROR: Sign in to confirm your age
[ytdl_hook] This video may be inappropriate for some users.
[ytdl_hook] youtube-dl failed: unexpected error occurred
Failed to recognize file format.

Exiting... (Errors when loading file)

I’ve seen some people suggest cookies… But would there be a point in adding cookies if the age restriction system needs an irl identity just to let you watch the vid?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
ronkwanncommented, Aug 18, 2021

extract a cookie from your chrome or firefox as mentioned below; https://github.com/blackjack4494/yt-dlc/issues/7#issuecomment-716038621

and use the --cookies argument, works for me

3reactions
Rainyancommented, Aug 17, 2021

I’ve moved on to use the (in my opinion) more active youtube-dl fork, yt-dlp.

With yt-dlp installed, this works for me (force-seekable allows you to skip around the video):

REM Pipe to stdout ("-o -"), and then read from it with mpv ("mpv -")
yt-dlp -o - https://www.youtube.com/watch?v=foo |mpv --force-seekable=yes -
Read more comments on GitHub >

github_iconTop Results From Across the Web

I cant watch age restricted content even though ... - Google Help
Few things. You need to be signed into a YouTube account tied to a Google account with an age listed as 18 or...
Read more >
Can't Watch a YouTube Video Due to YouTube Age Restriction?
You can now bypass YouTube age restriction and watch any NSFW YouTube video. Restricted Mode on YouTube is bound to each device, so...
Read more >
How to Turn Off Age Restriction on Youtube and Unblock Videos
Disable Safety Mode · Go to the YouTube homepage and click your profile icon at the top of the screen. · Go to...
Read more >
Google, what have you done. Can't watch age restricted ...
Can't watch age restricted videos on youtube anymore. ... Ended Up just downloading every YouTube video and watching it offline, ...
Read more >
How to Bypass YouTube Age Restriction - Alphr
1. Open the YouTube app on your iPhone. 2. Check to make sure you're logged into your account. You should see your account...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found