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

download too slow #232

Closed
tomhunts opened this issue Jan 18, 2022 · 3 comments
Closed

download too slow #232

tomhunts opened this issue Jan 18, 2022 · 3 comments

Comments

@tomhunts
Copy link

When I use the v2 version of the code to download the video, I found that the speed is very slow just at 60kb/s.
And when I watch youtube videos normally, 1080p can play very smoothly
The same video I use python code to download is still very fast at 2MB/s.

It means that there is no problem with my network,
Is there a corresponding solution to this problem? thanks

@and1truong
Copy link

and1truong commented Feb 4, 2022

Found this fast: https://github.com/yt-dlp/yt-dlp

I have same issue:

$ youtubedr download -q 720p rFejpH_tAHM -v
2022/02/04 18:20:38 GET https://youtube.com/embed/rFejpH_tAHM?hl=en
2022/02/04 18:20:39 200 OK
2022/02/04 18:20:39 GET https://youtube.com/s/player/0cd11746/player_ias.vflset/en_US/base.js
2022/02/04 18:20:39 200 OK
2022/02/04 18:20:39 POST https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8
2022/02/04 18:20:39 200 OK
2022/02/04 18:20:39 download to directory .
2022/02/04 18:20:39 Video 'dotGo 2015 - Rob Pike - Simplicity is Complicated' - Quality '720p' - Codec 'video/mp4; codecs="avc1.64001F, mp4a.40.2"'
2022/02/04 18:20:39 Download to file=dotGo 2015 - Rob Pike - Simplicity is Complicated.mp4
2022/02/04 18:20:39 GET https://rr1---sn-uxanug5-cox6.googlevideo.com/videoplayback?expire=1643984439&ei=1-H8Yd2iGsfB9QOY1I2QDA&ip=2001%3A8003%3A6411%3Ac000%3Af55b%3A6a20%3Ad130%3Ae1c2&id=o-AMGkowNqkEMUizPk7Pcmj3CIMUQy-36hQqToDgex60qe&itag=22&source=youtube&requiressl=yes&mh=jf&mm=31%2C29&mn=sn-uxanug5-cox6%2Csn-ntqe6n76&ms=au%2Crdu&mv=m&mvi=1&pl=39&initcwndbps=1678750&vprv=1&mime=video%2Fmp4&ns=S9MKoY4KhHfSrqRz1hgvEY8G&ratebypass=yes&dur=1391.107&lmt=1609912099489007&mt=1643962388&fvip=1&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=TlYVIEaiQ9DYekEdQ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAJmgTfjfjeGZr0KQoQAPy_23ngCwURk4-n5X3cqz575XAiB6x5PN5TNIe5VAJyrohEVuEevQCA3uVDKMYzi0pi8zOQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgHjplH402sGZs6PdDf4O8U-m_4Q90Ysp8njRgDnrYB7QCIES_mzAPOFEIbMVAgfcY1xFFOw2y8S3LKjQ1jUl9Dh9L
2022/02/04 18:20:39 200 OK
0.00 b / 0.00 b 0 % [--------------------------------------------------------------] 0s ] 0.00 b/s

Paste "GET" url to browser, it works perfectly.

@tienlx97
Copy link

tienlx97 commented Mar 27, 2022

@vmintam
Copy link

vmintam commented Mar 28, 2022

very slow. its the same with me. Only about 50kb.

corny pushed a commit that referenced this issue Apr 25, 2022
The n-param potentially requires processing even if there's no
deciphering needed.
Refactor decipherURL to reuse decryptNParam on any url.

closes #230 #232
@corny corny closed this as completed in 46ebe0a Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants