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.
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.
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 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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With