我想配置youtube-dl,使它只在mp3中下载音频文件。在它的帮助中,它显示了以下一行:
You can configure youtube-dl by placing default arguments (such as
--extract-audio --no-mtime to always extract the audio and not copy
the mtime) into /etc/youtube-dl.conf and/or ~/.con‐
fig/youtube-dl.conf."
但是在我的
我已经使用程序 Youtube -dl下载了Youtube播放列表,我选择了分别下载视频和音频,我现在有一个文件夹,里面有他们相应的音频,我希望与ffmpeg合并。
我需要使用批处理脚本来完成此操作,但问题是youtube-dl在原始文件的标题之后添加了感谢信,这样视频的名称与相应的音频没有相同的名称,文件名如下所示:
First title in the playlist 5J34JG.mp4
First title in the playlist H3826D.webm
Second title in the playlist 3748JD.mp4
Second title in the
我正在使用youtube-dl和ffmpeg创建一个youtube下载器和转换器(供个人使用)。我正在尝试下载一个视频,并将其转换为MP4。
我遇到的问题是,youtube-dl下载的视频格式多种多样。有没有一种方法可以下载视频,然后告诉FFMPEG转换它,而不知道当前的文件类型?
我尝试使用*通配符,但这导致了错误。
@echo off
title youtube downloader
set /p name= URL:
echo Select a type. (vid/mp3/mp4)
set /p type=
IF /i "%type%"=="vid"
我制作了一个python脚本,用youtube-dl下载一些视频。当我运行脚本时,它会下载第一个视频,然后继续打印其他所有视频已经下载的视频。
下面是脚本:
import re , os
formula = re.compile(r'https.+')
os.chdir('/home/ubuntu/Desktop/TO MASTER THIS VACATION')
urls = []
with open('Python necessary videos.txt' , 'r') as f:
for line in f:
youtube-dl的正常输出如下
[download] Downloading video #3 of 33
[youtube] WbWb0u8bJrU: Downloading webpage
[youtube] WbWb0u8bJrU: Downloading video info webpage
[youtube] WbWb0u8bJrU: Extracting video information
[download] Resuming download at byte 107919109
[download] Destination: Lec 6.mp4
[download] 86
我正在使用python,并试图使youtube-dl在下载youtube视频音频的10秒后超时,但是堆栈溢出或其他地方的答案都没有对我有效。我通常下载不到10分钟的视频,而大多数时候,youtube-dl会立即下载它们,但我试图为youtube-dl下载一段短视频的时候创造一个解决方案。我的基本策略如下:
def download(): # downloads yt video audio via os.command and youtube-dl
...
p = Process(target=download())
p.start()
Timer(10, p.kill)
当我运行这
我一直在使用youtube-dl从YouTube下载视频,但突然之间,它停止了工作:
youtube-dl "http://www.youtube.com/watch?v=wglrcytdE9Y&feature=related"
[youtube] Setting language
[youtube] wglrcytdE9Y: Downloading video webpage
[youtube] wglrcytdE9Y: Downloading video info webpage
[youtube] wglrcytdE9Y: Extracting video in
我正在尝试将YouTube播放列表下载到本地计算机,但在尝试从播放列表下载第一个视频后,youtube-dl不断返回以下错误:
ExtractorError: Could not find JS function u'xm'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with t