Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Linux
Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
Fresh setup, read just now
Will it work on Linux?
The maintainers included init-android-exo.sh. Run it from the cloned folder after reading it.
bash init-android-exo.sh
Also: init-android-j4a.sh, init-android-libsoxr.sh, init-android-libyuv.sh, init-android-openssl.sh
git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android
cd ijkplayer-android
git checkout -B latest k0.8.8
./init-android.sh
cd android/contrib
./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all
cd ..
./compile-ijk.sh all
# Android Studio:
# Open an existing Android Studio project
# Select android/ijkplayer/ and import
#
# define ext block in your root build.gradle
# ext {
# compileSdkVersion = 23 // depending on your sdk version
# buildToolsVersion = "23.0.0" // depending on your build tools version
#
# targetSdkVersion = 23 // depending on your sdk version
# }
#
# If you want to enable debugging ijkplayer(native modules) on Android Studio 2.2+: (experimental)
# sh android/patch-debugging-with-lldb.sh armv7a
# Install Android Studio 2.2(+)
# Preference -> Android SDK -> SDK Tools
# Select (LLDB, NDK, Android SDK Build-tools,Cmake) and install
# Open an existing Android Studio project
# Select android/ijkplayer
# Sync Project with Gradle Files
# Run -> Edit Configurations -> Debugger -> Symbol Directories
# Add "ijkplayer-armv7a/.externalNativeBuild/ndkBuild/release/obj/local/armeabi-v7a" to Symbol Directories
# Run -> Debug 'ijkplayer-example'
# if you want to reverse patches:
# sh patch-debugging-with-lldb.sh reverse armv7a
#
# Eclipse: (obselete)
# File -> New -> Project -> Android Project from Existing Code
# Select android/ and import all project
# Import appcompat-v7
# Import preference-v7
#
# Gradle
# cd ijkplayer
# gradle
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
git clone https://github.com/bilibili/ijkplayer.git cd ijkplayer
In the maintainers' order. Do the README instructions above first — they cover steps outside the terminal.
git checkout -B latest k0.8.8 ./init-android.sh ./compile-ffmpeg.sh clean ./compile-ffmpeg.sh all ./compile-ijk.sh all
No reports for Linux yet.
GitManual AI Agent reads the 1 key files and writes a step-by-step guide for Linux. Once written, it's saved for everyone.