
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (102)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...)
Sur d’autres sites (7922)
-
Revision 29744 : Update de la base de donnée
8 juillet 2009, par kent1@… — LogUpdate de la base de donnée
-
Revision 35042 : Un truc qui trainait
9 février 2010, par kent1@… — LogUn truc qui trainait
-
FFmpeg-kit : Unknown encoder 'libx264' / 'mediacodec' and Gradle dependency issues in Android Studio
15 mai, par Izzet dönertaşI'm working on a video editor app in Android Studio using ffmpeg-kit. My goal is to export video segments with fade transitions and audio using FFmpeg.


This implementation line works fine :


implementation("com.arthenica:ffmpeg-kit-full:6.0-2")



What doesn't work (Encoding) :
When I try to export a video segment using :


-c:v libx264 -c:a aac



I get this error in the logs :


[vost#0:0 @ ...] Unknown encoder 'libx264'



After checking the build configuration, it turns out libx264 is not enabled in the current FFmpeg-kit build :


--disable-libx264 (or rather: --enable-libx264 is missing)



Tried replacing libx264 with mediacodec :
Then I tried using :


-c:v mediacodec -c:a aac



But again I got :


Unknown encoder 'mediacodec'



Apparently, mediacodec is supported for decoding, but not as an encoder in FFmpeg-kit.


Tried to compile my own FFmpeg binary :
I attempted building FFmpeg manually using the following flags :


--enable-libx264 --enable-gpl --enable-shared ...



My plan was to access it via JNI or ProcessBuilder.


But the process is extremely frustrating :


- 

- Missing file errors
- Configuration conflicts
- Dependency hell (especially on macOS/Linux NDK toolchains)








Tried other ffmpeg-kit variants :
I also tried switching to :


implementation 'com.arthenica:ffmpeg-kit-full-gpl:6.0'



and other variants like ffmpeg-kit-min-gpl, etc.
But in all of them I got the same Gradle error :


Caused by: org.gradle.api.internal.artifacts.ivyservice.TypedResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.


My build.gradle setup (yes, mavenCentral + google are already included) :


pluginManagement {
 repositories {
 google()
 mavenCentral()
 }
}

dependencyResolutionManagement {
 repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
 repositories {
 google()
 mavenCentral()
 }
}




I also tried enabling offline mode, clearing cache, adding
jetpack.io
, nothing helped.

I asked
ChatGPT-4o, Gemini 2.5 Pro
. None could provide a working solution for this combination of :

- 

- Working implementation
- Proper video encoding (with libx264 or mediacodec)
- Without breaking Gradle dependency resolution








I just want one of the following :


- 

-
A working FFmpeg-kit implementation (that supports libx264) and doesn’t crash Gradle


-
A reliable guide or build.gradle snippet that lets me use GPL version (with libx264) without resolve errors


-
(Ideally) A prebuilt safe LGPL-compatible alternative that allows encoding and is Google Play compliant










Any help or suggestions would be highly appreciated.
Thanks in advance