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

parallel download #8546

Closed
bregon opened this issue Feb 13, 2016 · 9 comments
Closed

parallel download #8546

bregon opened this issue Feb 13, 2016 · 9 comments

Comments

@bregon
Copy link

@bregon bregon commented Feb 13, 2016

Is it possible to download from multiple url's at the same time?

@Hrxn
Copy link

@Hrxn Hrxn commented Feb 17, 2016

Well, you can use aria2c to download, like this:

--external-downloader COMMAND    Use the specified external downloader.
                                 Currently supports
                                 aria2c,axel,curl,httpie,wget
@bregon
Copy link
Author

@bregon bregon commented Feb 17, 2016

If I have 1000 vimeo url's in a .txt file, can I download them 10 at a time?

The external downloaders seem to want to download one url from multiple sources or in multiple segments.

@Hrxn
Copy link

@Hrxn Hrxn commented Feb 17, 2016

Uh, yes, youtube-dl hands only one URL at a time over to external downloaders like aria2c.

So, you can't do it this way. But you can always use Batchfiles (*.bat|*.cmd) (Shell scripts on Unixoids, etc.) to start youtube-dl. And you can run multiple batch files in parallel

@bregon
Copy link
Author

@bregon bregon commented Feb 17, 2016

That is what I have been doing until now. Very CPU intensive.

Would it be possible to add this feature to youtube-dl?

@Hrxn
Copy link

@Hrxn Hrxn commented Feb 17, 2016

Very CPU intensive?

How many instances of youtube-dl were up and running?
You shouldn't use more than a couple, for example.

I don't really see the point. For sites like YouTube and Vimeo, for example, my download bandwidth is already saturated, you can't further 'accelerate' a download. I don't know about your internet connection, but I think it's highly unlikely that it works in any different way.

@bregon
Copy link
Author

@bregon bregon commented Feb 17, 2016

On my 2.3 GHz dual-core laptop I can only run about 20.

Is it possible to modify youtube-dl to handle multiple downloads?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Feb 17, 2016

Duplicate of #3746.

@yan12125 yan12125 closed this Feb 17, 2016
@Hrxn
Copy link

@Hrxn Hrxn commented Feb 17, 2016

Is it possible to modify youtube-dl to handle multiple downloads?

Yes, theoretically. But it's not feasible, it would require to rewrite significant parts of the program.
You can download in parallel when running youtube-dl in parallel.

But this doesn't help against sites that limit download rates somewhat, keep that in mind..

@alexanderluna
Copy link

@alexanderluna alexanderluna commented Sep 26, 2019

My bandwidth is bigger than the download speed I get from most sites. When I batch download using the -a flag it caps at around 1mb/s. Using xargs I was able to use my full bandwidth:

xargs -n 1 -P 10 youtube-dl < my_video_links.txt

My bandwidth caps at around 10mb/s so this downloads 10 videos at the same time each caping at around 1-1.2mb/s. Hope this is helpful for someone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.