Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

ijkplayer

> 开发工具
Open source

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.

33.2K stars0 likes7 views
WebsiteGitHub

About

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.

ijkplayer

Platform Build Status
Android
iOS

Video player based on ffplay

Download

  • Android:
  • Gradle
…
  • iOS
  • in coming...

My Build Environment

  • Common
  • Mac OS X 10.11.5
  • Android
  • NDK r10e
  • Android Studio 2.1.3
  • Gradle 2.14.1
  • iOS
  • Xcode 7.3 (7D175)
  • HomeBrew
  • ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • brew install git

Latest Changes

  • NEWS.md

Features

  • Common
  • remove rarely used ffmpeg components to reduce binary size config/module-lite.sh
  • workaround for some buggy online video.
  • Android
  • platform: API 9~23
  • cpu: ARMv7a, ARM64v8a, x86 (ARMv5 is not tested on real devices)
  • api: MediaPlayer-like
  • video-output: NativeWindow, OpenGL ES 2.0
  • audio-output: AudioTrack, OpenSL ES
  • hw-decoder: MediaCodec (API 16+, Android 4.1+)
  • alternative-backend: android.media.MediaPlayer, ExoPlayer
  • iOS
  • platform: iOS 7.0~10.2.x
  • cpu: armv7, arm64, i386, x86_64, (armv7s is obselete)
  • api: MediaPlayer.framework-like
  • video-output: OpenGL ES 2.0
  • audio-output: AudioQueue, AudioUnit
  • hw-decoder: VideoToolbox (iOS 8+)
  • alternative-backend: AVFoundation.Framework.AVPlayer, MediaPlayer.Framework.MPMoviePlayerControlelr (obselete since iOS 8)

NOT-ON-PLAN

  • obsolete platforms (Android: API-8 and below; iOS: pre-6.0)
  • obsolete cpu: ARMv5, ARMv6, MIPS (I don't even have these types of devices…)
  • native subtitle render
  • avfilter support

Before Build

bash
# install homebrew, git, yasm
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
brew install yasm

# add these lines to your ~/.bash_profile or ~/.profile
# export ANDROID_SDK=<your sdk path>
# export ANDROID_NDK=<your ndk path>

# on Cygwin (unmaintained)
# install git, make, yasm
  • If you prefer more codec/format
bash
cd config
rm module.sh
ln -s module-default.sh module.sh
cd android/contrib
# cd ios
sh compile-ffmpeg.sh clean
  • If you prefer less codec/format for smaller binary size (include hevc function)
bash
cd config
rm module.sh
ln -s module-lite-hevc.sh module.sh
cd android/contrib
# cd ios
sh compile-ffmpeg.sh clean
  • If you prefer less codec/format for smaller binary size (by default)
bash
cd config
rm module.sh
ln -s module-lite.sh module.sh
cd android/contrib
# cd ios
sh compile-ffmpeg.sh clean
  • For Ubuntu/Debian users.
bash
# choose [No] to use bash
sudo dpkg-reconfigure dash
  • If you'd like to share your config, pull request is welcome.

Build Android

…

Build iOS

…

Support (支持)

  • Please do not send e-mail to me. Public technical discussion on github is preferred.
  • 请尽量在 github 上公开讨论技术问题,不要以邮件方式私下询问,恕不一一回复。

License

Copyright (c) 2017 Bilibili
Licensed under LGPLv2.1 or later

ijkplayer required features are based on or derives from projects below:

  • LGPL
    • FFmpeg
    • libVLC
    • kxmovie
    • soundtouch
  • zlib license
    • SDL
  • BSD-style license
    • libyuv
  • ISC license
    • libyuv/source/x86inc.asm

android/ijkplayer-exo is based on or derives from projects below:

  • Apache License 2.0
    • ExoPlayer

android/example is based on or derives from projects below:

  • GPL
    • android-ndk-profiler (not included by default)

ios/IJKMediaDemo is based on or derives from projects below:

  • Unknown license
    • iOS7-BarcodeScanner

ijkplayer's build scripts are based on or derives from projects below:

  • gas-preprocessor
  • VideoLAN
  • yixia/FFmpeg-Android
  • kewlbear/FFmpeg-iOS-build-script

Commercial Use

ijkplayer is licensed under LGPLv2.1 or later, so itself is free for commercial use under LGPLv2.1 or later

But ijkplayer is also based on other different projects under various licenses, which I have no idea whether they are compatible to each other or to your product.

IANAL, you should always ask your lawyer for these stuffs before use it in your product.

Issues· 2904 open

View all issuesOpen on GitHub
  • #5671

    Video binarhttps://github.com/bilibili/ijkplayer/issues/5600y

    Updated Sep 27, 2026
  • #5670

    111k

    Updated Sep 27, 2026
  • #5667

    Video binary

    Updated Sep 27, 2026
  • #5666

    Video

    Updated Sep 27, 2026
  • #5665

    Rehman

    Updated Sep 23, 2026
  • #5651

    ijkplayer鸿蒙怎么接入,也使用NDK方式吗

    Updated Sep 17, 2026
  • #5663

    রাজিব চৌধুরী

    Updated Sep 7, 2026
  • #5660

    1million view

    Updated Sep 6, 2026
  • #5662

    ফয়সাল

    Updated Sep 6, 2026
  • #5659

    Am no more followers

    Updated Aug 27, 2026

> Tags

Candroidffmpegijkplayerios

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具