youtube-dl 限速下载速度和自动恢复下载 [英] youtube-dl rate limit download speed and auto resume download

查看:251
本文介绍了youtube-dl 限速下载速度和自动恢复下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 shell 脚本进行视频转换.

I am using a shell script for video conversion.

这是shell脚本

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

由于带宽问题,我不得不降低下载速度.如何限制从 youtube-dl 下载的视频的速度?
以及如何在我的笔记本电脑从睡眠中醒来时使 youtube-dl 自动恢复?youtube-dl 在笔记本电脑休眠时停止下载,即使我的笔记本电脑已连接到互联网,也不会自动重新启动下载.

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.

推荐答案

您可以使用 -r 选项来限制速度.例如

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

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

这会将速度限制为 20K.请注意,速度以每秒字节数指定.

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

这篇关于youtube-dl 限速下载速度和自动恢复下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆