Tejus Prasad Tejus Prasad - 1 month ago 29
Bash Question

youtube-dl rate limit download speed and auto resume download

i'm 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 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 internet.

Answer

To rate limit and do a continue of a video download i used

youtube-dl -c --rate-limit 100k  www.url.com