Is there a way to dynamically change aria2c's min split size based on file size?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm newbie and trying to use aria2 as my downloader in android device using termux, so I create this bash script for easy write (I don't know too much).
#!/system/bin/sh
download() aria2c $link
--dir=/sdcard/Download/
--force-sequential=true
--file-allocation=none
--continue=true
--max-concurrent-downloads=16
--min-split-size=20M
--max-connection-per-server=16
--split=16
loop()
echo "Do you wish to download more new files? [1 or 2]"
select yn in "Yes" "No"; do
case $yn in
Yes ) download; loop;
break;;
No ) echo "Exiting...!";
exit;;
esac
done
download
loop
Then the thing is I noticed that depends on file size min split size give different result, when its like 5-100MB file, min split size 1MB gives optimum result for me and for 400+MB file, min split size 20MB gives optimum result while 100-400MB, min split size 5 or 10MB gives optimum result. So is there a way to dynamically change it with bash or maybe other way?
PS:If there is a way to do that, can I implement it to youtube-dl (or any others that can use external downloader) using aria2 as it downloader?
bash aria2
add a comment |Â
up vote
0
down vote
favorite
I'm newbie and trying to use aria2 as my downloader in android device using termux, so I create this bash script for easy write (I don't know too much).
#!/system/bin/sh
download() aria2c $link
--dir=/sdcard/Download/
--force-sequential=true
--file-allocation=none
--continue=true
--max-concurrent-downloads=16
--min-split-size=20M
--max-connection-per-server=16
--split=16
loop()
echo "Do you wish to download more new files? [1 or 2]"
select yn in "Yes" "No"; do
case $yn in
Yes ) download; loop;
break;;
No ) echo "Exiting...!";
exit;;
esac
done
download
loop
Then the thing is I noticed that depends on file size min split size give different result, when its like 5-100MB file, min split size 1MB gives optimum result for me and for 400+MB file, min split size 20MB gives optimum result while 100-400MB, min split size 5 or 10MB gives optimum result. So is there a way to dynamically change it with bash or maybe other way?
PS:If there is a way to do that, can I implement it to youtube-dl (or any others that can use external downloader) using aria2 as it downloader?
bash aria2
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm newbie and trying to use aria2 as my downloader in android device using termux, so I create this bash script for easy write (I don't know too much).
#!/system/bin/sh
download() aria2c $link
--dir=/sdcard/Download/
--force-sequential=true
--file-allocation=none
--continue=true
--max-concurrent-downloads=16
--min-split-size=20M
--max-connection-per-server=16
--split=16
loop()
echo "Do you wish to download more new files? [1 or 2]"
select yn in "Yes" "No"; do
case $yn in
Yes ) download; loop;
break;;
No ) echo "Exiting...!";
exit;;
esac
done
download
loop
Then the thing is I noticed that depends on file size min split size give different result, when its like 5-100MB file, min split size 1MB gives optimum result for me and for 400+MB file, min split size 20MB gives optimum result while 100-400MB, min split size 5 or 10MB gives optimum result. So is there a way to dynamically change it with bash or maybe other way?
PS:If there is a way to do that, can I implement it to youtube-dl (or any others that can use external downloader) using aria2 as it downloader?
bash aria2
I'm newbie and trying to use aria2 as my downloader in android device using termux, so I create this bash script for easy write (I don't know too much).
#!/system/bin/sh
download() aria2c $link
--dir=/sdcard/Download/
--force-sequential=true
--file-allocation=none
--continue=true
--max-concurrent-downloads=16
--min-split-size=20M
--max-connection-per-server=16
--split=16
loop()
echo "Do you wish to download more new files? [1 or 2]"
select yn in "Yes" "No"; do
case $yn in
Yes ) download; loop;
break;;
No ) echo "Exiting...!";
exit;;
esac
done
download
loop
Then the thing is I noticed that depends on file size min split size give different result, when its like 5-100MB file, min split size 1MB gives optimum result for me and for 400+MB file, min split size 20MB gives optimum result while 100-400MB, min split size 5 or 10MB gives optimum result. So is there a way to dynamically change it with bash or maybe other way?
PS:If there is a way to do that, can I implement it to youtube-dl (or any others that can use external downloader) using aria2 as it downloader?
bash aria2
edited Jul 11 at 1:51
muru
33.1k576139
33.1k576139
asked Jul 11 at 1:45
Calendar
12
12
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f454592%2fis-there-a-way-to-dynamically-change-aria2cs-min-split-size-based-on-file-size%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password