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

Faster Downloads #1498

Open
tytyguy opened this issue Sep 24, 2013 · 8 comments
Open

Faster Downloads #1498

tytyguy opened this issue Sep 24, 2013 · 8 comments
Labels

Comments

@tytyguy
Copy link

@tytyguy tytyguy commented Sep 24, 2013

I love youtube-dl! Its amazing... but when trying to download larger files (1 hour or longer) it takes a decent amount of time. Ive heard of aria2 and some wrappers you can use but they haven't seem to been update in quite some time. Is there anything available to make the downloads faster without losing quality?

@wyatt8740
Copy link

@wyatt8740 wyatt8740 commented Oct 2, 2013

If the server is slow to send out packets, then your PC will be slow to recieve them. There's no way I know of around that.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 2, 2013

@wyatt8740 You are assuming that the bottleneck is the local connection. If it is not, using multiple connections in parallel can help.

@dashed
Copy link

@dashed dashed commented Oct 2, 2013

I usually retrieve the url via youtube-dl and pipe it to arai2c. That's what I do.

Something like this can work:

#!/bin/bash

# Input
address=$1

video_filename="$(youtube-dl --get-filename -o '%(title)s.%(ext)s' --restrict-filenames $address)"
video_url="$(youtube-dl --get-url $address)"

# modify aria2c options as needed
aria2c -x16 -s20 -k1M --out=$video_filename $video_url
@rbrito
Copy link
Contributor

@rbrito rbrito commented Oct 18, 2013

@dashed,

You may also need to tell aria2c to use the same headers that youtube-dl uses, or you may get some problems, like trouble with user-agent sniffing (server-side) code.

@dashed
Copy link

@dashed dashed commented Oct 19, 2013

@rbrito I hadn't thought of that. I didn't seem to need it for my use cases. Doesn't seem hard to set. aria2c has --user-agent=<USER_AGENT> which can be set from youtube-dl's --dump-user-agent option.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Oct 27, 2016

For aria2c/axel-like threaded downloading, see #350. Closing as a duplicate.

@yan12125 yan12125 closed this Oct 27, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Oct 27, 2016

Sorry, this issue is kind of different than #350. Reopening.

@Gaploid
Copy link

@Gaploid Gaploid commented Jul 11, 2019

Any news here guys?

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
7 participants
You can’t perform that action at this time.