Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

youtube-dl rate limit download speed and auto resume download [closed]

I am using a shell script for video conversion.

this is the shell script

#!/bin/bash #downloading video youtube-dl www.someurl.com #video conversion operations 

Due to bandwidth issues, I have to lower the download speed. how do I limit the speed of video that is being downloaded from youtube-dl?
and how to make a youtube-dl auto-resume when my laptop wakes up from sleep? youtube-dl stops download when laptop sleeps and doesn't auto restart downloading even though my laptop is connected to the internet.

like image 532
Tejus Prasad Avatar asked May 02 '15 05:05

Tejus Prasad


People also ask

Is youtube limiting download speed?

The download stops completely every so often (~10 or so minutes) for about 1 minute, then spikes for a couple of seconds and resumes at the throttled rate. Watching a video in YouTube seems to have no effect; the bandwidth meter shows it streaming the video at higher than the aforementioned limit.

Does youtube-dl still work?

On October 23, 2020, the Recording Industry Association of America (RIAA) issued a takedown notice to GitHub under the Digital Millennium Copyright Act (DMCA), requesting the removal of youtube-dl and 17 public forks of the project.

Do you need ffmpeg for youtube-dl?

Do I need any other programs? youtube-dl works fine on its own on most sites. However, if you want to convert video/audio, you'll need avconv or ffmpeg. On some sites - most notably YouTube - videos can be retrieved in a higher quality format without sound.


1 Answers

You can use -r option to limit the speed. For example

youtube-dl -r 20K www.someurl.com 

This will limit the speed to 20K. Note that speed is specified in bytes per second.

like image 97
Tapan Prakash Avatar answered Sep 19 '22 23:09

Tapan Prakash