Skip to content

Commit

Permalink
feat: Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
biezhihua committed Mar 28, 2019
1 parent d47cfbc commit a5670a4
Showing 1 changed file with 75 additions and 21 deletions.
96 changes: 75 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ Help you quickly build your own FFmpeg static library.
* MacOS (Need Install Python)
* Ubuntu (Need Install Ptyhon)

# My Environment
# Feature

* MacOS 10.14.2
* NDK **r13c** **r14b** **r15c** **r16b** **r17c** **r18b** **r19**
* Arch - armv7a/armv8a/x86/x86_64 (only support)
* FFmpeg 4.1
* OpenSSL 1.1.1B
* Support NDK **r13c** **r14b** **r15c** **r16b** **r17c** **r18b** **r19**
* Support Arch - armv7a/armv8a/x86/x86_64

NDK Download URLhttps://developer.android.com/ndk/downloads/revision_history
NDK Download:https://developer.android.com/ndk/downloads/revision_history

# Setup The Environment

Expand All @@ -26,32 +27,57 @@ export ANDROID_SDK=<your sdk path>
export ANDROID_NDK=<your ndk path>
```

# Init OpenSSL Repository Setting

```
./init-android-openssl all (armv7a armv8a x86 x86_64)
```

# Compile OpenSSL Library

```
./compile-android-openssl all (armv7a armv8a x86 x86_64)
```

# Check OpenSSL Product

```
./build/openssl-armv7a/
./build/openssl-armv8a/
./build/openssl-x86/
./build/openssl-x86_64/
```

# Init FFmpeg Repository Setting

```
./init-android all (armv7a armv8a x86 x86_64)
./init-android-ffmpeg all (armv7a armv8a x86 x86_64)
```

# Init FFmpeg Configure Module

* If you prefer more codec/format
```
./init-config all
./init-config-ffmpeg all
```

* If you prefer less codec/format for smaller binary size
```
./init-config lite
./init-config-ffmpeg lite
```

* If you prefer less codec/format for smaller binary size (include hevc function)
```
./init-config litehevc
./init-config-ffmpeg litehevc
```

* If you perfer min code/format for minimun binary size ( only include basic function)
```
./init-config min
./init-config-ffmpeg min
```

# Compile Android FFmpeg Library
Expand Down Expand Up @@ -105,11 +131,12 @@ Android下FFmpeg自动构建工具。
* MacOS (请提前安装Python)
* Ubuntu (请提前安装Ptyhon)

# 我的环境
# 特性

* MacOS 10.14.2
* NDK **r13c** **r14b** **r15c** **r16b** **r17c** **r18b** **r19**
* 架构 - armv7a/armv8a/x86/x86_64 (目前仅支持这些)
* FFmpeg 4.1
* OpenSSL 1.1.1B
* 支持 NDK **r13c** **r14b** **r15c** **r16b** **r17c** **r18b** **r19**
* 支持 架构 - armv7a/armv8a/x86/x86_64 (目前仅支持这些)

NDK下载地址:https://developer.android.com/ndk/downloads/revision_history

Expand All @@ -121,35 +148,61 @@ export ANDROID_SDK=<your sdk path>
export ANDROID_NDK=<your ndk path>
```

# 初始化OpenSSL仓库设置

```
./init-android-openssl all (armv7a armv8a x86 x86_64)
```

# 编译OpenSSL库

```
./compile-android-openssl all (armv7a armv8a x86 x86_64)
```

# 查看OpenSSL产物

```
./build/openssl-armv7a/
./build/openssl-armv8a/
./build/openssl-x86/
./build/openssl-x86_64/
```


# 初始化FFmpeg仓库设置

```
./init-android all (armv7a armv8a x86 x86_64)
./init-android-ffmpeg all (armv7a armv8a x86 x86_64)
```

# 初始化FFmpeg配置模块

* 如果你需要更多的编码和格式
```
./init-config all
./init-config-ffmpeg all
```

* 如果你需要更少的编码和格式,以减少库大小
```
./init-config lite
./init-config-ffmpeg lite
```

* 如果你需要更少的编码和格式,以减少库大小(包含HEVC功能)
```
./init-config litehevc
./init-config-ffmpeg litehevc
```

* 如果你需要最少的编码和格式,最小的库大小(仅支持支持功能)
```
./init-config min
./init-config-ffmpeg min
```

# 编译库
# 编译FFmpeg库

* 克隆项目
```
Expand All @@ -167,7 +220,7 @@ cd FFmpegBuildTool
./compile-android-ffmpeg.sh armv7a
```

# 查看产物
# 查看FFmpeg产物

```
./build/ffmpeg-armv7a/
Expand All @@ -177,6 +230,7 @@ cd FFmpegBuildTool
./build/ffmpeg-x86/
./build/ffmpeg-x86_64/
```

# 注意
Expand Down

0 comments on commit a5670a4

Please sign in to comment.