查看完整版本 : 在 Ubuntu 上安裝并使用 YouTube-DL

luckisme 2018-8-4 04:54 PM

在 Ubuntu 上安裝并使用 YouTube-DL

[url=https://www.jianshu.com/p/a422272d54e0]https://www.jianshu.com/p/a422272d54e0[/url]
[color=#000000][font=Noto Sans TC, Heiti TC, Microsoft JhengHei, Roboto Sans, Helvetica, Arial, sans-serif]使用[/font][/color][font=Liberation Serif, serif][color=#000000][font=Noto Sans TC, Heiti TC, Microsoft JhengHei, Roboto Sans, Helvetica, Arial, sans-serif]youtube-dl[/font][/color][/font][color=#000000][font=Noto Sans TC, Heiti TC, Microsoft JhengHei, Roboto Sans, Helvetica, Arial, sans-serif]通過[/font][/color][font=Liberation Serif, serif][color=#000000][font=Noto Sans TC, Heiti TC, Microsoft JhengHei, Roboto Sans, Helvetica, Arial, sans-serif]shadowsocks[/font][/color][/font][color=#000000][font=Noto Sans TC, Heiti TC, Microsoft JhengHei, Roboto Sans, Helvetica, Arial, sans-serif]代理下載[/font][/color][font=Liberation Serif, serif][color=#000000][font=Noto Sans TC, Heiti TC, Microsoft JhengHei, Roboto Sans, Helvetica, Arial, sans-serif]youtube[/font][/color][/font][color=#000000][font=Noto Sans TC, Heiti TC, Microsoft JhengHei, Roboto Sans, Helvetica, Arial, sans-serif]視頻[/font][/color]

apt-get install python-pip
pip install youtube-dl
youtube-dl  [URL-youtube的網址替換URL  可以直接訪問youtube ]

youtube-dl --proxy 'socks5://127.0.0.1:1080' [URL-youtube的網址替換URL 大陸或不能直接訪問youtube要用代理的指令]

[font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Youtube-dl[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]是一個自由開源的命令行視頻下載工具,可以用來從[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Youtube[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]等類似的網站上下載視頻,目前它支持的網站除了[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Youtube[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]還有[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Facebook[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]、[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Dailymotion[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]、[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]GoogleVideo[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]、[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Yahoo[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]等等。它搆架於[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]pygtk[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]之上,需要[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Python[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]的支持來運行。它支持很多操作系統,包括[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Windows[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]、[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Mac[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]以及[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Unix[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]。[/size][/font][/color][font=Liberation Serif, serif][size=3][color=#000000][font=Lantinghei SC, Helvetica Neue, Microsoft YaHei, Arial, STHeiti, WenQuanYi Micro Hei, SimSun, sans-serif][size=2]Youtube-dl[/size][/font][/color][/size][/font][color=#000000][font=AR PL UMing TW][size=2]還有斷點續傳、下載整個頻道或者整個播放清單中的視頻、添加自定義的標題、代理等等其他功能。[/size][/font][/color]
[color=#000000][font=AR PL UMing TW][size=2][/size][/font][/color]
[color=#000000][font=AR PL UMing TW][size=2]詳情可以參考[/size][/font][/color]
[color=#000000][font=AR PL UMing TW][size=2]https://linux.cn/article-9244-1.html[/size][/font][/color]
[color=#000000][font=AR PL UMing TW][size=2][/size][/font][/color]

[[i] 本帖最後由 luckisme 於 2018-8-4 04:55 PM 編輯 [/i]]

古斯塔夫二世 2018-9-17 05:23 PM

有版權的歌曲MV用唔到youtube-dl


最好搭配埋ffmpeg / avconv merge audio & video及transcodec
頁: [1]
查看完整版本: 在 Ubuntu 上安裝并使用 YouTube-DL