【问题标题】:Getting YouTube-dl to archive a whole channel, without download videos让 YouTube-dl 归档整个频道,无需下载视频
【发布时间】:2020-07-18 12:24:52
【问题描述】:

我正在尝试让 Youtube-dl 制作指定频道上所有视频的存档列表。我已经通过以最低质量下载视频来做到这一点,但我想知道是否有一种方法可以获取 id 并将其存档 - 无需下载 4500 多个视频

这是我目前拥有的。它将视频下载到单独的文件夹中。最后的 ffmpeg 位可能不需要,但它是我知道有效的另一个命令留下的。

youtube-dl.exe --download -i -f worst --download-archive Archive.txt https://www.youtube.com/channel/UCH-_hzb2ILSCo9ftVSnrCIQ -o "E:\Video\YTDL\%(title)s.%(ext)s" --ffmpeg-location "%CD%\ffmpeg\bin" 我尝试了 --simulate 和 --skip-download,但这只会导致 cmd 中没有任何事情发生......

【问题讨论】:

  • 作为一种解决方法,您可以打印通道的 JSON。它不会存档,但似乎无法在不下载的情况下存档视频...

标签: youtube youtube-dl


【解决方案1】:

有效的 Archive.txt 文件包含单词“youtube”,后跟视频 ID。每行一个视频...

youtube AB1cD2eF3Gh
youtube iJ4KL5MN6OP
youtube QR7StUvWxYz

您可以使用...从频道/播放列表中提取视频 ID 列表

youtube-dl --get-id <channel/playlist url>

...然后创建您自己的 Archive.txt 文件,其中包含“youtube

然后正常的“--download-archive Archive.txt”就可以了。

【讨论】:

  • 这似乎不是一个编程问题。您可能想尝试堆栈交换而不是堆栈溢出
【解决方案2】:

你可以试试:

youtube-dl --skip-download --write-description --write-info-json --write-annotations --write-thumbnail --write-all-thumbnails --write-sub --write-auto-sub &lt;url&gt;

地点:

--write-description              Write video description to a .description file
--write-info-json                Write video metadata to a .info.json file
--write-annotations              Write video annotations to a .annotations.xml file
--write-thumbnail                Write thumbnail image to disk
--write-all-thumbnails           Write all thumbnail image formats to disk
--write-sub                      Write subtitle file
--write-auto-sub                 Write automatically generated subtitle file (YouTube only)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-12
    • 2015-12-23
    • 2011-02-10
    相关资源
    最近更新 更多