LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-23-2021, 01:45 PM   #1
sofasurfer
Member
 
Registered: Oct 2003
Posts: 252

Rep: Reputation: 20
How can I speed up my terminal downloads?


I am using youtube-dl to download videos. It is extremely slow, about 49kb/sec. About 0.1% per 3 seconds. What is a good normal speed? How do I tell if I have a pc problem or a connection problem or a server problem?

I have some videos that downloaded at 4mb/sec but other download at 60kb/sec. Why the differance?

Last edited by sofasurfer; 10-23-2021 at 01:59 PM.
 
Old 10-23-2021, 04:51 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,763

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
What is the speed of the ISP connection?
What is the speed and nature of your connection from your client to you gateway device? (router?)
Those things set the upper limit of possible speed. Generally your actual measured speed will never be that high.
 
Old 10-23-2021, 05:15 PM   #3
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,627

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556

It's not you, it's YouTube.

Workaround is to switch to yt-dlp where it has been patched.

(The youtube-dl maintainer is currently too busy, so no idea when it'll get fixed there.)

 
3 members found this post helpful.
Old 10-23-2021, 09:44 PM   #4
sofasurfer
Member
 
Registered: Oct 2003
Posts: 252

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by wpeckham View Post
What is the speed of the ISP connection?
What is the speed and nature of your connection from your client to you gateway device? (router?)
Those things set the upper limit of possible speed. Generally your actual measured speed will never be that high.
I have cable connection with modem wired to computer. Providers speed test tells m I am downloading at 113mbps.
 
Old 10-23-2021, 09:46 PM   #5
sofasurfer
Member
 
Registered: Oct 2003
Posts: 252

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by boughtonp View Post
It's not you, it's YouTube.

Workaround is to switch to yt-dlp where it has been patched.

(The youtube-dl maintainer is currently too busy, so no idea when it'll get fixed there.)

Thanks for this info. I will try yt-dip.
 
Old 10-23-2021, 09:46 PM   #6
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,151

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
Downloading from YouTube is something they actively are trying to stop. The fact that you can at all surprises me. They will find a way to block or at least slow it to a crawl trying to make it not worth it.
 
Old 10-23-2021, 09:49 PM   #7
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,401

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
boughtonp gave you the easy solution. Google has started throttling all the 3rd party youtube players - minitube, freetube, smtube, youtube-dl, etc, due to the way they request the video. That fork of youtube-dl works around the issue by pretending to be android (which apperantly is unaffected). Smart folks are working on calculating the "&n" value that will resolve this correctly.

For youtube-dl,that fork is direct replacement, I installed it and simlinked it to youtube-dl so don't have to think (and so smtube works automatically). For freetube change the api to invidious which has it resolved, until the internal stuff is updated. Minitube still not working for me (built 3.9.1 from source) but author claims he's fixed it in external java-something, dunno, for now I'm avoiding that app, although if I must use it, setting to 480p works. Any of these apps same thing, 480p is fine, 720p+ throttled.

Last edited by enigma9o7; 10-23-2021 at 09:51 PM.
 
Old 10-24-2021, 05:55 AM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,471
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
How can I speed up my terminal downloads?

Use clipgrab: https://clipgrab.org

They regularly update it, and it's usually at least one step ahead.

Last edited by rkelsen; 10-24-2021 at 05:59 AM.
 
Old 10-24-2021, 07:54 AM   #9
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,627

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
Quote:
Originally Posted by enigma9o7 View Post
For youtube-dl,that fork is direct replacement, I installed it and simlinked it to youtube-dl so don't have to think
That depends on your definition of "direct" - some may find it necessary to use "--compat-options youtube-dl" to reverse certain changes.

Quote:
Originally Posted by yt-dlp --help
--compat-options OPTS Options that can help keep compatibility
with youtube-dl or youtube-dlc
configurations by reverting some of the
changes made in yt-dlp. See "Differences in
default behavior" for details
Where "Differences in default behaviour" is not in the help output, but is in the readme - the below quote lists only some of the differences:
Quote:
Originally Posted by https://github.com/yt-dlp/yt-dlp#differences-in-default-behavior
Some of yt-dlp's default options are different from that of youtube-dl and youtube-dlc.
...
The default output template is %(title)s [%(id)s].%(ext)s. There is no real reason for this change. This was changed before yt-dlp was ever made public and now there are no plans to change it back to %(title)s-%(id)s.%(ext)s. Instead, you may use --compat-options filename
The default format sorting is different from youtube-dl and prefers higher resolution and better codecs rather than higher bitrates. You can use the --format-sort option to change this to any order you prefer, or use --compat-options format-sort to use youtube-dl's sorting order
...
--ignore-errors is enabled by default. Use --abort-on-error or --compat-options abort-on-error to abort on errors instead
...
The output of -F is listed in a new format. Use --compat-options list-formats to revert this
...
Youtube live chat (if available) is considered as a subtitle. Use --sub-langs all,-live_chat to download all subtitles except live chat. You can also use --compat-options no-live-chat to prevent live chat from downloading
...
Anyone with scripts or a particular workflow will want to investigate all the changes to determine if they are worth changing their process vs using compat-options.

 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
netinst downloads and apt-get downloads stalling then restarting Frustin Debian 2 03-08-2012 02:36 AM
LXer: How To Speed up Lighttpd / Apache Web Server Access and Downloads LXer Syndicated Linux News 0 04-27-2008 12:30 AM
XP Downloads Fast ... Ubuntu Downloads Slow :( Dinerty Ubuntu 2 07-23-2006 02:31 PM
LXer: Speed up Apache 2.0 web access or downloads with mod_deflate LXer Syndicated Linux News 0 05-26-2006 02:21 AM
Can I speed up my downloads Rutnut Linux - General 7 08-03-2002 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration