Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3fd7d214
authored
Mar 27, 2020
by
olly
Committed by
Oliver Woodman
Mar 30, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Consistency fixes for FFmpeg extension instructions
PiperOrigin-RevId: 303316976
parent
c9f28086
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
extensions/ffmpeg/README.md
extensions/ffmpeg/src/main/jni/build_ffmpeg.sh
extensions/ffmpeg/README.md
View file @
3fd7d214
...
@@ -35,22 +35,22 @@ FFMPEG_EXT_PATH="$(pwd)/extensions/ffmpeg/src/main/jni"
...
@@ -35,22 +35,22 @@ FFMPEG_EXT_PATH="$(pwd)/extensions/ffmpeg/src/main/jni"
NDK_PATH="<path to Android NDK>"
NDK_PATH="<path to Android NDK>"
```
```
*
Set
up host platform (
"darwin-x86_64" for Mac OS X):
*
Set
the host platform (use
"darwin-x86_64" for Mac OS X):
```
```
HOST_PLATFORM="linux-x86_64"
HOST_PLATFORM="linux-x86_64"
```
```
*
Configure the formats supported by adapting the following variable if needed
*
Configure the decoders to include. See the
[
Supported formats
][]
page for
and by setting it. See the
[
Supported formats
][]
page for more details of the
details of the available decoders, and which formats they support.
formats.
```
```
ENABLED_DECODERS=(vorbis opus flac)
ENABLED_DECODERS=(vorbis opus flac)
```
```
*
Fetch and build FFmpeg. For example, executing script
`build_ffmpeg.sh`
will
*
Fetch and build FFmpeg. Executing
`build_ffmpeg.sh`
will fetch and build
fetch and build FFmpeg release 4.2 for armeabi-v7a, arm64-v8a and x86:
FFmpeg 4.2 for
`armeabi-v7a`
,
`arm64-v8a`
,
`x86`
and
`x86_64`
. The script can
be edited if you need to build for different architectures.
```
```
cd "${FFMPEG_EXT_PATH}" && \
cd "${FFMPEG_EXT_PATH}" && \
...
@@ -63,7 +63,7 @@ cd "${FFMPEG_EXT_PATH}" && \
...
@@ -63,7 +63,7 @@ cd "${FFMPEG_EXT_PATH}" && \
```
```
cd "${FFMPEG_EXT_PATH}" && \
cd "${FFMPEG_EXT_PATH}" && \
${NDK_PATH}/ndk-build APP_ABI="armeabi-v7a arm64-v8a x86" -j4
${NDK_PATH}/ndk-build APP_ABI="armeabi-v7a arm64-v8a x86
x86_64
" -j4
```
```
## Build instructions (Windows) ##
## Build instructions (Windows) ##
...
...
extensions/ffmpeg/src/main/jni/build_ffmpeg.sh
View file @
3fd7d214
...
@@ -85,7 +85,7 @@ make clean
...
@@ -85,7 +85,7 @@ make clean
--libdir
=
android-libs/x86_64
\
--libdir
=
android-libs/x86_64
\
--arch
=
x86_64
\
--arch
=
x86_64
\
--cpu
=
x86_64
\
--cpu
=
x86_64
\
--cross-prefix
=
"
${
TOOLCHAIN_PREFIX
}
/x86_64-linux-android
16
-"
\
--cross-prefix
=
"
${
TOOLCHAIN_PREFIX
}
/x86_64-linux-android
21
-"
\
--nm
=
"
${
TOOLCHAIN_PREFIX
}
/x86_64-linux-android-nm"
\
--nm
=
"
${
TOOLCHAIN_PREFIX
}
/x86_64-linux-android-nm"
\
--strip
=
"
${
TOOLCHAIN_PREFIX
}
/x86_64-linux-android-strip"
\
--strip
=
"
${
TOOLCHAIN_PREFIX
}
/x86_64-linux-android-strip"
\
--disable-asm
\
--disable-asm
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment