File tree Expand file tree Collapse file tree 6 files changed +42
-826
lines changed Expand file tree Collapse file tree 6 files changed +42
-826
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "cmdline "]
2
+ path = cmdline
3
+ url = [email protected] :tanakh/cmdline.git
Original file line number Diff line number Diff line change 8
8
9
9
实时版最高支持到 ** 720p30Hz** , 瓶颈是 ** 编码解码速度** .
10
10
11
- #### 环境依赖
11
+ ### Environmental Dependence
12
12
13
- 预处理(字体):
14
- CPP 环境.
15
- Python3 环境.
16
- Pillow 包 (安装方式: ` pip install Pillow ` ).
13
+ #### Preprocessing (fonts)
14
+ CPP and Python3.
15
+ Python module Pillow (` pip install Pillow ` ).
17
16
18
- 编译:
19
- CPP 环境 .
17
+ #### Compile
18
+ Usually, as long as you can compile the CPP .
20
19
21
- 运行:
22
- 命令行工具: ` awk ` ` grep ` ` ffmpeg ` (包括 ` ffmpeg ` ` ffprobe ` ` ffplay ` ).
20
+ #### Run
21
+ ` awk ` ` grep ` ` ffmpeg ` (Include ` ffmpeg ` ` ffprobe ` ` ffplay ` ).
23
22
23
+ ##### Windows
24
+ [ GnuWin] ( http://gnuwin32.sourceforge.net/ )
25
+ [ FFmpeg] ( https://github.com/BtbN/FFmpeg-Builds/releases/tag/latest )
26
+
27
+ ##### Ubuntu / Debian
28
+ ``` sh
29
+ sudo apt update
30
+ sudo apt install ffmpeg
31
+ ```
32
+
33
+ ##### CentOS / RedHat
34
+ ``` sh
35
+ sudo yum update
36
+ sudo yum install ffmpeg
37
+ ```
38
+
39
+ ##### Arch Linux
40
+ ``` sh
41
+ sudo pacman -Syu ffmpeg
42
+ ```
24
43
25
44
#### 编译运行
26
45
27
- Windows
46
+ ##### Windows
28
47
``` sh
29
- clang++ demo .cpp -o demo .exe -w -g -O2 -static-libgcc --target=x86_64-w64-mingw
30
- ./demo
48
+ clang++ ' badapple .cpp' -lpthread -o ' badapple .exe' -w -g -O2 -static-libgcc --target=x86_64-w64-mingw -std=c++20 -finput-charset=UTF-8 -fexec-charset=UTF-8
49
+ ./badapple
31
50
```
32
51
33
- Linux
52
+ ##### Linux
34
53
``` sh
35
- g++ demo. cpp -o demo
36
- ./demo
54
+ g++ ./badapple. cpp -o badapple
55
+ ./badapple
37
56
```
38
57
39
58
#### To do
40
59
41
- 命令行工具
60
+ Nothing to do.
61
+
62
+ Ideas are welcome.
42
63
Original file line number Diff line number Diff line change 1
1
#include " badapple.hpp"
2
- #include " cmdline.h"
2
+ #include " cmdline/cmdline .h"
3
3
4
4
int main (int argc,char **argv){
5
5
cmdline::parser a;
You can’t perform that action at this time.
0 commit comments