youtube-dl安装

安装youtube-dl
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl

修改权限
sudo chmod a+rx /usr/local/bin/youtube-dl

# 查看视频所以转码格式

youtube-dl -F https://www.youtube.com/watch?v=WuiMJMFygAo 

 

下载视屏 这个下载到了用户下面

youtube-dl https://www.bilibili.com/video/av53424418?spm_id_from=333.334.b_62696c695f646f756761.9

 

youtube-dl "https://www.youtube.com/watch?v=du9UaMd9-JI&list=PL66426CA3AA80A084" -o E:\003_video\002bilibili\000\%(title)s-%(id)s.%(ext)s

youtube-dl https://www.bilibili.com/video/av28477182 -o E:\003_video\002bilibili\001\%(title)s-%(id)s.%(ext)s

youtube-dl https://www.bilibili.com/video/av28477182 -o E:\003_video\002bilibili\001\%(title)s-%(id)s.%(ext)s

 

youtube-dl  https://www.bilibili.com/video/av28477182 

 

上面的可以下载b站,但是只有视屏,没有字幕,下次再弄。

 

https://www.jianshu.com/p/f173cd6bc7da

 

https://blog.csdn.net/abel_qy/article/details/51067964

 

b站做了资源保护

https://blog.csdn.net/jay_wonder/article/details/89365133 

 

 

ffmpeg

安装ffmpeghttps://www.jianshu.com/p/73441acf7815