mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Update the FFmpeg extension readme to use symlinking
PiperOrigin-RevId: 332012857
This commit is contained in:
parent
b866c5e424
commit
a3cd36beb1
1 changed files with 14 additions and 11 deletions
|
|
@ -41,19 +41,15 @@ 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 && \
|
||||||
* Checkout an appropriate branch of FFmpeg. We cannot guarantee compatibility
|
FFMPEG_PATH="$(pwd)"
|
||||||
with all versions of FFmpeg. We currently recommend version 4.2:
|
|
||||||
|
|
||||||
```
|
|
||||||
cd "${FFMPEG_EXT_PATH}/jni/ffmpeg" && \
|
|
||||||
git checkout release/4.2
|
|
||||||
```
|
```
|
||||||
|
|
||||||
* Configure the decoders to include. See the [Supported formats][] page for
|
* Configure the decoders to include. See the [Supported formats][] page for
|
||||||
|
|
@ -63,6 +59,13 @@ git checkout release/4.2
|
||||||
ENABLED_DECODERS=(vorbis opus flac)
|
ENABLED_DECODERS=(vorbis opus flac)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Add a link to the FFmpeg source code in the FFmpeg extension `jni` directory.
|
||||||
|
|
||||||
|
```
|
||||||
|
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`,
|
||||||
`x86` and `x86_64`. The script can be edited if you need to build for
|
`x86` and `x86_64`. The script can be edited if you need to build for
|
||||||
different architectures:
|
different architectures:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue