<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: LucQuebec</title>
    <description>The latest articles on DEV Community by LucQuebec (@lucquebec).</description>
    <link>https://dev.to/lucquebec</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3995830%2F1899e0b1-66de-4f1b-9869-37744707ef01.jpg</url>
      <title>DEV Community: LucQuebec</title>
      <link>https://dev.to/lucquebec</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lucquebec"/>
    <language>en</language>
    <item>
      <title>FFmpegKit is retired — here's how to fix your Android build (NDK r26c patch)</title>
      <dc:creator>LucQuebec</dc:creator>
      <pubDate>Sun, 21 Jun 2026 23:35:14 +0000</pubDate>
      <link>https://dev.to/lucquebec/ffmpegkit-is-retired-heres-how-to-fix-your-android-build-ndk-r26c-patch-35j0</link>
      <guid>https://dev.to/lucquebec/ffmpegkit-is-retired-heres-how-to-fix-your-android-build-ndk-r26c-patch-35j0</guid>
      <description>&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

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

&lt;p&gt;Could not find com.arthenica:ffmpeg-kit-full:6.0-2&lt;/p&gt;

&lt;p&gt;...you're not alone. Thousands of Android projects broke &lt;br&gt;
the same day.&lt;/p&gt;

&lt;h2&gt;
  
  
  The NDK r26c problem
&lt;/h2&gt;

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

&lt;p&gt;error: implicit truncation from 'int' to a one-bit wide &lt;br&gt;
bit-field changes value from 1 to -1 &lt;br&gt;
[-Werror,-Wsingle-bit-bitfield-constant-conversion]&lt;/p&gt;

&lt;p&gt;The original FFmpegKit code was never updated for NDK r26c's &lt;br&gt;
stricter clang behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;p&gt;One line in android/jni/Android.mk:&lt;/p&gt;

&lt;p&gt;LOCAL_CFLAGS := -Wall -Wextra -Werror \&lt;br&gt;
  -Wno-single-bit-bitfield-constant-conversion \&lt;br&gt;
  -Wno-unused-parameter&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;Instead of migrating away from FFmpegKit, I decided to &lt;br&gt;
maintain a patched Android-only fork:&lt;/p&gt;

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

&lt;p&gt;Prebuilt AAR available — search "ffmpegkit-maintained" &lt;br&gt;
on GitHub.&lt;br&gt;
&lt;a href="https://github.com/ffmpegkit-maintained/ffmpeg-kit" rel="noopener noreferrer"&gt;https://github.com/ffmpegkit-maintained/ffmpeg-kit&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick setup
&lt;/h2&gt;

&lt;p&gt;Place the AAR in your app/libs/ folder and add to &lt;br&gt;
your build.gradle:&lt;/p&gt;

&lt;p&gt;dependencies {&lt;br&gt;
    implementation fileTree(dir: 'libs', include: ['*.aar'])&lt;br&gt;
    implementation 'com.arthenica:smart-exception-java9:0.2.1'&lt;br&gt;
}&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Android-only?
&lt;/h2&gt;

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

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Full variant with additional codecs&lt;/li&gt;
&lt;li&gt;GPL variant with x264/x265&lt;/li&gt;
&lt;li&gt;Maven Central publication (namespace already verified)&lt;/li&gt;
&lt;li&gt;CI/CD pipeline for automated builds&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project is early but functional. &lt;br&gt;
Happy to answer questions in the comments.&lt;/p&gt;

</description>
      <category>android</category>
      <category>news</category>
      <category>opensource</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
