1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
简单的 B 站视频下载工具 支持免登录下载 B 站高清视频
在使用前,您需要安装[FFmpeg](https://ffmpeg.org/)命令行工具,并将其二进制程序添加至环境变量中。
对于 Windows 系统,您可以使用[Scoop](https://scoop.sh/)。
```shell
scoop install ffmpeg
```
对于 macOS 系统,您可以使用[HomeBrew](https://brew.sh/)。
```shell
brew install ffmpeg
```
在 Linux 系统上,您也可以使用您喜爱的方式进行安装。
请前往[Release页面](https://github.com/lfcypo/biliget/releases)下载符合您平台的安装包。
本项目已发布至[crates.io](https://crates.io/),您可以使用以下命令进行安装
```shell
cargo install biliget
```
请参考 [编译与构建](https://github.com/lfcypo/biliget?tab=readme-ov-file#%E7%BC%96%E8%AF%91%E4%B8%8E%E6%9E%84%E5%BB%BA)。
默认模式:自动合并音视频为一个`.mp4`视频文件
```shell
./biliget [url]
```
仅下载音频:保存为`.wav`音频文件
```shell
./biliget [url] -a
```
指定下载位置:可以指定目标路径或目标文件名 支持绝对路径和相对路径。
程序会自动根据指定的后缀推断多媒体文件格式。
```shell
./biliget [url] -o [filename or path]
```
GitHub Action 会自动编译构建并发布至[Release页面](https://github.com/lfcypo/biliget/releases)
如您需要自行编译,请参考以下指南:
请确保您安装并配置了[Rust](https://rust-lang.org/)语言开发工具链。
```shell
git clone https://github.com/lfcypo/biliget.git
cd biliget
cargo build --release
```
然后 您可以在`target/release/`目录下找到您编译的可执行文件 `biliget`
- --
```text
zsh: parse error near `&'
```
请把`[url]`的部分使用英文双引号包裹
请参照[使用前准备](https://github.com/lfcypo/biliget?tab=readme-ov-file#%E4%BD%BF%E7%94%A8%E5%89%8D)正确安装`ffmpeg`
- -