-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Not able to set correct ydl_opts to download a video as mp4 with resolution height as 1080p #32909
Comments
@dirkf I read through the post but I still don't have clarity on how to solve it. They seem to safeguard with Cloudflare, captcha and what not . I am curious if it's so difficult how does y2meta.app guys do it? |
No, I don't know how to solve your problem either because #32905 is still open and it's not clear from your problem explanation whether that's the only problem that you're asking about. Which "They" is seeming to safeguard with [etc]? As to your .app service, maybe they run a headless browser in their server or behind the scenes in your client device to run all the necessary JS challenges. Better ask them. |
You mean y2meta.app either use Selenium/Appium or are doing it entirely from clientside (ie my browser) ?
Let me know if I am missing something . |
@dirkf do you know any good Selenium/Puppeteer open-source project doing the same. Given that youtube-dl is so popular I was under the impression it covers all those use-cases. y2meta.app is not the only youtube downloader site/addon, there seem to a dozen other doing it. It would be strange if there aren't any open-source equivalent of any of them ? |
The browser script just sends the YT URL to the server. Then it's up to them how to generate the video that is presumably then offered in the browser downloads. Generally sites that people want yt-dl to handle have relied on custom video players that don't offer the rightful Save Video As... function (why yt-dl exists), and then by more or less trivial obfuscation of the player, which determined users can often reverse or bypass, or by DRM encryption of the media, which we don't address. Now that almost everyone's client is a supercomputer (by Web 1.0 standards), it's realistic for sites to make their challenges much more complex and correspondingly difficult to solve. This is why a YT video page that could use a plain HTML5 video tag instead sends ~4MB of JS. As linked in #32905, eg, Invidious has a tool for grabbing valid |
I see. |
I use this: https://github.com/FlareSolverr/FlareSolverr - with another app - would this help? |
I presume that the original question has been solved; the remaining issue of 403 on media download is continued in #32905. |
Checklist
Question
To download youtube videos I typically use : https://y2meta.app/en/youtube/rU8_Fg103ZQ
[1080p (.mp4) full-HD] resolution.
Now I am looking to replicate the same vis code.
I realised
"format": "bestvideo[height=1080]/best[height=1080]",
errors out.What doesnt error out is this:
but here I get a resolution with height mere 360p.
PS: I dont care about the audio, a mute mp4 with height = 1080p is enough for me.
EDIT:
I have run with versbose mode the following and it download first fragment without issue but fails to succeeding ones.
The warning:
probably sites like y2meta.app use some sort of proxy setting which I need, What is it ?
The text was updated successfully, but these errors were encountered: