b站音频怎么下载到本地音乐 b站音频怎么下载到本地( 二 )


如果想事先了解一下视频 , 可以用-i参数查看视频的详细信息(分辨率、大?。? ,无需下载:
$ lux -i "https://www.youtube.com/watch?v=dQw4w9WgXcQ" Site:YouTube youtube.com Title:Rick Astley - Never Gonna Give You Up (Video) Type:video Streams:# All available quality[248]-------------------Quality:1080p video/webm; codecs="vp9"Size:49.29 MiB (51687554 Bytes)# download with: lux -f 248 ...[137]-------------------Quality:1080p video/mp4; codecs="avc1.640028"Size:43.45 MiB (45564306 Bytes)# download with: lux -f 137 ...[398]-------------------Quality:720p video/mp4; codecs="av01.0.05M.08"Size:37.12 MiB (38926432 Bytes)# download with: lux -f 398 ...[136]-------------------Quality:720p video/mp4; codecs="avc1.4d401f"Size:31.34 MiB (32867324 Bytes)# download with: lux -f 136 ...[247]-------------------Quality:720p video/webm; codecs="vp9"Size:31.03 MiB (32536181 Bytes)# download with: lux -f 247 ...前面提到过,lux不仅可以下载视频,还可以下载图片、音频等内容 。下面就来看一下下载图片:
$ lux "https://img9.bcyimg.com/drawer/15294/post/1799t/1f5a87801a0711e898b12b640777720f.jpg"lux doesn't support this URL right now, but it will try to download it directly Site:Universal Title:1f5a87801a0711e898b12b640777720f Type:image/jpeg Stream:[default]-------------------Size:1.00 MiB (1051042 Bytes)# download with: lux -f default "URL" 1.00 MiB / 1.00 MiB [===================================] 100.00% 1.21 MiB/s 0s用-p参数可以下载整个播放列表的内容:
$ lux -i -p "https://www.bilibili.com/bangumi/play/ep198061" Site:哔哩哔哩 bilibili.com Title:Doctor X 第四季:第一集 Type:video Streams:# All available quality[default]-------------------Quality:高清 1080PSize:845.66 MiB (886738354 Bytes)# download with: lux -f default "URL" Site:哔哩哔哩 bilibili.com Title:Doctor X 第四季:第二集 Type:video Streams:# All available quality[default]-------------------Quality:高清 1080PSize:930.71 MiB (975919195 Bytes)# download with: lux -f default "URL"......如果觉得单个下载比较麻烦,想批量下载,只需要后面放多个视频链接即可:
$ lux -i "https://www.bilibili.com/video/av21877586" "https://www.bilibili.com/video/av21990740" Site:哔哩哔哩 bilibili.com Title:【莓机会了】甜到虐哭的13集单集MAD「我现在什么都不想干,更不想看14集」 Type:video Streams:# All available quality[default]-------------------Quality:高清 1080PSize:51.88 MiB (54403767 Bytes)# download with: lux -f default "URL" Site:哔哩哔哩 bilibili.com Title:【莓救了】甜到虐哭?。。」叶拥ゼ疢AD-当熟悉的bgm响起,眼泪从脸颊滑下 Type:video Streams:# All available quality[default]-------------------Quality:高清 1080PSize:77.63 MiB (81404093 Bytes)# download with: lux -f default "URL"当然,如果觉得这样还不够方便,可以把多个视频的链接放到txt文档里,用-F指定文档进行批量下载:
$ lux -F ~/Desktop/u.txt Site:微博 weibo.com Title:在Google,我们设计什么? via@阑夕 Type:video Stream:[default]-------------------Size:19.19 MiB (20118196 Bytes)# download with: lux -f default "URL" 19.19 MiB / 19.19 MiB [=================================] 100.00% 9.69 MiB/s 1s......此外,前面也提到过 , 针对哔哩哔哩视频 , 它还可以通过av和ep号进行下载:
$ lux -i ep198381 av21877586 Site:哔哩哔哩 bilibili.com Title:狐妖小红娘:第79话 南国公主的吃货本色 Type:video Streams:# All available quality[default]-------------------Quality:高清 1080PSize:485.23 MiB (508798478 Bytes)# download with: lux -f default "URL" Site:哔哩哔哩 bilibili.com Title:【莓机会了】甜到虐哭的13集单集MAD「我现在什么都不想干,更不想看14集」 Type:video Streams:# All available quality[default]-------------------Quality:高清 1080PSize:51.88 MiB (54403767 Bytes)# download with: lux -f default "URL"

推荐阅读