FFmpeg source code

The Android version of AI IPTV includes the FFmpeg 6.0.1 libraries (libavcodec, libavutil, libswresample) as shared libraries to decode AC-3, E-AC-3, MP2, MP3 and DTS audio. FFmpeg is licensed under the GNU Lesser General Public License 2.1 or later (LGPL-2.1+). Here is the complete source code and the build scripts of the version we use.

Downloads

SHA-256 (ffmpeg-6.0.1.tar.xz): 9b16b8731d78e596b4be0d720428ca42df642bb2d78342881ff7f5bc29fc9623

Configuration

  • The source code is not modified and no patches are applied; the official 6.0.1 archive is used.
  • License: --disable-gpl --disable-nonfree --disable-version3 (the build is checked to be “LGPL version 2.1 or later”).
  • Only these audio decoders are enabled: ac3 eac3 mp2 mp3 dca h264 hevc mpeg2video. Everything else is disabled (--disable-everything).
  • Shared libraries (--enable-shared --disable-static), Android NDK 27.1.12297006, minimum API 24, ABIs: arm64-v8a, armeabi-v7a, x86_64.

Rebuilding

  1. Install Android NDK 27.1.12297006 (macOS or Linux).
  2. Download and run build.sh: ABIS="arm64-v8a" ./build.sh. The script downloads the source archive, verifies its SHA-256 checksum and builds the libraries into jniLibs/<abi>/.
  3. In the app the libraries are lib/<abi>/libavcodec.so, libavutil.so and libswresample.so inside the APK. Under the LGPL you may replace them with a compatible FFmpeg build for the same ABI.

License

License text: GNU LGPL 2.1 (COPYING.LGPLv2.1 in the archive). Official source: ffmpeg.org · FFmpeg legal. FFmpeg is the work of the FFmpeg developers and is not affiliated with AI IPTV.

This source stays available here for at least three years after the last release of the app that contains this FFmpeg version. To get it another way, write to support@aiiptv.app.