-
Notifications
You must be signed in to change notification settings - Fork 822
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
Using audioonly filter slows down download tremendously #294
Comments
i tried running your code it keeps giving me this issue |
This is a bit strange, some formats download way faster than others. Even when they're bigger in filesize. From the following list, the top 3 downloaded super fast. Then, it significantly slows down after that, but not slow enough that it would be slower than it plays.
And I'm not sure there's much we can do about it. Since it still downloads faster than one can play a video, even on 2x, this rate limit could be intended. Although I'm not sure why it only happens for some formats. There is the ratebypass param. There might be more params like it. |
Also, thank you for this code snippet. I'd say it's pretty common, and so I'll add it to the examples folder. |
Alright, cool. @bolahanna44, I'm pretty sure you just need to update ytdl. ( |
Did you also add it to Sorry for such a delayed reply |
adding it to sparams => 403 |
Yes, I also added it to sparams - ^ what they said
to include ratebypass as both a param and a sparam
I'm not entirely sure there's anything we can do about this; it seems this is in place for a reason ¯\(ツ)/¯ |
Yeah. I'll close this and add a note to the readme. |
Hi a question, does anyone tested it with multi requests? |
Hi, I suppose you investigated this, but youtube-dl doesn't seem to suffer from rate limiting. I think you can copy its behaviour in ytdl-core. |
I looked into it a little bit more, and it seems that adding a fetch(u, {headers: {Range: 'bytes=0-10380331'}}) (here, using |
) * Fixed slow speed when downloading Dash format from YouTube * Optimizations to chunked video download * Fixed progress when using `range` with a chuncked download, handled `error` event of `heads` request, corrected the calculation of `end` when using `range` * Optimized code, Added tests for the new code, Added new tests to cover some uncovered statements 🚀 * Fix typo * LET'S GET THIS MERGED 🚀🚀 * More refactoring, Moved `dlChunkSize` under `highWaterMark` in `README`, Added another test and fixed a couple * This took so long 😭 Fixes #660 Fixes #490 Fixes #294 Fixes #327 Fixes #473
When downloading a video and converting to mp3 with ffmpeg, using
filter: 'audioonly'
in the options slows down speeds by magnitudes; ~72 seconds with filter, ~8 with no options, also ~8 withquality: 'highestaudio'
(seems weird considering highestaudio requests just audio, like the filter).This is tested using a 4:13 video on my gigabit ethernet.
code used:
This doesn't really affect me because I can just use
quality: 'highestaudio'
, but it does seem like a weird effect.The text was updated successfully, but these errors were encountered: