youtube-dl Webui

codeAmberKe -
youtube-dl Webui
Youtube-dl Webui

image-20210801125127442
image-20210801125127442

introduction

this article have introduce two way for Youtube-dl download by a web,which respectively download in client and download in server. You can choose according to your demand.

client download webprecondition

php(extension:intl,mbstring,gmp),nginx/apache,python,youtube-dl

download

#cd /{yourserver directory}

#git clone https://github.com/Rudloff/al...

install composer in local directory

#php -r "copy('https://install.phpcomposer.c...', 'composer-setup.php');"

#php composer-setup.php

#composer install

then composer will auto install all the dependencies.

#chmod 770 templates_c/

config

cp config/config.example.yml config/config.yml

then you can visti yourserver/alltube to download videos and choose the format you want

image-20210801125127442

server download web

use youtube-dl to download video without command.

precondition

python,ffmpeg

install

#git clone https://github.com/d0u9/youtu...

#cd /youtube-dl-webui

#python setup.py install

run

There is a config.json file in the directory,you can use it as default configuration file,but I recommend you edit it. Because the default has a proxy option and only download bestaudio. Blow is my configuration file you can refer to.

{
    "general": {
        "download_dir": "/home/youtube-dl",
        "db_path": "/tmp/youtube_dl_webui.db",
        "log_size": 10
    },
    "server": {
        "host": "0.0.0.0",
        "port": "5000"
    },
    "youtube_dl": {
        "format": "bestvideo+bestaudio",
        "ratelimit": 10971520,
        "outtmpl": "%(title)s.%(ext)s"
    }
}

#youtube-dl-webui -c {Configuration file}

visit the host:port

image-20210801131439713

特别申明:本文内容来源网络,版权归原作者所有,如有侵权请立即与我们联系(cy198701067573@163.com),我们将及时处理。

Tags 标签

youtubelinuxdownload

扩展阅读

加个好友,技术交流

1628738909466805.jpg