Skip to content

Commit

Permalink
Update the FFmpeg extension readme to use symlinking
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 332012857
  • Loading branch information
AquilesCanta authored and ojw28 committed Sep 16, 2020
1 parent fe2bc7b commit d1ce5f5
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions extensions/ffmpeg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,29 @@ NDK_PATH="<path to Android NDK>"
HOST_PLATFORM="linux-x86_64"
```

* Fetch FFmpeg:
* Fetch FFmpeg and checkout an appropriate branch. We cannot guarantee
compatibility with all versions of FFmpeg. We currently recommend version 4.2:

```
cd "${FFMPEG_EXT_PATH}/jni" && \
git clone git://source.ffmpeg.org/ffmpeg ffmpeg
cd "<preferred location for ffmpeg>" && \
git clone git://source.ffmpeg.org/ffmpeg && \
cd ffmpeg && \
git checkout release/4.2 && \
FFMPEG_PATH="$(pwd)"
```

* Checkout an appropriate branch of FFmpeg. We cannot guarantee compatibility
with all versions of FFmpeg. We currently recommend version 4.2:
* Configure the decoders to include. See the [Supported formats][] page for
details of the available decoders, and which formats they support.

```
cd "${FFMPEG_EXT_PATH}/jni/ffmpeg" && \
git checkout release/4.2
ENABLED_DECODERS=(vorbis opus flac)
```

* Configure the decoders to include. See the [Supported formats][] page for
details of the available decoders, and which formats they support.
* Add a link to the FFmpeg source code in the FFmpeg extension `jni` directory.

```
ENABLED_DECODERS=(vorbis opus flac)
cd "${FFMPEG_EXT_PATH}/jni" && \
ln -s "$FFMPEG_PATH" ffmpeg
```

* Execute `build_ffmpeg.sh` to build FFmpeg for `armeabi-v7a`, `arm64-v8a`,
Expand Down

0 comments on commit d1ce5f5

Please sign in to comment.