如何修复下载视频时的错误

如何修复下载视频时的错误

当我尝试下载视频时,出现错误:

youtube-dl http://youtu.be/My2FRPA3Gf8

[youtube] Setting language
[youtube] My2FRPA3Gf8: Downloading video webpage
[youtube] My2FRPA3Gf8: Downloading video info webpage
[youtube] My2FRPA3Gf8: Extracting video information
[youtube] My2FRPA3Gf8: Encrypted signatures detected.

ERROR: unable to download video

答案1

您正在使用过时的 youtube-dl 版本。由于 YouTube 会定期更改其界面,因此 youtube-dl 有自己的更新机制。输入

sudo youtube-dl -U

更新。如果不起作用,请随意提交错误在 youtube-dl 项目中。在使用 调用 youtube-dl 时,不要忘记包含完整输出-v,如下所示:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://youtu.be/My2FRPA3Gf8']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.01.27.2
[debug] Python version 2.6.6 - Linux-2.6.32-274.7.1.el5.028stab095.1-x86_64-with-debian-6.0.8
[debug] Proxy map: {}
[youtube] Setting language
[youtube] My2FRPA3Gf8: Downloading webpage
[youtube] My2FRPA3Gf8: Downloading video info webpage
[youtube] My2FRPA3Gf8: Extracting video information
[youtube] My2FRPA3Gf8: Encrypted signatures detected.
[youtube] encrypted signature length 85 (44.40), itag 22, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 43, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 18, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 5, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 36, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 17, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 137, html5 player ima-en_US-vflkClbFb
[youtube] My2FRPA3Gf8: Downloading js player vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 136, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 135, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 134, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 133, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 160, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 140, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 84 (41.42), itag 171, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 137, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 136, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 135, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 134, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 133, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 160, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 140, html5 player ima-en_US-vflkClbFb
[youtube] encrypted signature length 85 (44.40), itag 171, html5 player ima-en_US-vflkClbFb
[download] Destination: Miley Cyrus - Wrecking Ball-My2FRPA3Gf8.mp4
[download] 100% of 40.76MiB in 00:04

答案2

尝试使用网络浏览器地址栏上显示的链接下载视频……这个帖子可能有助于了解更多..

例如:youtube-dl http://www.youtube.com/watch?v=2leg8mUE9rs而不是你尝试过的

答案3

尝试更新它:

sudo youtube-dl -U

应该可以解决你的问题。

相关内容