惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
J
Java Code Geeks
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
U
Unit 42
B
Blog
宝玉的分享
宝玉的分享
腾讯CDC
Microsoft Azure Blog
Microsoft Azure Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
博客园 - Franky
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
云风的 BLOG
云风的 BLOG
L
LangChain Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
博客园 - 叶小钗

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
FFmpegKit is retired — here's how to fix your Android bui...
LucQuebec · 2026-06-22 · via DEV Community

LucQuebec

What happened

On April 1, 2025, FFmpegKit was officially retired and all
prebuilt binaries were removed from Maven Central overnight.
If your Android build suddenly started failing with:

Could not find com.arthenica:ffmpeg-kit-full:6.0-2

...you're not alone. Thousands of Android projects broke
the same day.

The NDK r26c problem

After digging through build logs, I found a second issue
for anyone trying to compile from source with NDK r26c —
clang strict mode rejects a bit-field initializer in
fftools_ffmpeg_mux_init.c:

error: implicit truncation from 'int' to a one-bit wide
bit-field changes value from 1 to -1
[-Werror,-Wsingle-bit-bitfield-constant-conversion]

The original FFmpegKit code was never updated for NDK r26c's
stricter clang behavior.

The fix

One line in android/jni/Android.mk:

LOCAL_CFLAGS := -Wall -Wextra -Werror \
-Wno-single-bit-bitfield-constant-conversion \
-Wno-unused-parameter

What I built

Instead of migrating away from FFmpegKit, I decided to
maintain a patched Android-only fork:

  • arm64-v8a (modern devices only)
  • API 24+ (Android 7.0+)
  • NDK r26c compatible
  • compileSdk/targetSdk 35
  • 16KB page size alignment for Android 15+
  • Android MediaCodec hardware acceleration
  • LGPL-3.0

Prebuilt AAR available — search "ffmpegkit-maintained"
on GitHub.
https://github.com/ffmpegkit-maintained/ffmpeg-kit

Quick setup

Place the AAR in your app/libs/ folder and add to
your build.gradle:

dependencies {
implementation fileTree(dir: 'libs', include: ['*.aar'])
implementation 'com.arthenica:smart-exception-java9:0.2.1'
}

Why Android-only?

Maintaining FFmpegKit across Android, iOS, Flutter and
React Native is a full-time job — that's partly why the
original maintainer retired it. Focusing on Android only
keeps the scope manageable and the builds reliable.

What's next

  • Full variant with additional codecs
  • GPL variant with x264/x265
  • Maven Central publication (namespace already verified)
  • CI/CD pipeline for automated builds

The project is early but functional.
Happy to answer questions in the comments.