Update build_ffmpeg.sh

master
徐灿辉 5 years ago
parent 4cef8dd510
commit c92f37c470
  1. 14
      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=. FFMPEG_PATH=.
NDK_PATH=/Users/xch/Library/Android/sdk/ndk/21.0.5935234 NDK_PATH=/Users/xch/Library/Android/sdk/ndk/21.0.5935234
HOST_PLATFORM="darwin-x86_64" HOST_PLATFORM="darwin-x86_64"
TOOLCHAIN_PREFIX="${NDK_PATH}/toolchains/llvm/prebuilt/${HOST_PLATFORM}/bin"
ENABLED_ENCODERS=(h264 png) ENABLED_ENCODERS=(h264 png)
ENABLED_DECODERS=(h264 png) ENABLED_DECODERS=(h264 png)
ENABLED_MUXERS=(h264 mp4 3gp webm matroska avi image2) ENABLED_MUXERS=(h264 mp4 3gp webm matroska avi image2)
ENABLED_DEMUXERS=(webm matroska concat) ENABLED_DEMUXERS=(webm matroska concat)
ENABLED_PROTOCOLS=(file)
COMMON_OPTIONS=" COMMON_OPTIONS="
--target-os=android --target-os=android
@ -30,7 +32,6 @@ COMMON_OPTIONS="
--enable-shared --enable-shared
--disable-doc --disable-doc
--disable-programs --disable-programs
--disable-everything
--disable-avdevice --disable-avdevice
--disable-postproc --disable-postproc
--disable-symver --disable-symver
@ -40,7 +41,7 @@ COMMON_OPTIONS="
--enable-avresample --enable-avresample
--enable-swresample --enable-swresample
" "
TOOLCHAIN_PREFIX="${NDK_PATH}/toolchains/llvm/prebuilt/${HOST_PLATFORM}/bin"
for encoder in "${ENABLED_ENCODERS[@]}" for encoder in "${ENABLED_ENCODERS[@]}"
do do
COMMON_OPTIONS="${COMMON_OPTIONS} --enable-encoder=${encoder}" COMMON_OPTIONS="${COMMON_OPTIONS} --enable-encoder=${encoder}"
@ -57,8 +58,13 @@ for demuxer in "${ENABLED_DEMUXERS[@]}"
do do
COMMON_OPTIONS="${COMMON_OPTIONS} --enable-demuxer=${demuxer}" COMMON_OPTIONS="${COMMON_OPTIONS} --enable-demuxer=${demuxer}"
done done
cd "${FFMPEG_PATH}" for protocol in "${ENABLED_PROTOCOLS[@]}"
(git -C ffmpeg pull || git clone git://source.ffmpeg.org/ffmpeg ffmpeg) 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 cd ffmpeg
git checkout release/4.2 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