22
33** What's MRFFToolChain?**
44
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 ) .
66
77At present MRFFToolChain contained OpenSSL、FFmpeg 、libyuv、libopus、libbluray、etc.
88
@@ -34,6 +34,7 @@ At present MRFFToolChain contained OpenSSL、FFmpeg 、libyuv、libopus、libblu
3434│ ├── module-lite.sh
3535│ └── module.sh -> module-full.sh
3636├── init-any.sh #初始化源码仓库
37+ ├── download-pre.sh #从github下载预编好的库
3738├── init-cfgs #三方库的配置,包括库名,git仓库地址等信息
3839│ ├── bluray
3940│ ├── dav1d
@@ -53,6 +54,19 @@ At present MRFFToolChain contained OpenSSL、FFmpeg 、libyuv、libopus、libblu
5354 └── pull-repo-ref.sh
5455```
5556
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+
5670## Init Lib Repo
5771
5872脚本参数比较灵活,可根据需要搭配使用,常用方式举例:
@@ -132,17 +146,17 @@ cd macos
132146
133147如果 github 上的仓库克隆较慢,或者需要使用内网私有仓库,可在执行编译脚本前声明对应的环境变量!
134148
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 |
143157
144158## Platform Configuration
145159
1461601、如果不同的平台需要编译不同的库,只需要在 apple/compile-cfgs 目录下,建立 list_PLAT.txt 文件即可,PLAT 为对应的平台,比如 ios,macos 等;默认情况下按照 list.txt 里声明的顺序编译各个库。
147161
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