youtube-dl

youtube-dl 选项

做~自己de王妃 提交于 2020-03-16 20:21:52
某厂面试归来,发现自己落伍了!>>> Usage: youtube-dl [OPTIONS] URL [URL...] Options: 通用选项: -h, --help 打印帮助文档 --version 打印版本信息 -U, --update 更新到最新版(需要权限) -i, --ignore-errors 遇到下载错误时跳过 --abort-on-error 遇到下载错误时终止 --dump-user-agent 显示当前使用的浏览器(User-agent) --list-extractors 列出所有的提取器(支持的网站) --extractor-descriptions 同上 --force-generic-extractor 强制使用通用提取器下载 --default-search PREFIX 使用此前缀补充不完整的URLs,例如:"ytsearch2 yt-dl" 从youtube搜索并下载两个关于yt-dl视频. 使用"auto"youtube-dl就会猜一个,一般效果等价于"ytsearch"("auto_warning"猜测时加入警告).我已知支持的PREFIX:ytsearch (youtube), ytsearchdate (youtube), yvsearch (yahoo videos), gvsearch (google videos) -

YoutubeDL - How to get a status object after download has completed

♀尐吖头ヾ 提交于 2020-02-19 07:08:15
问题 I'm trying basically to get information out of what seems to be a status object that's hitting the hook in Youtube-DL, and then I'm trying to save it to the db. I've got a 'song' object with attributes such as "filename" I'm trying to save once the download is complete, and maybe even continually update the database with progress. There's four ways I can think of to do this but I've not been able to get them to work Send the my_hook function a db and song object and then save it all in there

youtube-dl下载最高画质 音频 内嵌字幕 MP4 m4a合并 视频列表 教程

偶尔善良 提交于 2020-02-02 00:45:47
文章目录 1. 工具下载 2. Windows 需配置环境变量 3. 验证是否可用 3.1 参数说明 youtube-dl --proxy [ http ( s ) /socks5 ] //user:password@your_proxy.com:port -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 --write-auto-sub --sub-lang zh-Hans --embed-sub -i URL 1. 工具下载 youtube-dl下载 : http://ytdl-org.github.io/youtube-dl/download.html 合并编码器下载 : https://www.ffmpeg.org/download.html 2. Windows 需配置环境变量 把下载的 .exe 文件所在目录 新建 粘贴到系统 PATH 里 3. 验证是否可用 youtube-dl --proxy socks5://127.0.0.1:12345 -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 --write

Node.JS downloading hundreds of files simultaneously

允我心安 提交于 2020-01-23 07:39:51
问题 I am trying to download more that 100 files at the same time. But when I execute the downloading function my macbook freezes(unable to execute new tasks) in windows also no download(but doesn't freeze) and no download progress in both case(idle network). Here is my download module: var express = require('express'); var router = express.Router(); var fs = require('fs'); var youtubedl = require('youtube-dl'); var links = require('../models/Links'); router.get('/', function (req, res, next) {

What's wrong with this youtube-dl automatic script?

你离开我真会死。 提交于 2020-01-15 05:57:50
问题 first of all, I'm quite new with bash scripting and I'm just starting to learn, evidently there's something wrong with this script, but I don't know what it is... I created a bash script to automate downloading videos with youtube-dl: #!/bin/bash echo url: read url export url youtube-dl -f 'bestvideo[height<=360]+worstaudio/worst[height<=360]' $url The idea is that I type in the command line the name of the script, e.g.: "360" and it will ask for a url (e.g.: a Youtube video), I paste it and

How to download 1080p + best audio using youtube-dl?

寵の児 提交于 2020-01-12 05:47:09
问题 I'm trying to download 1920x1080 video with 192kb/s audio but I'm unable to extract both. For example: format code extension resolution note 249 webm audio only DASH audio 51k , opus @ 50k, 600.56KiB 250 webm audio only DASH audio 67k , opus @ 70k, 788.31KiB 251 webm audio only DASH audio 132k , opus @160k, 1.53MiB 140 m4a audio only DASH audio 134k , m4a_dash container, mp4a.40.2@128k, 1.52MiB 171 webm audio only DASH audio 135k , vorbis@128k, 1.53MiB 160 mp4 256x144 144p 110k , avc1.42c00c,

Downloading YouTube to mp3 and writing metadata (artist/song title) to mp3 file using youtube-dl

梦想的初衷 提交于 2020-01-03 18:03:59
问题 I am extracting audio only from youtube videos using youtube-dl . I would like to write the metadata (i.e. Artist Name and Song Title) into the mp3 file after downloading . My attempt to accomplish this starts with this code: @echo off set dl=https://www.youtube.com/watch?v=2Y6Nne8RvaA youtube-dl --metadata-from-title "%(artist)s - %(title)s" --extract-audio --audio-format mp3 -o "%%(title)s.%%(ext)s" --add-metadata %dl% pause The output from this code is: [youtube] 2Y6Nne8RvaA: Downloading

Downloading YouTube to mp3 and writing metadata (artist/song title) to mp3 file using youtube-dl

和自甴很熟 提交于 2020-01-03 18:03:03
问题 I am extracting audio only from youtube videos using youtube-dl . I would like to write the metadata (i.e. Artist Name and Song Title) into the mp3 file after downloading . My attempt to accomplish this starts with this code: @echo off set dl=https://www.youtube.com/watch?v=2Y6Nne8RvaA youtube-dl --metadata-from-title "%(artist)s - %(title)s" --extract-audio --audio-format mp3 -o "%%(title)s.%%(ext)s" --add-metadata %dl% pause The output from this code is: [youtube] 2Y6Nne8RvaA: Downloading

CentOS中yum安装ffmpeg

亡梦爱人 提交于 2020-01-02 18:57:10
0.官网地址 youtube-dl官网: https://yt-dl.org/ 项目地址: https://github.com/rg3/youtube-dl 1.文档简略翻译,具体请以官方文档为准 Usage: youtube-dl [OPTIONS] URL [URL...] Options: 通用选项: -h, --help 打印帮助文档 --version 打印版本信息 -U, --update 更新到最新版(需要权限) -i, --ignore-errors 遇到下载错误时跳过 --abort-on-error 遇到下载错误时终止 --dump-user-agent 显示当前使用的浏览器(User-agent) --list-extractors 列出所有的提取器(支持的网站) --extractor-descriptions 同上 --force-generic-extractor 强制使用通用提取器下载 --default-search PREFIX 使用此前缀补充不完整的URLs,例如:"ytsearch2 yt-dl" 从youtube搜索并下载两个关于yt-dl视频. 使用"auto"youtube-dl就会猜一个,一般效果等价于"ytsearch"("auto_warning"猜测时加入警告).我已知支持的PREFIX:ytsearch (youtube),

youtube-dl 安装和用法

て烟熏妆下的殇ゞ 提交于 2020-01-02 18:55:53
文章转自: https://www.cnblogs.com/yaoz/p/6870187.html 原文作者:人脑之战 一、准备工作 1、下载Python最新版本并安装,配置环境变量。 2、下载FFmpeg最新版本并解压,把解压之后的bin文件夹路径添加到PATH。 二、youtube-dl安装 打开cmd,输入 pip install youtube-dl #安装 pip uninstall youtube-dl #卸载 pip install --upgrade youtube-dl #升级 三、youtube-dl用法 Usage: youtube-dl [OPTIONS] URL [URL...] Options: 通用选项: -h, --help 打印帮助文档 --version 打印版本信息 -U, --update 更新到最新版(需要权限) -i, --ignore-errors 遇到下载错误时跳过 --abort-on-error 遇到下载错误时终止 --dump-user-agent 显示当前使用的浏览器(User-agent) --list-extractors 列出所有的提取器(支持的网站) --extractor-descriptions 同上 --force-generic-extractor 强制使用通用提取器下载 --default-search