Commit a3cd36be by aquilescanta Committed by Oliver Woodman

Update the FFmpeg extension readme to use symlinking

PiperOrigin-RevId: 332012857
parent b866c5e4
Showing with 13 additions and 10 deletions
...@@ -41,26 +41,29 @@ NDK_PATH="<path to Android NDK>" ...@@ -41,26 +41,29 @@ NDK_PATH="<path to Android NDK>"
HOST_PLATFORM="linux-x86_64" 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" && \ cd "<preferred location for ffmpeg>" && \
git clone git://source.ffmpeg.org/ffmpeg 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 * Configure the decoders to include. See the [Supported formats][] page for
with all versions of FFmpeg. We currently recommend version 4.2: details of the available decoders, and which formats they support.
``` ```
cd "${FFMPEG_EXT_PATH}/jni/ffmpeg" && \ ENABLED_DECODERS=(vorbis opus flac)
git checkout release/4.2
``` ```
* Configure the decoders to include. See the [Supported formats][] page for * Add a link to the FFmpeg source code in the FFmpeg extension `jni` directory.
details of the available decoders, and which formats they support.
``` ```
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`, * Execute `build_ffmpeg.sh` to build FFmpeg for `armeabi-v7a`, `arm64-v8a`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment