Update build_ffmpeg.sh

master
徐灿辉 5 years ago
parent 4cef8dd510
commit c92f37c470
  1. 12
      build_ffmpeg.sh
  2. BIN
      library/libs/arm64-v8a/libavcodec.so
  3. BIN
      library/libs/arm64-v8a/libavfilter.so
  4. BIN
      library/libs/arm64-v8a/libavformat.so
  5. BIN
      library/libs/arm64-v8a/libavresample.so
  6. BIN
      library/libs/arm64-v8a/libavutil.so
  7. BIN
      library/libs/arm64-v8a/libswresample.so
  8. BIN
      library/libs/arm64-v8a/libswscale.so
  9. BIN
      library/libs/armeabi-v7a/libavcodec.so
  10. BIN
      library/libs/armeabi-v7a/libavfilter.so
  11. BIN
      library/libs/armeabi-v7a/libavformat.so
  12. BIN
      library/libs/armeabi-v7a/libavresample.so
  13. BIN
      library/libs/armeabi-v7a/libavutil.so
  14. BIN
      library/libs/armeabi-v7a/libswresample.so
  15. BIN
      library/libs/armeabi-v7a/libswscale.so
  16. BIN
      library/libs/x86/libavcodec.so
  17. BIN
      library/libs/x86/libavfilter.so
  18. BIN
      library/libs/x86/libavformat.so
  19. BIN
      library/libs/x86/libavresample.so
  20. BIN
      library/libs/x86/libavutil.so
  21. BIN
      library/libs/x86/libswresample.so
  22. BIN
      library/libs/x86/libswscale.so

@ -18,11 +18,13 @@
FFMPEG_PATH=.
NDK_PATH=/Users/xch/Library/Android/sdk/ndk/21.0.5935234
HOST_PLATFORM="darwin-x86_64"
TOOLCHAIN_PREFIX="${NDK_PATH}/toolchains/llvm/prebuilt/${HOST_PLATFORM}/bin"
ENABLED_ENCODERS=(h264 png)
ENABLED_DECODERS=(h264 png)
ENABLED_MUXERS=(h264 mp4 3gp webm matroska avi image2)
ENABLED_DEMUXERS=(webm matroska concat)
ENABLED_PROTOCOLS=(file)
COMMON_OPTIONS="
--target-os=android
@ -30,7 +32,6 @@ COMMON_OPTIONS="
--enable-shared
--disable-doc
--disable-programs
--disable-everything
--disable-avdevice
--disable-postproc
--disable-symver
@ -40,7 +41,7 @@ COMMON_OPTIONS="
--enable-avresample
--enable-swresample
"
TOOLCHAIN_PREFIX="${NDK_PATH}/toolchains/llvm/prebuilt/${HOST_PLATFORM}/bin"
for encoder in "${ENABLED_ENCODERS[@]}"
do
COMMON_OPTIONS="${COMMON_OPTIONS} --enable-encoder=${encoder}"
@ -57,7 +58,12 @@ for demuxer in "${ENABLED_DEMUXERS[@]}"
do
COMMON_OPTIONS="${COMMON_OPTIONS} --enable-demuxer=${demuxer}"
done
cd "${FFMPEG_PATH}"
for protocol in "${ENABLED_PROTOCOLS[@]}"
do
COMMON_OPTIONS="${COMMON_OPTIONS} --enable-protocol=${protocol}"
done
cd "${FFMPEG_EXT_PATH}"
(git -C ffmpeg pull || git clone git://source.ffmpeg.org/ffmpeg ffmpeg)
cd ffmpeg
git checkout release/4.2

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save