Does anyone know how to use FFMPEG on Android to convert a YUV420 frame to H.264?
I ported FFMPEG to Android with the NDK, I just donβt know how to use it. Source code is evaluated.
You have two options:
compile ffmpeg.c and call it main () via jni. This requires that you understand the command line options. It is rather cumbersome but works.
You need to keep an eye on the static vars defined in ffmpeg.c and reset each time the main function is called. Also make sure that you do not call the main thing in two threads at the same time.
Source: https://habr.com/ru/post/1341934/More articles:Changing the behavior of General :: stop and the main loop - wolfram-mathematicaPerl reading a huge excel file - perlThe content of the struts-config element type must match "(datasource ?, Form-beans? - javawill Jvm download the class file twice? - javaMouse pointer issue in Java Swing - javaEnable () in EF4 using RIA Services domain service does not load! - silverlightHow do I link my app to the App Store developer page? - iosExchange memory between Java and PHP? - javaA socket operation was attempted for an inaccessible host - .netInvalid maximum number in grep function - linuxAll Articles