使用 youtube-dl 下载 YouTube 带音轨高清视频

介绍

https://rg3.github.io/youtube-dl/

https://www.yt-dl.org/

youtube-dl is a command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter (2.6, 2.7, or 3.2+), and it is not platform specific. We also provide a Windows executable that includes Python. youtube-dl should work in your Unix box, in Windows or in Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.

  • 命令行程序
  • 可以从 YouTube.com 和其他网站下载视频
  • 需要 Python (2.6, 2.7, or 3.2+)
  • 跨平台 Unix, Windows ,Mac OS X
  • 提供 Windows exe 版本,不需要额外的 Python
  • 开源 可以修改、重新发行、使用

简易使用方法

通用格式

[code]youtube-dl [OPTIONS] URL [URL…][/code]

 

代理参数

支持 HTTP/HTTPS/SOCKS 代理协议

[code]–proxy URL
youtube-dl –proxy socks5://127.0.0.1:1080/ URL [URL…][/code]

 

拿这个举栗子

【初音ミク 1080p HD】 Time Machine タイムマシン 【Project Diva F】

https://www.youtube.com/watch?v=Xy8QNRyWjFs

 

启用代理 下载最佳质量视频和音频

[code]youtube-dl –proxy socks5://127.0.0.1:1080/ -f bestvideo+bestaudio https://www.youtube.com/watch?v=Xy8QNRyWjFs[/code]

WARNING: You have requested multiple formats but ffmpeg or avconv are not installed. The formats won’t be merged.
WARNING: Requested formats are incompatible for merge and will be merged into mkv.

意思是没有安装 ffmpeg 或者 avconv。音视频没有合并。

安装 ffmpeg ,将 ffmpeg/bin 加入 path 环境变量。

关掉 shell ,重新打开以便重载环境变量,重新运行命令。

之后可以得到一个最佳视频+最佳音频的文件。

 

启用代理 查看所有可下载的格式列表

[code]youtube-dl –proxy socks5://127.0.0.1:1080/ -F https://www.youtube.com/watch?v=Xy8QNRyWjFs[/code]

其他参数

Read The Fucking Manual

暂无评论

发送评论 编辑评论


|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇