2
2
3
3
** What's MRFFToolChain?**
4
4
5
- MRFFToolChain products was built for my FFmepg tutorial : https://github.com/debugly/FFmpegTutorial .
5
+ MRFFToolChain products was built for my FFmepg tutorial : [ https://github.com/debugly/FFmpegTutorial ] ( https://github.com/debugly/FFmpegTutorial ) .
6
6
7
7
At present MRFFToolChain contained OpenSSL、FFmpeg 、libyuv、libopus、libbluray、etc.
8
8
@@ -34,6 +34,7 @@ At present MRFFToolChain contained OpenSSL、FFmpeg 、libyuv、libopus、libblu
34
34
│ ├── module-lite.sh
35
35
│ └── module.sh -> module-full.sh
36
36
├── init-any.sh #初始化源码仓库
37
+ ├── download-pre.sh #从github下载预编好的库
37
38
├── init-cfgs #三方库的配置,包括库名,git仓库地址等信息
38
39
│ ├── bluray
39
40
│ ├── dav1d
@@ -53,6 +54,19 @@ At present MRFFToolChain contained OpenSSL、FFmpeg 、libyuv、libopus、libblu
53
54
└── pull-repo-ref.sh
54
55
```
55
56
57
+ ## ## Download Pre Compiled
58
+
59
+ 可以跳过自己编译,直接从github上下载预编译好的库,节省时间!
60
+
61
+ ``` bash
62
+ # 下载 iOS 平台的预编译库
63
+ ./download-pre.sh ios
64
+ # 下载 macOS 平台的预编译库
65
+ ./download-pre.sh macos
66
+ # 下载 ios 和 macOS 平台的预编译库
67
+ ./download-pre.sh all
68
+ ```
69
+
56
70
## Init Lib Repo
57
71
58
72
脚本参数比较灵活,可根据需要搭配使用,常用方式举例:
@@ -132,17 +146,17 @@ cd macos
132
146
133
147
如果 github 上的仓库克隆较慢,或者需要使用内网私有仓库,可在执行编译脚本前声明对应的环境变量!
134
148
135
- | 名称 | 默认仓库 | 使用镜像 |
136
- | --- | --- | --- |
137
- | FFmpeg | https://github.com/bilibili/FFmpeg.git | export GIT_FFMPEG_UPSTREAM=git@xx: yy /ffmpeg.git |
138
- | libYUV | https://github.com/lemenkov/libyuv.git | export GIT_FDK_UPSTREAM=git@xx: yy /libyuv.git |
139
- | OpenSSL | https://github.com/openssl/openssl.git | export GIT_OPUS_UPSTREAM=git@xx: yy /openssl.git |
140
- | Opus | [ Xiph.Org / Opus · GitLab ] ( https://gitlab.xiph.org/xiph/opus.git ) | export GIT_OPUS_UPSTREAM=git@xx: yy /opusfile.git |
141
- | libbluray | [ VideoLAN / libbluray · GitLab ] ( https://code.videolan.org/videolan/libbluray.git ) | export GIT_BLURAY_UPSTREAM=git@xx: yy /libbluray.git |
142
- | dav1d | https://code.videolan.org/videolan/dav1d.git | GIT_DAV1D_UPSTREAM=git@xx: yy /dav1d.git |
149
+ | 名称 | 默认仓库 | 使用镜像 |
150
+ | --------- | ------------------------------------------------ | ----------------------------------------------- --- |
151
+ | FFmpeg | https://github.com/bilibili/FFmpeg.git | export GIT_FFMPEG_UPSTREAM=git@xx: yy /ffmpeg.git |
152
+ | libYUV | https://github.com/lemenkov/libyuv.git | export GIT_FDK_UPSTREAM=git@xx: yy /libyuv.git |
153
+ | OpenSSL | https://github.com/openssl/openssl.git | export GIT_OPUS_UPSTREAM=git@xx: yy /openssl.git |
154
+ | Opus | https://gitlab.xiph.org/xiph/opus.git | export GIT_OPUS_UPSTREAM=git@xx: yy /opusfile.git |
155
+ | libbluray | https://code.videolan.org/videolan/libbluray.git | export GIT_BLURAY_UPSTREAM=git@xx: yy /libbluray.git |
156
+ | dav1d | https://code.videolan.org/videolan/dav1d.git | GIT_DAV1D_UPSTREAM=git@xx: yy /dav1d.git |
143
157
144
158
## Platform Configuration
145
159
146
160
1、如果不同的平台需要编译不同的库,只需要在 apple/compile-cfgs 目录下,建立 list_PLAT.txt 文件即可,PLAT 为对应的平台,比如 ios,macos 等;默认情况下按照 list.txt 里声明的顺序编译各个库。
147
161
148
- 2、ffmpeg 的配置需要分平台指定,只需要在 ffconfig 目录下创建 module_PLAT.sh 文件即可,PLAT 为对应的平台,比如 ios,macos 等;默认情况下根据 module.sh 声明的配置进行编译 ffmpeg。
162
+ 2、ffmpeg 的配置需要分平台指定,只需要在 ffconfig 目录下创建 module_PLAT.sh 文件即可,PLAT 为对应的平台,比如 ios,macos 等;默认情况下根据 module.sh 声明的配置进行编译 ffmpeg。
0 commit comments