Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Video downloads incredibly slowly, works fine with the binary #333

Open
mayeaux opened this issue Sep 20, 2020 · 2 comments
Open

Video downloads incredibly slowly, works fine with the binary #333

mayeaux opened this issue Sep 20, 2020 · 2 comments

Comments

@mayeaux
Copy link

mayeaux commented Sep 20, 2020

let arguments = [];
      // set the url for ytdl
      // verbose output
      arguments.push('--format=135');
      console.log(arguments)

      const video1 = youtubedl(youtubeLink,
        // Optional arguments passed to youtube-dl.
        arguments,
        // Additional options can be given for calling `child_process.execFile()`.
        { cwd: __dirname });

This downloads incredibly slowly, whereas calling the binary works in seconds.
Using this upload: https://www.youtube.com/watch?v=AJGPNX9M1bY

Similar to: #251

@atombarel
Copy link

use --http-chunk-size=10M as argument that will fix the issue for bypassing youtube bandwidth throttling

@rzfzr
Copy link

rzfzr commented Feb 14, 2021

I'm not sure that che chunk size is the issue here, I only experience the extreme slow downloads when specifying the '--format='...
This is downloading 4 3 minutes video without specifying, in 22 seconds
image
And this is download the same playlist with the format, with the 10M chunk-size, (tried without, 5M, 1M...), it takes 4 whole minutes, even if the resolution is higher, the behaviour is different...
image
When using the .exec I can download with the same format in half a minute...
But with .exec I haven't managed to use the .on events which I needed, I created this #347

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants