Managed to get it to work with newest youtube-dl today with this commands below using -u -p --cookie "cookie.txt" 'youtubelink' in that order.
youtube-dl -u 'YoutubeLOGIN' -p 'App password' --cookie "youtube.com_cookies.txt" 'YOUTUBE URL LINK'
I used the plugin for chrome called Get cookies.txt and exported the txt file and since i had first age restrictions and after that HTTP errors not using both cookie and login i used both now and app password. Worked with VPN + WebRTC Blocking + HTML5 Geo blocking etc (Not sure if that matters but im a rookie when it comes to this.
First cookie file did not work at all and for some reason my command line was like this when it worked, with 2 factor login enabled.I was logged in having the video right in front me of me if that matters idk.
I didnt use 'or " other than for cookie, and mock me, i don't know why and when to use really but i learned rather use it than not. I opened the PowerShell from the folder i just extracted/downloaded the cookie txt file from and used with help from the thread creator something that worked, thanks. I'm close to buying something like 4k downloader, but it's a fight against the system we take here, ain't paying. Im happy i got the 60 fps vp9 version been trying so long. My video was blocked worldwide, private etc.
thanks community, i still don't know what im doing im copying a bit from everybody until a problem is fixed. so again if someone thinks "hes stupid" you are right i figured there must be more people like me struggling so if i can help i try.
Sherlockholmesguessing here but the age restriction is the main problem not the cookie if i have to guess.
youtube-dl -u EMAIL -p APPPASSWORD --cookie "youtube.com_cookies.txt" YOUTUBE-URL
youtube-dl
cannot handle these requests I believe. (the uploader of the video has put the age-limits on the video; youtube handles it via sign-in)--cookies
(and a path to a cookie) option See for instance this video youtube.com/watch?v=XgnwCQzjau8 "Ubuntu is detecting these flags and enforcing them on Ubuntu users" Sorry?! Ubuntu does nothing here. It is youtube.youtube-dl
doesn't download via your browser; it goes to youtube directly; so you need to sign in viayoutube-dl
which is something it currently can't handle (or couldn't last time I tried to use it, which was awhile ago & looked through the docs/code etc) Refer to @Rinzwind's comment... it maybe possible (it's been >12 months since I last tried; maybe longer & it'll have changed)