学习足迹 2355 次阅读 约 2 分钟

编译ijkplayer

环境准备

需要准备java环境、ndk环境。

克隆仓库

https://github.com/bilibili/ijkplayer

选择最新的稳定版本,如k0.8.8

init-android

执行init-android.sh

init-android-openssl

执行 init-android-openssl.sh

选择配置

// 支持较多格式(完全编译)
cd config
rm module.sh
ln -s module-default.sh module.sh

// 支持较少格式,包含hevc
cd config
rm module.sh
ln -s module-lite-hevc.sh module.sh

// 支持较少格式
cd config
rm module.sh
ln -s module-lite.sh module.sh

编译openssl

cd android/contrib
./compile-openssl.sh clean
./compile-openssl.sh all

编译 ffmpeg

./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all

编译ijkplayer

./compile-ijk.sh all
完成后的so在:ijkplayer-android/android/ijkplayer

评论已关闭